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