Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 70527 invoked from network); 11 Oct 2005 23:24:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Oct 2005 23:24:08 -0000 Received: (qmail 16123 invoked by uid 500); 11 Oct 2005 23:23:53 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 16106 invoked by uid 500); 11 Oct 2005 23:23:52 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 16095 invoked by uid 99); 11 Oct 2005 23:23:52 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Oct 2005 16:23:52 -0700 Received-SPF: pass (asf.osuosl.org: local policy) Received: from [216.70.56.190] (HELO mediture.com) (216.70.56.190) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 11 Oct 2005 16:23:55 -0700 Received: from nat.mediture.com ([64.61.199.14]) by mediture.com (JAMES SMTP Server 2.2.1-RC1) with SMTP ID 431 for ; Tue, 11 Oct 2005 18:23:31 -0500 (CDT) Subject: Getting Apache2 forwarding to tomcat5 From: Dan Chesmore To: Tomcat Users List Content-Type: text/plain Organization: Mediture Date: Tue, 11 Oct 2005 18:22:21 -0500 Message-Id: <1129072941.5727.14.camel@linux.site> Mime-Version: 1.0 X-Mailer: Evolution 2.4.0 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I have read about 25 different websites on getting this setup. I have read through this list trying to find the answer I need. I have spent the last 2 days and soon 3rd day trying to get this working. I need Apache to forward port 80 and 443 requests to tomcat to 8080 and 8443. I am working on the non-ssl right now. I get an error in Apache error_log saying: [error] uriEnv.init() map to invalid worker /*.jsp-0 ajp13:localhost:8009 [error] uriEnv.init() map to invalid worker /patientC onnect-1 ajp13:localhost:8009 Let me give a bit of history and config files. This is running on SLES9 x86-64 version. Apache and tomcat and the connectors are from RPMs that came with SuSE. Everything is installed in SuSE default install location. httpd.conf.local: LoadModule jk2_module /usr/lib64/apache2/mod_jk2.so JkUriSet worker ajp13:localhost:8009 JkUriSet worker ajp13:localhost:8009 workers2.properties: [logger] level=DEBUG [config:] file=/etc/apache2/workers2.properties debug=0 debugEnv=0 [uriMap:] info=Maps the requests. Options: debug debug=1 [shm] info=Scoreboard. Required for reconfiguration and status with multiprocess serve rs file=/usr/share/tomcat/logs/jk2.shm size=1048576 debug=0 disabled=0 [workerEnv:] info=Global server options timing=1 debug=0 [status:] info=Status worker, displays runtime informations [uri:patientconnect.truchart.com/jkstatus/*] info=Display status information and checks the config file for changes. group=status: [channel.socket:localhost:8009] info=Ajp13 forwarding over socket # Define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 [uri:patientconnect.truchart.com/patientConnect/*] info=patientConnect Both the workers2.properties and the httpd.conf.local are located in /etc/apache2 directory. In the /usr/share/tomcat/conf/ directory is the jk2.properties and the server.xml jk2.properties: ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED ## WHEN YOU EDIT THE FILE. ## COMMENTS WILL BE _LOST_ ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc. # Set the desired handler list # handler.list=apr,request,channelJni # # Override the default port for the socketChannel channelSocket.port=8009 # Default: # channelUnix.file=${jkHome}/work/jk2.socket # Just to check if the the config is working # shm.file=${jkHome}/work/jk2.shm # In order to enable jni use any channelJni directive # channelJni.disabled = 0 # And one of the following directives: # apr.jniModeSo=/opt/apache2/modules/mod_jk2.so # If set to inprocess the mod_jk2 will Register natives itself # This will enable the starting of the Tomcat from mod_jk2 # apr.jniModeSo=inprocess and the server.xml that was modified: ... Thank you for any help or direction you can place me. If you think I should have read something first then tell me to read it. I may have skipped over it or I may have read it. I have seen a lot of different ways of doing that same thing and tried all so I may be missing up a few of them. Again thank you. -- Dan Chesmore Systems Admin Mediture 7700 Equitable Dr Suite 100 Eden Prairie, MN 55344 952-400-0315 www.mediture.com --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org