Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
  • 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!