The Artima Developer Community
Sponsored Link

Java Buzz Forum
JBoss, BSF, BeanShell and ClassLoading

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Anthony Eden

Posts: 83
Nickname: aeden
Registered: Feb, 2003

Anthony Eden is President and Lead Developer of Aetrion LLC
JBoss, BSF, BeanShell and ClassLoading Posted: Jul 3, 2003 9:14 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Anthony Eden.
Original Post: JBoss, BSF, BeanShell and ClassLoading
Feed Title: All Things
Feed URL: http://allthings.mp/
Feed Description: Blogging about Java, Python, technology and generally anything which is of interest to me.
Latest Java Buzz Posts
Latest Java Buzz Posts by Anthony Eden
Latest Posts From All Things

Advertisement

I am having a helluva time with JBoss, BSF and BeanShell. You see, JBoss version 3.2.1 includes a copy of the BeanShell JAR as well as a BeanShell deployer. If I try to deploy JPublish (which uses BSF to allow actions to be written in any supported scripting language) and the scripting language of choice is BeanShell then I am getting all IllegalAccessErrors. It appears that a classloader (either JBoss or BSF) is improperly trying to load some BeanShell classes from one of the JARs and some from the other. Suffice to say that this is resulting in things not working properly.

One solution for the moment is to remove the BeanShell JAR which is found in the lib directory (i.e. $JBOSS_HOME/server/default/lib/ ). However this only gets rid of the IllegalAccessErrors but there is still another problem: none of the JARs in the WAR's WEB-INF/lib directory are available to the scripts.

Any suggestions would be greatly appreciated.

Read: JBoss, BSF, BeanShell and ClassLoading

Topic: J2ME Articles For Beginners Previous Topic   Next Topic Topic: Vladimir Roubtsov: classloader article

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use