Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

MyApp servlet not deploying

Prateek Asthana

2007-03-05

Replies:

Hi,
I was trying to run the "myapp" servlet example. The examples provided
in the webapps directory seem to run fine but when i try the "myapp"
example by deploying. compiling and so on as illustrated, I run into
the following error:

type Status report
message /myapp/
description The requested resource (/myapp/) is not available.

I checked up the logs and have no trace of any error. The web.xml is as follows:

  <display-name>Hello, World Application</display-name>
  <description>
 This is a simple web application with a source code organization
 based on the recommendations of the Application Developer's Guide.
  </description>

  <servlet>
    <servlet-name>HelloServlet</servlet-name>
    <servlet-class>mypackage.Hello</servlet-class>
  </servlet>

  <servlet-mapping>
    <servlet-name>HelloServlet</servlet-name>
    <url-pattern>/myapp</url-pattern>
  </servlet-mapping>


I tried deploying using the front end and also by copying into
"$CATALINA_HOME/webapps" but to no avail. When I log into the manager
module, I lists this servlet but when i try viewing it as
http://localhost:8080/myapp/  it gives me the above error. Please
help me get my first servlet started with tomcat. By the way I am
using Windows 2000.

Thanks,
Prateek

---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.