What path does the Manager display for your app? 

If tomcat is auto-deploying your app, then it should be /MySeatMap since
that is the subdir of webapps in which your WEB-INF/web.xml resides.
Then you should be accessing http://localhost:8080/MySeatMap/seating

If you are using a <Context path="/mypath" docBase="MySeatMap" /> element in 
server.xml, 
then your URL should be http://localhost:8080/mypath/seating

Remember, the <servlet-mapping> elements only tell the container
which servlet classes to invoke WITHIN that servlet's context path.
Nothing in web.xml defines the context path itself. 

Try the above URL's and let us know if it works.

Jeff


----- Original Message ----- 
From: "Brook Monroe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 10, 2002 10:55 AM
Subject: RE: Getting a servlet running under Tomcat-Apache 4.0.3


> Fabian:
> >>something not directly mentioned in the howtos for deploying a servlet:
> >>you have to update the TOMCAT_HOME/conf/server.xml file for installing 
> >>your application in the "web-app"-directory. You have to add an entry like
> >> <Context path="/seating" docBase="seating"
> >> debug="0" reloadable="true"/>
> >>in server.xml if you have your servlet in a folder named
> >>TOMCAT_HOME/web-app/seating/WEB-INF/classes
> 
> That was the first thing I did, actually.  No variations on that theme seem
> to be making any difference, and it doesn't matter whether it's under the
> Tomcat-Standalone or Tomcat-Apache section....
> 
> Jeff:
> 
> >>Under what context path is your servlet deployed? The 
> >>context path is typically the name of the directory 
> >>under $TOMCAT_HOME/webapps in which your app resides.
> 
> It's deployed where the examples are, and where the manager is.
> 
> The specific path is
> 
> <drive>:\Tomcat\webapps\MySeatMap\
> 
> with the class files in <drive>:\Tomcat\webapps\MySeatMap\WEB-INF\classes
> 
> I've tried permuting this almost to exhaustion.  I've been reading the
> example setups, and I can't even figure out how the HelloWorldExample class
> gets called.  Something to do with <filter> tags, but I can't make out
> what's happening.
> 
> And to repeat: I know the servlet is running, because the manager and the
> logs confirm it.
> 
> For grins and giggles, here's the 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>
>             MySeatMap
>         </servlet-name>
>         <servlet-class>
>             /MySeatMap
>         </servlet-class>
> </servlet>
>     <servlet-mapping>
>         <servlet-name>
>             MySeatMap
>         </servlet-name>
>         <url-pattern>
>             /seating
>         </url-pattern>
>     </servlet-mapping>
>     <servlet-mapping>
>         <servlet-name>
>             MySeatMap
>         </servlet-name>
>         <url-pattern>
>             /seating/
>         </url-pattern>
>     </servlet-mapping>
>     <servlet-mapping>
>         <servlet-name>
>             MySeatMap
>         </servlet-name>
>         <url-pattern>*.map</url-pattern>
>     </servlet-mapping>
> </web-app>
> 
> And the context entry:
> 
> <Context path="/MySeatMap" docBase="MySeatMap" isReloadable="true"
> debug="2" crossContent="true"/>
> 
> Anyone see anything (in)obviously wrong?
> 
> jbm!
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to