IntelliJ Java IDE
The moose likes BEA/Weblogic and the fly likes Classloader Problem?? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Reply Bookmark "Classloader Problem?? " Watch "Classloader Problem?? " New topic
Author

Classloader Problem??

Ashutosh Shinde
Ranch Hand

Joined: Jun 07, 2001
Posts: 42
Hello all,
We are in the deployment phase of our application running on Weblogic5.1.
We have created a jar file of all the support classes -ejbSupport.jar. We added the ejbSupport.jar in the Weblogic classpath through the startWeblogic.cmd file. We do not have any open directories on the deployment server.It just has the ejb jars and this ejbSupport.jar file.
The problem : We get a java.lang.IllegalAccessError when a bean tries to access some method of another bean. We have made sure that we have the latest compiled code(hence,Illegal Access Error confuses us). The catch:: When we add the Bean classes (only the implementation) to the ejbSupport.jar the problem seems to vanish.
We found that if ejbSupport.jar file does not include the Bean implementation the Bean class is loaded by the ejb jar classloader or else it is the weblogic server classloader. Could this be the reason, for the problem? Also, is there a better way to achieve the deployment. We cannot be putting the Bean class in the support jar as this would create a problem during hot deployment as we see that this jar is loaded by the weblogic server classloader.
Any pointer will be appreciated.
Thanks, Ashutosh
 
 
subject: Classloader Problem??
 
Threads others viewed
Utility classes outside of the ear file accessing EJBs
How to find home Interface?
Strange error
Deserialization problem - InvalidClass w/ negative serialVersionUid for local class
Class Cast Exception while running client program
developer file tools