Hi all!
I tried to utilize mod_webapp for the integration Apache-Tomcat. I read the
documentation and followed all the steps but I couldn't resolve the Tomcat problem of
serve static content.
My environment:
- Win2k pro
- JDK 1.3.1
- Apache 1.3.22
- Tomcat 4.0.1
Finally, I tried with the mod_jk connector and it works fine!
After read and probe both, my question is:
Supopose I have a servlet "myservlet" wich does not belong to any Tomcat
application. I put this servlet in the %CATALINA_ROOT%/classes folder (all the
application see it).
With mod_jk I can make Apache redirect to Tomcat the request of an URL that
http://myhost/servlet/myservlet to this servlet. It is correctly found and executed.
Ex: JkMount /servlet/* ajp13 (in the Apache httpd.conf)
Can I make the same thing with the mod_webapp connector?
According to which I investigated, in the mod_webapp I utilize WebAppDeploy to
define the connections:
Ex: WebAppDeploy examples conn /examples
where "examples" is the folder located on my Tomcat folder "/webapps/examples",
"conn" the name of the WARP connection and "/examples" the pattern that should be
recognized by Apache for redirecting to Tomcat.
I think mod_webapp do ALWAYS a link only between a Tomcat Application and a
pattern.
But if I request the same URL http://myhost/servlet/myservlet, I get the "404 Not
Found" Error.
There is a way to make the same thing with this connector?
Thanks in advance...
Marcelo