Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

noClassDefFoundError-- help

 
moon das
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

thanx
 
Ron Perich
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check your server to ensure that both ear files are located in the classpath.
 
Kiran Kumar
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic