Hi,
Can you first try by directly acessing
http://localhost:8080/apress/chapter2.login from the browser?
If still NOT Found then your web.xml need to be reviewed.

Regards,
Pratt



----- Original Message -----
From: "Gustavo Cebrian" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 6:51 PM
Subject: RE: Newbie: Starting problem


Are you adding any package in your servlet?

Are you building a jar file. Where are you placing your class file for the
servlet.

Gustavo.

-----Original Message-----
From: John Plate [mailto:[EMAIL PROTECTED]
Sent: 07 March 2003 13:14
To: Tomcat Users List
Subject: Newbie: Starting problem


Hi

I'm new to tomcat. I can see examples etc just fine. I've read all
included docs as far as I aware.

I have a small and simple setup. 1 small .jsp file and 1 servlet. I
can see .jsp file when invoked by the browser. When that .jsp file
calls the servlet, which is reported "not found" by tomcat.

I can see in the log files that the .jsp files are recognized by
tomcat - it is copied to the working area. But not the servlet. I've
seen the Manager overview and there is no servlets registered.

Here is my web.xml file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd";>
<web-app>
  <servlet>
     <servlet-name>login</servlet-name>
     <servlet-class>chapter2.login</servlet-class>
     <load-on-startup>7</load-on-startup>
  </servlet>
  <servlet-mapping>
     <servlet-name>login</servlet-name>
     <url-pattern>/chapter2.login</url-pattern>
   </servlet-mapping>
</web-app>

I've inserted this in conf/server.xml:
<Context path="/apress" docBase="apress" debug="9" reloadable="true">
</Context>

I have these files:
./WEB-INF
./WEB-INF/classes
./WEB-INF/classes/chapter2
./WEB-INF/classes/chapter2/HelloTag.java
./WEB-INF/classes/chapter2/login.class
./WEB-INF/classes/chapter2/login.java
./WEB-INF/lib
./WEB-INF/web.xml
./login.jsp
./welcome.jsp
./images
./images/monitor2.gif

Can anybody help?

Thanks in advance
--
John Plate

--
John Plate

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to