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

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • could not run servlet in tomcat4.0.1 in own application?-urgent
    2002-02-16 17:34:18  carmen1 [View]

    I'm having the same problem and after a long time, I decided to switch to tomcat 1.3 and then lo and behold it all worked. Though I havent yet figured out the security stuff, yet.
    Hope this will help you.
    the man