This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes NoClassDeff found Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "NoClassDeff found Error" Watch "NoClassDeff found Error" New topic
Author

NoClassDeff found Error

Herbert Maosa
Ranch Hand

Joined: May 03, 2000
Posts: 289
I dont know what has happened, but I was able to run servlets without a problem, but lately I dont know what has changed but I can not run servlets anymore. I get an error message like java.lang.NoClassDeffFound : javax/servlet/http/HttpServlet
and a whole bunch of the exception stack trace which does not mention my pogram.
Can someone help me out here ?
Thanks.
Herbert
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
That sounds like a problem with class library incompatibility - I had a bunch of mystery messages like that due to an old JSKD.jar file hanging around. Have you installed any new Java related programs that might have added a jar file somewhere?
Bill
Herbert Maosa
Ranch Hand

Joined: May 03, 2000
Posts: 289
Yea, I added quite a few. I added the JSDK which did not work, always complained about some unknown errors.Then I installed JWSDK, without uninstalling the JSDK, this did not work too, and finally nothing worked any more. DO you think this might be the cause ? Do you think I need to uninstall this other stuff ?
 
 
subject: NoClassDeff found Error