Hi,

Feng Xia wrote at Wednesday 11 July 2001 16:38:
> My apache is 1.3.14. My tomcat is 3.2.2.
>
> Feng Xia wrote:
> > Hi there,
> >
> > I am trying to make servlet mapping working for my apache+tomcat on
> > Solaris 8. I need to map some time /myfile.html to a servlet
> > com.corp.servlet.LightWeightUiServlet. I add the following tags to
> > $TOMCAT_HOME/conf/web.xml.
> >     <servlet>
> >       <servlet-name>
> >         myservlet
> >       </servlet-name>
> >       <description>
> >       </description>
> >       <servlet-class>
> >         com.corp.servlet.LightWeightUiServlet
> >       </servlet-class>
> >       <!-- Load this servlet at server startup time -->
> >       <load-on-startup>5</load-on-startup>
> >     </servlet>
> >     <servlet-mapping>
> >       <servlet-name>
> >         myservlet
> >       </servlet-name>
> >       <url-pattern>
> >         /myfile.html
> >       </url-pattern>
> >     </servlet-mapping>
This looks ok.

> >
> > All my class files are installed under $TOMCAT_HOME/classes and
> > $TOMCAT_HOME/lib
I tried the same thing some days ago. 
I found, that you must have at least following directory 
structure in $TOMCAT_HOME/webapps :

myapp                   // application root dir
  |
  +----- WEB-INF        // contains web.xml !
            +
            |
            + classes   // contains your servlets

Restart tomcat and let me know what will happen.

andy
-- 
-------------------------------
mailto:[EMAIL PROTECTED]
fon: +49 30 549932-37
fax: +49 30 549932-21

Reply via email to