Gee, Robert, you keep beating me to the punch like this and I might actually be able to take a vacation some day! LOL
Tref, as Robert mentioned, there are two Listener elements needed in server.xml (per hostname) for the auto-config to work. The two Listener elements are not the same, and in the config you posted, they are reversed. Flip them, and you should be good to go. So, immediately after the "server port=8005" line should be this: <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" /> And in the Host element should be this: <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" append="true" forwardAll="false" /> In the sample you posted, you have them flipped. Incidentally, the auto-config inclination to put everything in a virtual host wrapper for localhost is desired behavior...as you would want to have different JK statements for various hosts, one of the Listener elements keys off of the Host element in server.xml. The Host element takes a "name" parameter, which is the name of the host being served, whether it be localhost or some.domain.com. So you would have one Listener element in "Server", and multiple Listener elements, one in each Host element. Check my HOWTO, while it is for Linux, Tomcat is not OS specific, and neither is Apache. The config is the same, assuming you have a Solaris binary of the JK connector. On that note, there is no need to build the Java side of the connectors when building. All you need is the Apache side, and this can be done with ./configure....there is no need to run ant or anything else to get a connector binary, as the JAR binaries of the connectors are already included in the Tomcat package. John > -----Original Message----- > From: Robert L Sowders [mailto:rsowders@;usgs.gov] > Sent: Wednesday, October 23, 2002 5:50 AM > To: Tomcat Users List > Subject: RE: mod_jk - Apache 2.0.43 - Tomcat 4.1.12 config issues on > Solaris 8 > > > It's all explained in the HowTo posted by John Turner. > http://www.johnturner.com/howto/apache2-tomcat404-howto.html > See step 3. > > > > > "Tref Gare" <[EMAIL PROTECTED]> > 10/23/2002 12:08 AM > Please respond to "Tomcat Users List" > > > To: "Tomcat Users List" <[EMAIL PROTECTED]> > cc: > Subject: RE: mod_jk - Apache 2.0.43 - Tomcat > 4.1.12 config issues on Solaris 8 > > ;-) > Thanks for your reply. > > Many apologies, my transcription efforts were not as good as > they should > have been. > Rest assured that I didn't have any "wokers" in my > workers.properties and > that the port etc was set. > > However I'm confused by your first comment > <snip> > >Immediately following the <server port="8005" ..> > > ><Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" > > modJk="/opt/apache_2/modules/mod_jk.so" jkDebug="info" > > > workersConfig="/opt/jakarta-tomcat-4.1.12/conf/jk/workers.properties" > > jkLog="/opt/jakarta-tomcat-4.1.12/logs/mod_jk.log" /> > >Then after <Host name="localhost" .. > > ><Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" > > append="true" /> > > You have the above reversed. Change them around. > > </snip> > > You may not have read my more recent post detailing how these > issues seem > to have been resolved by handling all the mod_jk.conf data > directly into > httpd.conf. However I'm still curious as to what you mean by > "reversed". > Do you mean the ApacheConfig listener should be placed after > the < server > Port=...> or that the listener classes are actually reversed. > ? This could make some sense given that after I stopped > relying on the > auto confgured file all seems to have become well. > > Regards > > Tref Gare > > > -----Original Message----- > From: Robert L Sowders [mailto:rsowders@;usgs.gov] > Sent: Wed 23/10/2002 16:49 > To: Tomcat Users List > Cc: > Subject: Re: mod_jk - Apache 2.0.43 - Tomcat 4.1.12 > config issues on Solaris 8 > > > > > -- > To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org> -- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
