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 - BUT I CAN SEE THE CLASS!

 
Bruc Sparo
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok boys... I'm hoping someone can help me with this. Have a very angry client waiting!

I'm testing a new site here at work. Now at the local environment (my own local environment on my pc) I have no problem building the site and placing orders.

But when I take the same ear file and deploy it to staging (the environment used so clients can test the web site) the sever keeps coming back with a NoClassDefFoundError. Now the the kicker is when I open up the ear file� I can see the class it says it can�t find.

No I know it a server problem because when I take the same ear file and test on my local sever� no problem. The same ear file on the staging server � BIG PROBLEMS!

Any advice�.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the server running the same Java version as your local test machine? (just a wild shot!)
Bill
 
Bruc Sparo
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bill for responding... and yes we are running the same version. At first we weren't and had them (web admin) change the start up scripts for the server to use the same version.

But no change.
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Resolution
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the sever keeps coming back with a NoClassDefFoundError


NoClassDefFoundError, means that the classes/jars reffered by a class, through its import statements or extends clause or through some other means, is NOT present in the classpath. Make available the related classes/jars in the classpath.

Remember, ClassNotFoundException and NoClassDefFoundError are two different things.

You mentioned that your problem is solved, but i just went ahead and posted this as an information for others.

[ May 11, 2006: Message edited by: jaikiran pai ]
[ May 11, 2006: Message edited by: jaikiran pai ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic