You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Slava Voronin <sv...@home.com> on 2000/09/03 09:21:30 UTC

Re: urgent help

I tried what you have suggested before but it didn't work (in
tomat/conf/web.xml)
I also changed servlet to servlets in uriworkermap.properties file.
The following lines is the part of uriworkerman.properties.

# Mount the servlet context to the ajp12 worker
/servlets/*=ajp12

But it didnt' help either.

In my httpd.conf, I added

Alias /servlets "/usr/local/jakarta-tomcat/webapps/ROOT"
<Directory "/usr/local/jakarta-tomcat/webapps/ROOT">
    Options Indexes FollowSymLinks
</Directory>
ApJServMount /servlets /ROOT
<Location "/ROOT/WEB-INF/">
    AllowOverride None
    deny from all
</Location>

Still doesn't work.  I spent two days figuring this stuff out..
trying different combinations...no success.
Please help me on this one.
Thanks,
Slava.

James Cook wrote:

> 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.
> >
> >
> >




Re: urgent help

Posted by Slava Voronin <sv...@home.com>.
Slava Voronin wrote:

> I tried what you have suggested before but it didn't work (in
> tomat/conf/web.xml)
> I also changed servlet to servlets in uriworkermap.properties file.
> The following lines is the part of uriworkerman.properties.
>
> # Mount the servlet context to the ajp12 worker
> /servlets/*=ajp12
>
> But it didnt' help either.
>
> In my httpd.conf, I added
>
> Alias /servlets "/usr/local/jakarta-tomcat/webapps/ROOT"
> <Directory "/usr/local/jakarta-tomcat/webapps/ROOT">
>     Options Indexes FollowSymLinks
> </Directory>
> ApJServMount /servlets /ROOT
> <Location "/ROOT/WEB-INF/">
>     AllowOverride None
>     deny from all
> </Location>
>
> Still doesn't work.  I spent two days figuring this stuff out..
> trying different combinations...no success.
> Please help me on this one.
> Thanks,
> Slava.
>
> James Cook wrote:
>
> > 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.
> > >
> > >
> > >

I have followed all your steps but still no success.
File tomcat-apache.conf creates automatically when I
restarted tomcatp with next entry:

ApJServMount /servlet /ROOT
Alias /servlet "/usr/local/jakarta-tomcat/webapps/servlet"
<Directory "/usr/local/jakarta-tomcat/webapps/servlet">
    Options Indexes FollowSymLinks
</Directory>
ApJServMount /servlet/servlet /servlet
<Location "/servlet/WEB-INF/">
    AllowOverride None
    deny from all
</Location>

It appended /servlet/servlet /servlet instead
of /servlets /servlet.

I also changed in web.xml
servlet to servlets.

Maybe something else is missing??

Thanks,
Slava.




RE: urgent help

Posted by James Cook <ji...@iname.com>.
Sorry, I didn't realize that you were using Apache as well. I'm a newbie
when it comes to configuring Apache.

Does it work when you access Tomcat directly (bypassing Apache)?

jim

> -----Original Message-----
> From: root@smv05.iname.net [mailto:root@smv05.iname.net]On Behalf Of
> Slava Voronin
> Sent: Sunday, September 03, 2000 3:22 AM
> To: tomcat-user@jakarta.apache.org; jimcook@iname.com
> Subject: Re: urgent help
>
>
> I tried what you have suggested before but it didn't work (in
> tomat/conf/web.xml)
> I also changed servlet to servlets in uriworkermap.properties file.
> The following lines is the part of uriworkerman.properties.
>
> # Mount the servlet context to the ajp12 worker
> /servlets/*=ajp12
>
> But it didnt' help either.
>
> In my httpd.conf, I added
>
> Alias /servlets "/usr/local/jakarta-tomcat/webapps/ROOT"
> <Directory "/usr/local/jakarta-tomcat/webapps/ROOT">
>     Options Indexes FollowSymLinks
> </Directory>
> ApJServMount /servlets /ROOT
> <Location "/ROOT/WEB-INF/">
>     AllowOverride None
>     deny from all
> </Location>
>
> Still doesn't work.  I spent two days figuring this stuff out..
> trying different combinations...no success.
> Please help me on this one.
> Thanks,
> Slava.
>
> James Cook wrote:
>
> > 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.
> > >
> > >
> > >
>
>
>
>