It's not a secret anymore!
The moose likes Servlets and the fly likes ServletExeption problem? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "ServletExeption problem?" Watch "ServletExeption problem?" New topic

ServletExeption problem?

Suka Hati
Ranch Hand

Joined: Oct 28, 2004
Posts: 56
I am using tomcat on linux machine

when i run my page, i got thies error
javax.servlet.ServletException: Error instantiating servlet class Try5
my directory is :


My WEB.XML file is:
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"



it seems like it doesnt found my servlet.
how to solve this error
Suka Hati
Ranch Hand

Joined: Oct 28, 2004
Posts: 56

root cause

Jeffrey Spaulding
Ranch Hand

Joined: Jan 15, 2004
Posts: 149
What's the url you use?
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Originally posted by Suka Hati:
root cause


Where is the stack trace??
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Do you have a servlet called Try5?
Where are you keeping the class file?

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: ServletExeption problem?
It's not a secret anymore!