Bellow is my Apache2/conf/wrokers2.property. I also wonder if I need to add an listner like <Listener className="org.apache.ajp.tomcat5.config.ApacheConfig" /> in the httpd.conf file
wrokers2.property: [shm] info=Scoreboard. Requried for reconfiguration and status with multiprocess servers. file=anon # Defines a load balancer named lb. Use even if you only have one machine. [lb:lb] Bellow is the # Example socket channel, override port and host. [channel.socket:MyComputerIP:8009] port=8009 host=MyComputerIP # define the worker [ajp13:MyComputerIP:8009] channel=channel.socket:MyComputerIP:8009 group=lb # Map the Tomcat examples webapp to the Web server uri space [uri:/examples/*] group=lb [uri:/www/*] group=lb [uri:/jdbcRowset/*] group=lb [status:] info=Status worker, displays runtime information [uri:/jkstatus/*] info=The Tomcat /jkstatus handler group=status: Thank you. -----Original Message----- From: Lee, Paul NYC [mailto:[EMAIL PROTECTED] Sent: Friday, October 01, 2004 6:22 PM To: 'Tomcat Users List' Subject: RE: How to make Apache direct Servlet to Tomcat I can't see your attachments. Just paste the relevant parts in the body of the email. -----Original Message----- From: Daxin Zuo [mailto:[EMAIL PROTECTED] Sent: Friday, October 01, 2004 5:15 PM To: Tomcat Users List Subject: RE: How to make Apache direct Servlet to Tomcat Thank you for your attention. The Apache2/conf/wrokers2.property is attached. The Tomcat/conf/jk2.property is empty, all lines are commented. in the httpd.conf I added: LoadModule jk2_module modules/mod_jk2-2.0.43.so the .so files are in apache2/modules Thanks -----Original Message----- From: Lee, Paul NYC [mailto:[EMAIL PROTECTED] Sent: Friday, October 01, 2004 1:23 PM To: 'Tomcat Users List' Subject: RE: How to make Apache direct Servlet to Tomcat Hi, It should be done the same way you redirected jsp requests to tomcat. It needs to be mapped in your jk (or jk2) properties file. Post the relevant parts of your properties file if you're not sure why it doesn't work. -----Original Message----- From: Daxin Zuo [mailto:[EMAIL PROTECTED] Sent: Friday, October 01, 2004 1:38 PM To: Tomcat Users List Subject: How to make Apache direct Servlet to Tomcat On my Apache 2.0.43 + Tomcat5.0.28 on UNIX sparc, I can run the same JSP files from both Apache and Tomcat, and run servlets on Tomcat, but I cannot run Servlet from Apache. I register the servlet in tomcat/webapps/www/WEB-INF/web.xml: <servlet> <servlet-name>ServletTest</servlet-name> <servlet-class>ServletTest</servlet-class> </servlet> <servlet-mapping> <servlet-name>ServletTest</servlet-name> <url-pattern>/ServletTest</url-pattern> </servlet-mapping> /www is the DocBase. The error message on the screen is: /ServletTest was not found on this server. From the Apache error log, I see Apache looked for the file in Apache htdocs folder, instead pass the request to Tomcat. When I start Tomcat I get some errors. The are probably not related to the problem above. the errors are: 1) in catalina.out .... INFO: Installing web application at context path /balancer from URL file:/usr/local/apache2/jakarta-tomcat-5.0.28/webapps/balancer Oct 1, 2004 10:14:50 AM org.apache.catalina.core.StandardContext start SEVERE: Error filterStart Oct 1, 2004 10:14:50 AM org.apache.catalina.core.StandardContext start SEVERE: Context startup failed due to previous errors ..... 2) in localhost_log.2004-10-01.txt 2004-10-01 10:14:50 StandardContext[/balancer]Exception starting filter BalancerFilter java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester at org.apache.webapp.balancer.RulesParser.createDigester(RulesParser.java:65) ... Please help me with the servlet problem. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]