You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dave Naden <Da...@sas.com> on 2003/05/06 15:41:39 UTC

FW: confusion about connectors

> Tomcat 4.1.18, Apache 2.0.45, mod_jk file mod_jk-2.0.42.dll
> 
> I'm confused about the Tomcat log, which looks like this:
> 
> May 6, 2003 7:37:33 AM org.apache.commons.modeler.Registry loadRegistry
> INFO: Loading registry information
> May 6, 2003 7:37:33 AM org.apache.commons.modeler.Registry getRegistry
> INFO: Creating new Registry instance
> May 6, 2003 7:37:34 AM org.apache.commons.modeler.Registry getServer
> INFO: Creating MBeanServer
> May 6, 2003 7:37:34 AM org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on port 8080
> Starting service Tomcat-Standalone
> Apache Tomcat/4.1.18
> May 6, 2003 7:37:58 AM org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on port 8080
> May 6, 2003 7:37:58 AM org.apache.jk.common.ChannelSocket init
> INFO: JK2: ajp13 listening on /0.0.0.0:8009
> May 6, 2003 7:37:58 AM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=20/70  config=C:\tomcat_deploy\conf\jk2.properties
> 
> 
> #1: why does line 14 say INFO: JK2 when I'm using JK, not JK2.  I've got a <Connector> on port 8009 (the default) like this:
> 
>    <!-- 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="20000"
>                useURIValidationHack="false"
>                protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"
>                />
> 
> #2:  the last line says Jk running, pointing to config file jk2.properties, in which every line is comment out. It can't be using that config file!  And how does Tomcat know that mod_jk is running, that's part of the Apache setup, not Tomcat's.
> 
> BTW, it all works, I just want to know what I'm looking at!  Can anybody explain?
> 
> -Dave Naden
> 
> 
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: FW: confusion about connectors

Posted by Tim Funk <fu...@joedog.org>.
AFAIK: (Anyone please fill in better details so I can put this into the faq 
because this occasionally confuses me too)

On the tomcat side - jk is jk is jk. Tomcat doesn't really know much (if any) 
difference between jk and jk2.

On the apache side there is mod_jk and jk2. The both implement the JK 
protocol. jk2 is a refactored version of jk. jk2 has been written with the 
apr(apache portable runtime) in mind and is more suited for apache2. jk2 is 
still beta quality but all enhancements (functionalty, administration, ease 
of configuring, ...) are going there.

-Tim

Dave Naden wrote:
>>Tomcat 4.1.18, Apache 2.0.45, mod_jk file mod_jk-2.0.42.dll
>>
>>I'm confused about the Tomcat log, which looks like this:
>>
>>May 6, 2003 7:37:33 AM org.apache.commons.modeler.Registry loadRegistry
>>INFO: Loading registry information
>>May 6, 2003 7:37:33 AM org.apache.commons.modeler.Registry getRegistry
>>INFO: Creating new Registry instance
>>May 6, 2003 7:37:34 AM org.apache.commons.modeler.Registry getServer
>>INFO: Creating MBeanServer
>>May 6, 2003 7:37:34 AM org.apache.coyote.http11.Http11Protocol init
>>INFO: Initializing Coyote HTTP/1.1 on port 8080
>>Starting service Tomcat-Standalone
>>Apache Tomcat/4.1.18
>>May 6, 2003 7:37:58 AM org.apache.coyote.http11.Http11Protocol start
>>INFO: Starting Coyote HTTP/1.1 on port 8080
>>May 6, 2003 7:37:58 AM org.apache.jk.common.ChannelSocket init
>>INFO: JK2: ajp13 listening on /0.0.0.0:8009
>>May 6, 2003 7:37:58 AM org.apache.jk.server.JkMain start
>>INFO: Jk running ID=0 time=20/70  config=C:\tomcat_deploy\conf\jk2.properties
>>
>>
>>#1: why does line 14 say INFO: JK2 when I'm using JK, not JK2.  I've got a <Connector> on port 8009 (the default) like this:
>>
>>   <!-- 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="20000"
>>               useURIValidationHack="false"
>>               protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"
>>               />
>>
>>#2:  the last line says Jk running, pointing to config file jk2.properties, in which every line is comment out. It can't be using that config file!  And how does Tomcat know that mod_jk is running, that's part of the Apache setup, not Tomcat's.
>>
>>BTW, it all works, I just want to know what I'm looking at!  Can anybody explain?
>>
>>-Dave Naden
>>
>>
>>
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org