Name translation for servlets not working
Hi,
I am using iws 4.1 and ias 6.0
I have deployed an application with a servlet.
Instead of invoking the servlet by specifying the url:
http://myserver/NASApp/myapplicationName/myServletName
I want to specify another url like
http://myserver/mytest
to invoke my servlet.
1. I have added the servlet configuration in servlet.properties
servlet.myServletName.class=myServletName
servlet.myServletName.classpath=<path where the servlet is located>
2. and added a translation rule in rules.properties
/mytest = myServletName
But each time I try to access the servlet using the virtual path ,
This is the error I get:
warning (25633): for host trying to GET /mytest/, send-file reports: can't
find /usr/netscape/server4/docs/mytest/ (File not found)
where /usr/netscape/server4 is where the iws 4.1 is installed.
What more do I need to do?
Thanks.
[978 byte] By [
709126] at [2007-11-25 4:49:00]

You can't do this. A URL like http://myserver/mytest will never reach the
application server, and will instead be handled by the webserver. (Which is
why you are getting the error that you getting.)
The webconnector needs the "NASApp" part of the URL to know to forward the
request to the servlet container of the appserver. Only then can servlet
mapping be used.
David
Uzma Siddiqui wrote:
> Hi,
> I am using iws 4.1 and ias 6.0
>
> I have deployed an application with a servlet.
> Instead of invoking the servlet by specifying the url:
> http://myserver/NASApp/myapplicationName/myServletName
>
> I want to specify another url like
> http://myserver/mytest
>
> to invoke my servlet.
> 1. I have added the servlet configuration in servlet.properties
>servlet.myServletName.class=myServletName
>servlet.myServletName.classpath=<path where the servlet is located>
> 2. and added a translation rule in rules.properties
>/mytest = myServletName
>
> But each time I try to access the servlet using the virtual path ,
> This is the error I get:
> warning (25633): for host trying to GET /mytest/, send-file reports: can't
> find /usr/netscape/server4/docs/mytest/ (File not found)
>
> where /usr/netscape/server4 is where the iws 4.1 is installed.
>
> What more do I need to do?
> Thanks.