• 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

NoClassDefFoundError

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi !!!

I am 2 deploy a new module on my application Server.
My module contains :
a)Web components
b)EJB components

My Database is Oracle 9i.

The Package which i am using is WASAD.
Websphere v5.0.

I am deploying an EAR (which contains my Web Module and session beans).

when I start the server ,I get the following error:

The user-provided class "<null>" needed by the EnterpriseBean could not be found or loaded.
[10/26/06 17:11:44:336 GMT+05:30] 65ec36fa EJBContainerI E WSVR0209E: Unable to prepare EJB jar SessionBeanMasters.jar [class com.ibm.ws.runtime.component.DeployedModuleImpl], enterprise bean com.ibm.etools.ejb.impl.SessionImpl(security) (transactionType: Container, sessionType: Stateful) ...

I have been toiling myself to solve the problem ,but in vain...

I wanted a solution as soon as possible
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please post the contents of ejb-jar.xml present in SessionBeanMasters.jar (Remember to use the "Code" button, to wrap the contents in a code block, while posting the xml)
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
BTW, your topic is named "NoClassDefFoundError", but the log that you posted contains no mention about it. Is there more exception stacktrace that you have not posted? If so, please post the entire exception stacktrace.
 
Gagan Sabharwal
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


above is the part of my DD
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Make sure all these classes (ejb.security.session.bptypesession.bptypesessionHome, ejb.security.session.bptypesession.bptypesession, ejb.security.session.bptypesession.bptypesessionBean) and the other classes that these refer to are in the classpath.

Since your topic mentions that its a NoClassDefFoundError, some classes(or jar files containing the classes) are not available in the classpath. I cant say which class unless the logs are posted
 
Gagan Sabharwal
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Stack Trace



When you open your workspace in WSAD,you get a server on which the EAR is deployed.I didn't get that server "WITH THIS WORKSPACE",so I created a new TEST server
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is this class present in the classpath?

When you open your workspace in WSAD,you get a server on which the EAR is deployed.I didn't get that server "WITH THIS WORKSPACE",so I created a new TEST server



Sorry, i am not much familiar with WSAD.
 
Gagan Sabharwal
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Anybody familiar with WSAD,
Please have a look at the problem..It is "Killing me"..
Guys Please...
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please check the following settings in your application.

Login into Admin console ----> Application ----> Enterprise application ---> click the deployed ear file --> check the WAR classloader policy , it should be as Application.

if not change it to application & restart the server.
 
Well THAT's new! Comfort me, reliable tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic