Please help: Apache direct Servlet to Tomcat
My Apache 2.0.49 Tomcat 5.0.19, windows 2000. I have a difficult in running servlet from Apache. For example I have a servlet TestServlet.class (package: myServlet) in C:\Program Files\Apache Group\Apache2\tomcat\webapps\ROOT\WEB-INF\classes\myServlet\ I register this servlet in \tomcat\webapps\ROOT\WEB-INF\web.xml: servlet servlet-nameTestServlet/servlet-name servlet-classTestServlet/servlet-class /servlet servlet-mapping servlet-nameTestServlet/servlet-name url-pattern/TestServlet/url-pattern /servlet-mapping Tomcat port is 8008 When I run http://localhost:8008/TestServlet, it runs correctly. Apache port is 82 I cannot start it with http://localhost:82/TestServlet. -- The page cannot be found My Aache and Tomcat is connected correctly. All JSP files can run on both. For example, I have a jsp file C:\Program Files\Apache Group\Apache2\tomcat\webapps\ROOT\testJSP\testDBPool.jsp. I can run http://localhost:82/testJSP/testDBPool.jsp or http://localhost:8008/testJSP/testDBPool.jsp in workers2.properties, I have: [uri:/myServlet/*] group=lb [uri:/WEB-INF/*] group=lb [uri:/WEB-INF/classes/*] group=lb Please forward your instruction. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Please help: Apache direct Servlet to Tomcat
On Mon, 13 Sep 2004 11:21:55 -0700, Daxin Zuo [EMAIL PROTECTED] wrote: [snip] For example I have a servlet TestServlet.class (package: myServlet) in [snip] servlet servlet-nameTestServlet/servlet-name servlet-classTestServlet/servlet-class /servlet I might be wrong, but I believe the servlet-class needs to be fully qualified, so it would be servlet-classmyServlet.TestServlet/servlet-class. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Please help: Apache direct Servlet to Tomcat
On Mon, 13 Sep 2004 14:57:31 -0400, Kelly Denehy [EMAIL PROTECTED] wrote: On Mon, 13 Sep 2004 11:21:55 -0700, Daxin Zuo [EMAIL PROTECTED] wrote: [snip] For example I have a servlet TestServlet.class (package: myServlet) in [snip] servlet servlet-nameTestServlet/servlet-name servlet-classTestServlet/servlet-class /servlet I might be wrong, but I believe the servlet-class needs to be fully qualified, so it would be servlet-classmyServlet.TestServlet/servlet-class. Hmmm, except you said it runs correctly when accessing directly through Tomcat on port 8008. I've always avoided accessing the ROOT webapp through Apache to avoid these kind of issues, because of the additional ambiguity that it introduces. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]