Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet not loading

 
Anand Shrivastava
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am running tomcat6.0.13.
i have made a connectionservlet of package table and compiled it and stored it in the ROOT directory.
when i give the following URL http://localhost:8180/servlet/table.connectionservlet
tomcat returns the following error -
type Status report

message /servlet/table.connectionservlet

description The requested resource (/servlet/table.connectionservlet) is not available.
Apache Tomcat/6.0.13

I have also tried to copy this file to WEB-INF/classes/table directory and then give the following URL http://localhost:8180/WEB-INF/classes/servlet/table/table.connectionservlet
still i get the same error.

Kindly help.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Recent versions of Tomcat do not allow direct access to servlets by default.
You'll need to configure a servlet entry and a servlet mapping in your deployment descriptor (web.xml).

The component that allowed this was called the InvokerServlet.
It's still in Tomcat but its configuration settings have been commented out.
To learn why, go here.
[ August 16, 2007: Message edited by: Ben Souther ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic