I have a servlet that I have used in other enviroments without issues.
I am trying to get it to run under Tomcat and seem to have several 
roadblocks.
The Examples work and I do have a servlet SnoopServlet that works in 
this same container.
(http://10.44.82.2:8080/run/servlet/SnoopServlet) So, I am assuming the 
plumbing works and it is a problem with me not knowing where to put this 
or call that.

Ther servlet is in \tomcat\webapps\run\WEB-INF\classes
\tomcat\ is tomcathome
the actual class file is in:
\tomcat\webapps\run\WEB-INF\classes\com\willeke\servlet\phonebook\Phonebook.class
The servlet being in the package com.willeke.servlet.phonebook
This runs and works fine in Jbuilder (Which uses tomcat internally)

The issues I need to resolve:
1. What is the right URL to call to load this servlet?


2. In the \tomcat\webapps\run\WEB-INF\web.xml I have:
   <servlet>
     <servlet-name>
         Pb
     </servlet-name>
     <servlet-class>
         com.willeke.servlet.phonebook.Phonebook
     </servlet-class>
   </servlet>

   <servlet-mapping>
       <servlet-name>
           Pb
       </servlet-name>
       <url-pattern>
           /pb
       </url-pattern>
   </servlet-mapping>
None of the following seem to work:
http://10.44.82.2:8080/run/servlet/com/willeke/servlet/phonebook/Phonebook
http://10.44.82.2:8080/run/servlet/com.willeke.servlet.phonebook.Phonebook
http://10.44.82.2:8080/run/servlet/Pb
http://10.44.82.2:8080/run/servlet/pb

Any help would be appreciated.
-jim



Reply via email to