Hello Jinesh, I didn't set up jk2 but just jk(1)... but my problem was not related to the jk configuration (when I access the site from localhost everything works fine... in my configuration the problem was that I was just testing and so I didn't have a real serverName.. so I used one set up in the hosts file but was not set up properly...
For JK I used a real good tutorial by John Turner at www.johnturner.com for Jk2 I think you can have a look at the tomcat documentation... quite obvious to say.. but didn't find any tutorial about it... Hope that helps Simone > -----Messaggio originale----- > Da: Jinesh Varia [mailto:[EMAIL PROTECTED] > Inviato: domenica 9 marzo 2003 20.15 > A: [EMAIL PROTECTED] > Oggetto: Re: R: Solved my problems with apache to tomcat integration > through mod_jk > > > Simone, > > I have similar problems as yours. > > My tomcat is working damn fine. I can access and EXECUTE all the > servlets and *.jsp pages using > :8080 port > > But when I try to get :80 (just apache) it does not route the > requests to tomcat > > I am using mod_jk2 that generated mod_jk.conf (not mod_jk2.conf) > > How can I see whether apache is sending some requests to tomcat > or not. is there any way I can > check the logs and see the error. I checked all the logs but > nothing shows any error > > Can you help > jinesh > > > --- Simone Chiaretta <[EMAIL PROTECTED]> wrote: > > I know it's incorrect, but it works fine both the way (of > course just one at > > time) > > that's why I cannot understand the behaveour > > Simo > > > > > -----Messaggio originale----- > > > Da: Jacob Kjome [mailto:[EMAIL PROTECTED] > > > Inviato: domenica 9 marzo 2003 9.15 > > > A: Tomcat Users List > > > Oggetto: Re: Solved my problems with apache to tomcat integration > > > through mod_jk > > > > > > > > > > > > >Then I noticed one thing... > > > >in the how to John says nothing about configuring > connectors, but in the > > > >default server.xml there is Coyote/JK2 configured.... > > > >but mod_jk should be used with the normal AJP connector. > > > > > > This is incorrect. The CoyoteConnector is a complete > replacement for the > > > AJP13Connector and both mod_jk and jk2 work just fine with it. > > > > > > Jake > > > > > > At 12:13 AM 3/9/2003 +0100, you wrote: > > > >Dear all, > > > >I finally solved my problem with apache to tomcat integration. > > > >I followed John Turner's HOW-To, my solution was not running... > > > > > > > >The main problem was that I was not using a domain name, but > > > just fake name > > > >because I was testing inside a lan with no DNS inside, so I > just put in > > > >hosts file the correspondance to the IP. > > > >Inside httpd.conf and server.xml I used piyolinux when I had > to specify a > > > >server name (and this was the hostname too) > > > > > > > >then in the hosts files I put those lines to reach the linux box > > > >192.168.1.55 piyolinux > > > > > > > >but on my server host I put > > > >127.0.0.1 piyolinux > > > > > > > >But the problem is that this way apache traslated the name > > > piyolinux that is > > > >inside the mod_jk.conf to 127.0.0.1 and so when a request > arrive to the > > > >192.x IP it doesn't match with the virtualhost defined in > > > mod_jk.conf so he > > > >tells me that the /examples dir doesn't exists > > > > > > > >Then I noticed one thing... > > > >in the how to John says nothing about configuring > connectors, but in the > > > >default server.xml there is Coyote/JK2 configured.... > > > >but mod_jk should be used with the normal AJP connector. > > > > > > > >I tried with both connector configured and the integration works fine > > > >anyway. > > > >Does anybody can explain this to me, because this seems strange > > > > > > > > > > > > <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --> > > > > > > > > <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" > > > > port="8009" minProcessors="5" maxProcessors="75" > > > > enableLookups="true" redirectPort="8443" > > > > acceptCount="10" debug="0" connectionTimeout="0" > > > > useURIValidationHack="false" > > > > > > > >protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/> > > > > > > > > <!-- Define an AJP 1.3 Connector on port 8009 --> > > > > > > > > <Connector className="org.apache.ajp.tomcat4.Ajp13Connector" > > > > port="8009" minProcessors="5" maxProcessors="75" > > > > acceptCount="10" debug="0"/> > > > > > > > >Thank you all > > > >Simone (now happier becuase this works :-) > > > > > > > >------------------------- > > > >Simone Chiaretta > > > >www.piyosailing.com/S > > > >Any sufficiently advanced technology is indistinguishable from magic > > > > > > > > > > > >--------------------------------------------------------------------- > > > >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] > > > > > ===== > ----------------------------------------------------------------- > Jinesh Varia > Graduate Student, Information Systems > Pennsylvania State University > Email: [EMAIL PROTECTED] > ----------------------------------------------------------------- > 'Self is the author of its actions.' > > __________________________________________________ > Do you Yahoo!? > Yahoo! Tax Center - forms, calculators, tips, more > http://taxes.yahoo.com/ > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
