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

unable to start servlet

jyotsana dang
Ranch Hand

Joined: Sep 26, 2003
Posts: 135
i created a java servlet file.. registration.java and compiled it and added the class file in root/web-inf/classes folder..
in the action of the form i used /servlet/registration
but when i try to run the serlvet the page displays a message :
The requested resource (/servlet/Registration) is not available.
where is the bug?
jyotsana
nick zhao
Greenhorn

Joined: Oct 10, 2003
Posts: 3
Hi,
Your catalog is 'ROOT', so you have to access the servlet by the form like '/Registration'.
The accessing was right if you deployed the servlet's url pattern in the web.xml like '/servlet/Registration'.
jyotsana dang
Ranch Hand

Joined: Sep 26, 2003
Posts: 135
i have my folder in root folder of tomcat and the servlet class file in root/web-inf/classes folder created ..
and form action as: /servlet/Registration
but even the it gives the same error
jyotsana
Basavaraju Banakar
Greenhorn

Joined: Jul 18, 2002
Posts: 25
Try "../servlet/Registration"


It is impossible to make anything foolproof because fools are so ingenious..Murphy<br />Basu.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12825
    
    5
Your use of the "/servlet/..." style of URL requires the Invoker servlet - see any of the recent threads about "servlet can't start" and similar problems.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: unable to start servlet