tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Slava Voronin <sve...@home.com>
Subject Re: urgent help
Date Mon, 04 Sep 2000 06:44:25 GMT
I have the following message when starting tomcat

2000-09-03 11:40:47 - Ctx( /servlets ): Mapping with unregistered servlet Hello

and my web.xml looks like this:

  <servlet-mapping>
            <servlet-name>
                Hello
            </servlet-name>
            <url-pattern>
                /servlets/*
            </url-pattern>
      </servlet-mapping>

In /etc/apache/httpd.conf I also have:

Alias /servlets "/usr/local/jakarta-tomcat/webapps/servlets"
<Directory "/usr/local/jakarta-tomcat/webapps/servlets">
    Options Indexes FollowSymLinks
</Directory>
#ApJServMount /servlets/servlet /servlets

<Location "/servlets/WEB-INF/">
    AllowOverride None
    deny from all
</Location>

<LocationMatch /servlets/* >
 SetHandler jserv-servlet
</LocationMatch>




When I run http://mydomain/servlets/Hello, I get next error:

Not Found (404)
Original request/servlets/tomcat.notFoundHandler

What else could be wrong?

Thanks,
Slava.


Dennis Huang wrote:

> Do you mean to change it to:
>
> <servlet-mapping>
>         <servlet-name>
>             invoker
>         </servlet-name>
>         <url-pattern>
>             /servlets/*
>         </url-pattern>
>     </servlet-mapping>
>
> Dennis
>
> -----Original Message-----
> From: James Cook [mailto:jimcook@iname.com]
> Sent: Sunday, September 03, 2000 2:28 PM
> To: tomcat-user@jakarta.apache.org
> Subject: RE: urgent help
>
> Check out the <tomcat>/cong/web.xml file:
>
> <servlet-mapping>
>         <servlet-name>
>             invoker
>         </servlet-name>
>         <url-pattern>
>             /servlet/*
>         </url-pattern>
>     </servlet-mapping>
>
> and change the URL pattern.
>
> jim
>
> > -----Original Message-----
> > From: root@smv08.iname.net [mailto:root@smv08.iname.net]On Behalf Of
> > Slava Voronin
> > Sent: Saturday, September 02, 2000 4:24 PM
> > To: tomcat-user@jakarta.apache.org
> > Subject: urgent help
> >
> >
> > I am upgrading from jserv to tomcat.
> >
> > I run servlets on jserv as http://mydomain/servlets/Myservlet
> >
> > Under tomcat I am running as http://mydomain/servlet/Myservlet
> >
> > So, I need to change in some tomcat config file      servlet  -> servlets.
> >
> > Which  tomcat config file should I change to be able
> > to preserve my structure and run the serlvets as
> > http://mydomain/servlets/Myserlvet.
> >
> > Thanks.
> > I would really appreciate any help.
> > Slava.
> >
> >
> >


Mime
View raw message