• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Carey Brown
  • Frits Walraven

Classloader Problem??

Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
The longest recorded flight time of a chicken is 13 seconds. But that was done without this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
    Bookmark Topic Watch Topic
  • New Topic