Hi Andreas,

Thanks a lot for your solution. It worked for me.
I did the exact same thing and its working perfectly.

Now I am facing some typical problem, In my application peviously cgi file
was running with vqserver as cgi server.
Now When I mapped directory specified by you, I am able to run the
application but it throws native library error some times.
I am loading dll in my application, And when I excute the servlet it gives
me error that dll is already loaded,

If i restart tomcat it works fine. Surprsingly this error doesnot come with
older specifications.
i.e. running with vq server+tomcat.

Has anybody having any idea for loading dll problem in tomcat.

Thanks
Taral Shah
Software Engineer,
Contech Software Ltd.
[EMAIL PROTECTED]

Experience is what you get when you were expecting something else.

----- Original Message -----
From: "Andreas Mohrig" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, August 13, 2002 5:42 PM
Subject: AW: Mapping directory


If your context happens to be "cgi" that should be possible. Put something
like this in your web.xml:

    <servlet>
        <servlet-name>myServlet</servlet-name>
        <servlet-class>com.YourInstitution.servlet.myServlet</servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>myServlet</servlet-name>
        <url-pattern>/vq/ca.exe</url-pattern>
    </servlet-mapping>

Otherwise the only solution I know is to use the URL rewriting capabilities
of a webserver such as apache and forward the requests in questing
(e.g. via mod_jk) to Tomcat. I would be interested in a way to get rid off
the
sometimes unnecessary context-prefix myself.

Andreas Mohrig

-----Urspr�ngliche Nachricht-----
Von: Taral Shah [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 13. August 2002 13:33
An: Tomcat Users List
Betreff: Mapping directory


Is it possible to map path in topmcat.

I mean If i have request coming like
http://ip:8080/cgi/vq/ca.exe?abc

Can I redirect this request to
http://ip:8080/<context>/servlet/myServlet?abc

Is it possible  with just configuring tomcat.

Thanks
Taral Shah



--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to