File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Websphere and the fly likes noClassDefFoundError-- help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "noClassDefFoundError-- help" Watch "noClassDefFoundError-- help" New topic

noClassDefFoundError-- help

moon das

Joined: Mar 25, 2003
Posts: 1
hi all,
I have developed 2 ear project in wsad 4.0.
I have a simple java class, in ear2, which is being called from ejb of ear1.
at runtime I get noClassDeffoundError, when the server is trying to start ear1, saying that the particular class cannot be found(which I have in ear2).
can anyone tell me, is is not possible to call any class residing in different EAR?
why am I getting this error, although the compilation didn't fail.

Ron Perich
Ranch Hand

Joined: Mar 25, 2003
Posts: 41
check your server to ensure that both ear files are located in the classpath.

Kiran Kumar
Ranch Hand

Joined: May 18, 2001
Posts: 107
u can keep the classes which r common across the ear's/applications in the lib/ext directory. then the server will pick it up when starting.
hope this helps

Thanks<br /> <br />Kiran <br /> <br />SCEA, SCJP 1.4,<br /> <br />"First they ignore u, then they laugh at u, then they fight u, <br />then u will win<br /> <br />Mahatma Gandhi"
I agree. Here's the link:
subject: noClassDefFoundError-- help
It's not a secret anymore!