ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Deploying Web Applications to Tomcat
Subject:   could not run servlet in tomcat4.0.1 in own application?-urgent
Date:   2002-01-21 00:38:00
From:   sharmakeshav
Dear sir,
i m unable to run servlet which i placed in my application which is like that
in the specified folder i placed my servlet class file(s)
\webapps\MyApp\Web-inf\classes\HelloDemo.class
and i hv also specified the servlet mapping and registration in web.xml file which is in the folder
\webapps\MyApp\Web-inf\web.xml
and entry is like that
<servlet>
<servlet-name>HelloDemo</servlet-name>
<servlet-class>HelloDemo</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>HelloDemo</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>


and i also have created the context of my application which is by the name of say MyApp
and entry is placed in conf/server.xml
as
<Context path="/MyApp" docBase="MyApp" debug="0" reloadable="true"></Context>
now my jsp files run properly but when i invoke servlet as
http://localhost/MyApp/servlet/HelloDemo
i get 404 message(not found) standard message
kindly help me out and send me mail in
keshav_sharma_2002@hotmail.com
or
keshav_sharma@escosoft-tech.com


waiting for u reply desparetely!
thx


1 to 1 of 1
1 to 1 of 1