Hi, 1) You need to set up a URI mapping in your workers2.properties in your apache conf directory for the servlets to work, its enough to just put yourapp/*, from the sounds of it you must have yourapp/*.jsp or something like that.
2) You need to set up URL mappings in the applications web.xml file and then you can have the URL as anything you want to each servlet. Ta Matt -----Original Message----- From: Daxin Zuo [mailto:[EMAIL PROTECTED] Sent: 27 May 2004 16:14 To: Tomcat Users List Subject: How to make Apache direct Servlet to Tomcat My Apache 2.0.49 can direct JSP to Tomcat 5.0.19, but it cannot direct Servlet to Tomcat. I can run it on Tomcat: http://localhost:8008/servlet/myapp/testServlet But I cannot run it on Apache (port number is 82) like: http://localhost:82/servlet/myapp/testServlet. The error log says: File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/servlet. I guess I may need to put <servlet> in some configuration file in Apache/conf. Please tell me 1) How to make Apache direct servlet to Tomcat? 2) Suppose my application base folder is myApp, is there a way to run the servlet on Apache and with the url like: http://localhost:82/myapp/testServlet (without /Servlet)? Thanks. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]