aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes NoClassDefFoundError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "NoClassDefFoundError" Watch "NoClassDefFoundError" New topic
Author

NoClassDefFoundError

Gagan Sabharwal
Ranch Hand

Joined: Apr 23, 2006
Posts: 48
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
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9324
    
109

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)


[My Blog] [JavaRanch Journal]
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9324
    
109

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

Joined: Apr 23, 2006
Posts: 48


above is the part of my DD
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9324
    
109

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

Joined: Apr 23, 2006
Posts: 48
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
Marshal

Joined: Jul 20, 2005
Posts: 9324
    
109

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

Joined: Apr 23, 2006
Posts: 48
Anybody familiar with WSAD,
Please have a look at the problem..It is "Killing me"..
Guys Please...
kodiarasan sivanesan
Greenhorn

Joined: Dec 04, 2007
Posts: 1
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NoClassDefFoundError
 
Similar Threads
J2EE ClassLoading and ClassCastExceptions
Multiple modules in same directory structure
web-inf/lib
StackOverFlowError when making first EJB Module
Using log4j in EAR module