You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David Reche Martinez <dr...@novasoft.es> on 2003/05/22 17:42:19 UTC

Apache2 and Tomcat4 using jk2

Hi, I'm trying to integrate Apache and Tomcat using jk2

This is my configuration:
    Apache 2.0.45
    Tomcat 4.1.24
    JK2 (2.0.1)

This are each configuration file:

***httpd.conf***
...
LoadModule jk2_module modules/mod_jk2.so
...

***jk2.properties***
All the file is commented

***workers2.properties***

# Define the communication channel
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009

# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
info=Map the whole webapp

***server.xml***
...
<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
               port="8009" minProcessors="5" maxProcessors="75"
               acceptCount="10" debug="0"/>
...


When I try to access http:/server/examples Apache throw this error:

[Thu May 22 17:12:22 2003] [error] mod_jk.handler() Error connecting to
tomcat 120000
[Thu May 22 17:12:44 2003] [error] workerEnv.init() create slot epStat.5
failed
[Thu May 22 17:12:44 2003] [error] lb.service() worker failed
ajp13:localhost:8009
[Thu May 22 17:12:44 2003] [error] lb.service() unrecoverable error...

Can anybody help me?

Thank you


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


Re: Apache2 and Tomcat4 using jk2

Posted by John Turner <to...@johnturner.com>.
You can't use Ajp13Connection with mod_jk2 (JK2).  JK2 needs 
CoyoteConnector, which is enabled by default on port 8009.  Disable the 
Ajp13Connector on port 8009 in your server.xml, and re-enable the 
CoyoteConnector on port 8009.

John

On Thu, 22 May 2003 17:42:19 +0200, David Reche Martinez 
<dr...@novasoft.es> wrote:

> Hi, I'm trying to integrate Apache and Tomcat using jk2
>
> This is my configuration:
> Apache 2.0.45
> Tomcat 4.1.24
> JK2 (2.0.1)
>
> This are each configuration file:
>
> ***httpd.conf***
> ...
> LoadModule jk2_module modules/mod_jk2.so
> ...
>
> ***jk2.properties***
> All the file is commented
>
> ***workers2.properties***
>
> # Define the communication channel
> [channel.socket:localhost:8009]
> info=Ajp13 forwarding over socket
> tomcatId=localhost:8009
>
> # Map the Tomcat examples webapp to the Web server uri space
> [uri:/examples/*]
> info=Map the whole webapp
>
> ***server.xml***
> ...
> <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
> port="8009" minProcessors="5" maxProcessors="75"
> acceptCount="10" debug="0"/>
> ...
>
>
> When I try to access http:/server/examples Apache throw this error:
>
> [Thu May 22 17:12:22 2003] [error] mod_jk.handler() Error connecting to
> tomcat 120000
> [Thu May 22 17:12:44 2003] [error] workerEnv.init() create slot epStat.5
> failed
> [Thu May 22 17:12:44 2003] [error] lb.service() worker failed
> ajp13:localhost:8009
> [Thu May 22 17:12:44 2003] [error] lb.service() unrecoverable error...
>
> Can anybody help me?
>
> Thank you
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

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


Session handling

Posted by Edgar Kraus <ek...@gigastep.de>.
Hallo,

are there any differences concerning session-handling between Tomcat 3.2.x
and 4.1.x?
My WebApp (JSPs)  (running fine on Ver. 3.2.x) doesn't keep session
information (Bean properties) anymore in Ver. 4.1.18

I set
<%@ page session="true" %>  and
scope="session" and
session-timeout to 30 min (web.xml)

Does anybody knows why Tomcat 4.1.18 acts different.

Thanks in advance

Edgar


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


Re: Apache2 and Tomcat4 using jk2

Posted by Mark Eggers <it...@yahoo.com>.
Several things.

1. You need the following in your workers2.properties
file:

[shm]
file=C:/Apache2/logs/shm.file
size=1048576

Please put the file somewhere reasonable for your
system  since I'm currently typing from a Windows/2000
Pro system.

2. Use the following minimal socket connection for
jk2.properties.

#
# Socket configuration
#
handler.list=request,container,channelSocket

The rest of the defaults for that connection are fine.

3. Comment out the Ajp13Connector in server.xml and
use the Coyote connector:

<!-- 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="false" redirectPort="8443"
   acceptCount="10" debug="0"
connectionTimeout="20000"
   useURIValidationHack="false"
   protocolHandlerClassName=
       "org.apache.jk.server.JkCoyoteHandler"/>

HTH

/mde/
just my two cents . . . .

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

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