This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Servlets and the fly likes servlet does not load Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "servlet does not load" Watch "servlet does not load" New topic
Author

servlet does not load

aaaa aaaa
Greenhorn

Joined: Dec 29, 2002
Posts: 6
hi
i am a beginner in servlets .
i am facing a problem that when i type
http://localhost:8080/servlet/myservlet1 in the browser
i donot get the output

the servlet class file is in Tomacat4.1\webapps\Root\Web-inf\classes directory

though the examples given in the webapps\Root\examples run fine
and also the welcome runs fine with
http://localhost:8080/
madhur
Cory Wilkerson
Ranch Hand

Joined: Aug 14, 2001
Posts: 84
Check your web.xml file that should be available in the root of web-inf. You'll need to look at servlet mappings to ensure that any requests made to "/servlet/myServlet1" are appropriately routed to the instance of your running servlet:

Hope this helps! See Sun's Servlet Spec for more information (war files).
Cory Wilkerson
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12324
    
    1
For Tomcat 4.1.1? they made a change in the defaults so that /servlet/yourservlet doesn't work. I recently found a nice tutorial on getting Tomcat 4.1?? working at Tutorial at Moreservlets.
See item 3 under Configure Tomcat which discusses the "invoker" servlet.
Bill
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: servlet does not load
 
Similar Threads
HTTP Status 500 - No Context configured to process this request
Apache -> Tomcat servlet problem
trouble loading servlet class on Tomcat4.1
servlet not found error
unable to compile