aspose file tools*
The moose likes Web Services and the fly likes NoClassDefFoundError - BUT I CAN SEE THE CLASS! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "NoClassDefFoundError - BUT I CAN SEE THE CLASS!" Watch "NoClassDefFoundError - BUT I CAN SEE THE CLASS!" New topic
Author

NoClassDefFoundError - BUT I CAN SEE THE CLASS!

Bruc Sparo
Greenhorn

Joined: Nov 23, 2005
Posts: 5
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

Joined: Mar 22, 2000
Posts: 12806
    
    5
Is the server running the same Java version as your local test machine? (just a wild shot!)
Bill
Bruc Sparo
Greenhorn

Joined: Nov 23, 2005
Posts: 5
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

Joined: Aug 19, 2005
Posts: 2922
    
    5
Resolution
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10210
    
166

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 ]

[My Blog] [JavaRanch Journal]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: NoClassDefFoundError - BUT I CAN SEE THE CLASS!