• Post Reply Bookmark Topic Watch Topic
  • New Topic

HTTP Status 404 - /DateApp/list  RSS feed

 
Durga Srinivas Kanuri
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now server is properly running

I was deployed the servlet(DateApp) in webapps,

with included .class file in classes folder and this in WEB-INF folder, WEB-INF and web.xml parallel to in DateApp folder then only i am getting above error,

i have writtern web.xml file without any mistake

but i am getting error like



HTTP Status 404 - /DateApp/list

type Status report

message /DateApp/list

description The requested resource (/DateApp/list) is not available.
Apache Tomcat/6.0.16



This is my web.xml file..........

<web-app>
<servlet>
<servlet-name>sri</servlet-name>
<servlet-class>DateApp</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>sri</servlet-name>
<url-pattern>/list</url-pattern>
</servlet-mapping>
</web-app>

 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<servlet-class>DateApp</servlet-class>


ALL classes used in servlets and JSP MUST be in a package - the reason being that the JVM looks for classes without declared package in the "current" directory, something you have no control over.

For a review of this and other common servlet problems see this servlet FAQ here at the ranch.

Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!