• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Classloader Problem??

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic