aspose file tools*
The moose likes Servlets and the fly likes NoClassDefFoundError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "NoClassDefFoundError" Watch "NoClassDefFoundError" New topic
Author

NoClassDefFoundError

Linda Ruiz
Greenhorn

Joined: Dec 04, 2004
Posts: 2
I'm in an Advanced Java class trying to make a servlet work and I'm stuck. I think the problem may have to do with declaring a local variable in my doGet method, but I can't figure it out. I'm trying to do a search in an employee database. Would someone be willing to look at my code? I'm new to JavaRanch, so I'm not sure how this works...


skygal<br />l_ruiz@charter.net
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

If you paste some sample code (using the UBB 'code' tags, there are buttons to add them on the page where you write your post). Try to keep it short while giving us enough to work with, try not to post everything.

I find there are heaps of people sitting around waiting to help you with your problem, you just have to ask right!

... and welcome!

Dave
parvesh sharma
Greenhorn

Joined: Dec 01, 2004
Posts: 3
HI Linda,

It seems that you are mising some class file in the class path. Please place the exception log, along with the specific code(line), so that exact problem could be figured out.

regards
Ramaswamy Srinivasan
Ranch Hand

Joined: Aug 31, 2004
Posts: 295
Hi Linda,

Welcome to Javaranch. Hope you enjoy ranching here.

Could you give the exact error message that you are getting.

That would be helpful to trace the error that bugs you. Also please specify the web server, on which your servlet is running.

Cheers,
Swamy.
Ramaswamy Srinivasan
Ranch Hand

Joined: Aug 31, 2004
Posts: 295
Hi,

You can try this too.

set classpath = %classpath%;.------> Don't miss the dot at the end.

This might work. Any idea?

Cheers,
Swamy
Linda Ruiz
Greenhorn

Joined: Dec 04, 2004
Posts: 2
thanks for all your responses. Turns out my servletExecDebugger wasn't set right. Then moving some connection code from doGet to init did the trick. On to the last project of the semester!
 
jQuery in Action, 2nd edition
 
subject: NoClassDefFoundError