RE: Servlet Aliasing

2001-06-07 Thread Chris Faulkner

Hi

I was running IISand Tomcat. but the priciple should be the same here.

I just went through this one, myself. The /Servlet/ bit gets put on by a
parameter to the InvokerInterceptor class which you can find and change to
/ ( I found that a null value didn't work ).

I removed the /TomcatContext/  section by uncommenting the virtual host
section at the end of server.xml and adding a context path for the context
(TomcatContext).

Chris Faulkner

Chris Faulkner
Genawarehouse Ltd - The Genamap people
www.genaware.com

Tel :+44 (0)116 212 5059
Mobile :+44 (0)7887 562096
Email :[EMAIL PROTECTED]
--


 -Original Message-
 From: ryan [mailto:[EMAIL PROTECTED]]
 Sent: 06 June 2001 23:20
 To: [EMAIL PROTECTED]
 Subject: Servlet Aliasing


 I am running tomcat 3.22, with mod_jk, and apache 1.3.20.  Apache
 serves my
 static context and tomcat does my jsp.  All works well but I am now trying
 to migrate my old jserv set up over to my tomcat box.  In my
 jserv set up I
 have zones set up to access a package of servlets that are accessed like
 http://www..com/AServletName

 I can get it to work if called like so:
 http://www..com/TomcatContext/Servlet/AServletName
 I need to lose the TomcatContext/Servlet stuff.  I have tried
 adding entries
 to my web.xml like so:

servlet
   servlet-name
   AServletName
   /servlet-name
   servlet-class
   com.packagename.AServletClass
   /servlet-class
 /servlet
 servlet-mapping
 servlet-name
   AServletName
 /servlet-name
 url-pattern
 /AServletName
 /url-pattern
 /servlet-mapping

 to no avail.  There must be another step I am missing but I can
 find no docs
 on it anywhere. Please Help
 ryan






Re: Servlet Aliasing

2001-06-06 Thread Michael Jennings

Hi,

To the best of my understanding (which might not be great)
any entries in your context's web.xml file basically tell
tomcat hey, if you happen to be handling the current request, I've got
a servlet whose URI is file://xxx/yyy 

The thing is, tomcat might not be handling the request in the first place.
Best thing to try is let tomcat listen on port 8080 (the default config does
this I think)
then see if your servlets work. If they do, then you're halfway there, you
just need
to adjust whatever file httpd.conf is Include-ing.

-Mike

- Original Message -
From: ryan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 06, 2001 3:20 PM
Subject: Servlet Aliasing


 I am running tomcat 3.22, with mod_jk, and apache 1.3.20.  Apache serves
my
 static context and tomcat does my jsp.  All works well but I am now trying
 to migrate my old jserv set up over to my tomcat box.  In my jserv set up
I
 have zones set up to access a package of servlets that are accessed like
 http://www..com/AServletName

 I can get it to work if called like so:
 http://www..com/TomcatContext/Servlet/AServletName
 I need to lose the TomcatContext/Servlet stuff.  I have tried adding
entries
 to my web.xml like so:

servlet
   servlet-name
   AServletName
   /servlet-name
   servlet-class
   com.packagename.AServletClass
   /servlet-class
 /servlet
 servlet-mapping
 servlet-name
   AServletName
 /servlet-name
 url-pattern
 /AServletName
 /url-pattern
 /servlet-mapping

 to no avail.  There must be another step I am missing but I can find no
docs
 on it anywhere. Please Help
 ryan