John, may I digress slightly?  What if Geoff were not using a servlet but a
bean?  I suspect he would have a similar problem, but could this be solved
by servlet-mapping?

Back to topic: if the correct directory structure under webapps is used, why
is servlet mapping necessary anyway?

TIA,

Wilson

----- Original Message -----
From: "Turner, John" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Monday, January 13, 2003 9:26 PM
Subject: RE: Can't find servlet


>
> Looks to me like you are missing all of your servlet mappings.  A basic
> servlet entry in web.xml looks like this:
>
> <servlet>
>   <servlet-name>SomeServlet</servlet-name>
>   <servlet-class>SomeServlet</servlet-class>
> </servlet>
> <servlet-mapping>
>   <servlet-name>SomeServlet</servlet-name>
>   <url-pattern>/SomeURLPattern</url-pattern>
> </servlet-mapping>
>
> You have to do that for each and every servlet, unless you want to use the
> Invoker servlet, which is unwise because of the security implications.
>
> I'm more sys-admin than developer, so there's probably more to it that one
> of the real developers on this list can explain.
>
> John
>
> > -----Original Message-----
> > From: Geoff Peters [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, January 13, 2003 4:19 PM
> > To: Tomcat Users List
> > Subject: RE: Can't find servlet
> >
> >
> > John - You solved another one of my problems that I wasn't
> > even sure that I had! (did that make sense??) If I uncomment
> > that servlet-mapping block for the invoker my servlet works,
> > if not, my servlet throws the "servlet not available" error.
> > The funny thing is I have declared all of my servlets in my
> > application web.xml, do I need to define these in the
> > /conf/web.xml as well?
> >
> > Here is my application web.xml, am I missing anything?
> >
> > THANKS!!!!!!!!!!!
> >
> > Geoff
> >
> >
> > <?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>
> >
> > <display-name>iFax Development</display-name>
> >   <description>
> >     iFax Development
> >   </description>
> >
> > <servlet>
> >
> > <servlet-name>send</servlet-name>
> > <display-name>IfaxSend</display-name>
> > <servlet-class>IfaxSend</servlet-class>
> > <init-param>
> > <param-name>driver</param-name>
> >
> > <param-value>sun.jdbc.odbc.JdbcOdbcDriver</param-value>
> > </init-param>
> > <init-param>
> >         <param-name>uploadDir</param-name>
> >
> > <param-value>d:\Work_Files\jakarta-tomcat-4.1.18\webapps\IfaxS
> > end\temp</param-value>
> >         </init-param>
> >         <init-param>
> >         <param-name>odbc</param-name>
> >         <param-value>jdbc:odbc:replixdb</param-value>
> >         </init-param>
> >         <init-param>
> >         <param-name>dbUser</param-name>
> >         <param-value>user</param-value>
> >         </init-param>
> >         <init-param>
> >         <param-name>dbPass</param-name>
> >         <param-value>pass</param-value>
> >         </init-param>
> >
> > </servlet>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>
>



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

Reply via email to