You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by dapsy <oa...@yahoo.com> on 2007/07/18 16:02:34 UTC

Mod_jk and geronimo 1.2

I have Apache 2.2.4 installation with mod_jk routing request to geronimo
application server. The setup works for G v1.1 and G v2.0 without any
changes, all I had to do was start the specific instance version and test
with the appriopriate URL. But doesn't work for G v1.2. This is surprising
to me. Does anyone else have this same problem.

Apache HTTP 2.2.4
Apache tomcat mod_jk 1.2.23


workers.properties:
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13

mod_jk.log:
[Wed Jul 18 09:01:59 2007] [32122:34480] [info] 
ajp_service::jk_ajp_common.c (1916): (ajp13) sending request to tomcat
failed,  recoverable operation attempt=2
[Wed Jul 18 09:01:59 2007] [32122:34480] [error]
ajp_service::jk_ajp_common.c (1928): (ajp13) Connecting to tomcat failed.
Tomcat is probably not started or is listening on the wrong port
[Wed Jul 18 09:01:59 2007] [32122:34480] [info]  jk_handler::mod_jk.c
(2142): Service error=0 for worker=ajp13
[Wed Jul 18 09:10:42 2007] [1672:38576] [info] 
ajp_connection_tcp_get_message::jk_ajp_common.c (942): (ajp13) Tomcat has
forced a connection close for socket 14
[Wed Jul 18 09:10:42 2007] [1672:38576] [error]
ajp_get_reply::jk_ajp_common.c (1566): (ajp13) Tomcat is down or refused
connection. No response has been sent to the client (yet)
[Wed Jul 18 09:10:42 2007] [1672:38576] [info]  ajp_service::jk_ajp_common.c
(1877): (ajp13) receiving from tomcat failed, recoverable operation
attempt=0
[Wed Jul 18 09:10:42 2007] [1672:38576] [info]  ajp_service::jk_ajp_common.c
(1916): (ajp13) sending request to tomcat failed,  recoverable operation
attempt=1
[Wed Jul 18 09:10:42 2007] [1672:38576] [info] 
ajp_connection_tcp_get_message::jk_ajp_common.c (942): (ajp13) Tomcat has
forced a connection close for socket 14
[Wed Jul 18 09:10:42 2007] [1672:38576] [error]
ajp_get_reply::jk_ajp_common.c (1566): (ajp13) Tomcat is down or refused
connection. No response has been sent to the client (yet)
[Wed Jul 18 09:10:42 2007] [1672:38576] [info]  ajp_service::jk_ajp_common.c
(1877): (ajp13) receiving from tomcat failed, recoverable operation
attempt=1
[Wed Jul 18 09:10:42 2007] [1672:38576] [info]  ajp_service::jk_ajp_common.c
(1916): (ajp13) sending request to tomcat failed,  recoverable operation
attempt=2
[Wed Jul 18 09:10:42 2007] [1672:38576] [error] ajp_service::jk_ajp_common.c
(1928): (ajp13) Connecting to tomcat failed. Tomcat is probably not started
or is listening on the wrong port
[Wed Jul 18 09:10:42 2007] [1672:38576] [info]  jk_handler::mod_jk.c (2142):
Service error=0 for worker=ajp13


-- 
View this message in context: http://www.nabble.com/Mod_jk-and-geronimo-1.2-tf4103427s134.html#a11669311
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: Mod_jk and geronimo 1.2

Posted by Hernan Cunico <hc...@gmail.com>.
I just downloaded a 1.2 binary from the web site and I'm getting the same error with Jetty, it does work fine with Tomcat though.
I'll take a closer look but IIRC I had them both working at some point (can't tell the review # though)


dapsy wrote:
> It's good to know that it works. So it probabl something I am doing wrong.
> This is addition information that I have.
> 
> workers.properties:
> worker.list=node1
> 
> worker.node1.type=ajp13
> worker.node1.host=10.111.5.121
> worker.node1.port=8009
> 
> Apache HTTP entry:
> <IfModule !mod_jk.c>
> LoadModule jk_module  modules/mod_jk.so
> </IfModule>
> <IfModule mod_jk.c>
> JkWorkersFile "conf/workers.properties"
> JkLogFile "logs/mod_jk.log"
> JkLogLevel debug
> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
> JkOptions +ForwardKeySize +ForwardURICompat
> JKMount   /*  node1
> </IfModule>
> 
> 
> Errorlog on geronimo server when I connection to a remote instance specified
> in the workers.properties file
> 13:51:56,497 WARN  [AJP13Connection] EXCEPTION 
> java.lang.IllegalArgumentException: null value
>         at org.mortbay.http.HttpFields.add(HttpFields.java:917)
>         at org.mortbay.http.HttpMessage.addField(HttpMessage.java:321)
>         at
> org.mortbay.http.ajp.AJP13Connection.handleNext(AJP13Connection.java:234)
>         at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
>         at
> org.mortbay.http.ajp.AJP13Listener.handleConnection(AJP13Listener.java:212)
>         at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
>         at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
> 13:52:10,584 WARN  [AJP13Connection] Bad version/console
> java.lang.IllegalArgumentException: Unknown version
>         at org.mortbay.http.HttpMessage.setVersion(HttpMessage.java:471)
>         at
> org.mortbay.http.ajp.AJP13Connection.handleNext(AJP13Connection.java:204)
>         at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
>         at
> org.mortbay.http.ajp.AJP13Listener.handleConnection(AJP13Listener.java:212)
>         at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
>         at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
> 13:52:10,587 WARN  [AJP13Connection] 449/8192[28]: FORWARD_REQUEST{:
> 12,34,01,bd,02,02,00,08,48,54,54,50,2f,31,2e,31,00,00,08,2f,63,6f,6e,73,6f,6c,65,00,00,0c,31,30
> : .4......HTTP.1.1....console...10
> 2e,31,31,31,2e,33,2e,32,30,34,00,ff,ff,00,0c,31,30,2e,31,31,31,2e,35,2e,31,30,33,00,00,50,00,00
> : .111.3.204.ÿÿ..10.111.5.103..P..
> 0a,a0,0b,00,0c,31,30,2e,31,31,31,2e,35,2e,31,30,33,00,a0,0e,00,5c,4d,6f,7a,69,6c,6c,61,2f,35,2e
> : .....10.111.5.103.....Mozilla.5.
> 30,20,28,4d,61,63,69,6e,74,6f,73,68,3b,20,55,3b,20,49,6e,74,65,6c,20,4d,61,63,20,4f,53,20,58,3b
> : 0..Macintosh..U..Intel.Mac.OS.X.
> 20,65,6e,2d,55,53,3b,20,72,76,3a,31,2e,38,2e,31,2e,34,29,20,47,65,63,6b,6f,2f,32,30,30,37,30,35
> : .en.US..rv.1.8.1.4..Gecko.200705
> 31,35,20,46,69,72,65,66,6f,78,2f,32,2e,30,2e,30,2e,34,00,a0,01,00,63,74,65,78,74,2f,78,6d,6c,2c
> : 15.Firefox.2.0.0.4....ctext.xml.
> 61,70,70,6c,69,63,61,74,69,6f,6e,2f,78,6d,6c,2c,61,70,70,6c,69,63,61,74,69,6f,6e,2f,78,68,74,6d
> : application.xml.application.xhtm
> 6c,2b,78,6d,6c,2c,74,65,78,74,2f,68,74,6d,6c,3b,71,3d,30,2e,39,2c,74,65,78,74,2f,70,6c,61,69,6e
> : l.xml.text.html.q.0.9.text.plain
> 3b,71,3d,30,2e,38,2c,69,6d,61,67,65,2f,70,6e,67,2c,2a,2f,2a,3b,71,3d,30,2e,35,00,a0,04,00,0e,65
> : .q.0.8.image.png.....q.0.5.....e
> 6e,2d,75,73,2c,65,6e,3b,71,3d,30,2e,35,00,a0,03,00,0c,67,7a,69,70,2c,64,65,66,6c,61,74,65,00,a0
> : n.us.en.q.0.5.....gzip.deflate..
> 02,00,1e,49,53,4f,2d,38,38,35,39,2d,31,2c,75,74,66,2d,38,3b,71,3d,30,2e,37,2c,2a,3b,71,3d,30,2e
> : ...ISO.8859.1.utf.8.q.0.7...q.0.
> 37,00,00,0a,4b,65,65,70,2d,41,6c,69,76,65,00,00,03,33,30,30,00,a0,06,00,0a,6b,65,65,70,2d,61,6c
> : 7...Keep.Alive...300.....keep.al
> 69,76,65,00,a0,09,00,31,4a,53,45,53,53,49,4f,4e,49,44,3d,6b,33,72,38,61,36,6a,75,66,35,66,69,3b
> : ive....1JSESSIONID.k3r8a6juf5fi.
> 20,4a,53,45,53,53,49,4f,4e,49,44,3d,31,35,38,71,70,34,74,77,75,6f,65,37,64,00,a0,08,00,01,30,00
> : .JSESSIONID.158qp4twuoe7d.....0.
> ff : ÿ
> 
> 13:52:10,588 WARN  [AJP13Connection] EXCEPTION 
> java.lang.IllegalArgumentException: null value
>         at org.mortbay.http.HttpFields.add(HttpFields.java:917)
>         at org.mortbay.http.HttpMessage.addField(HttpMessage.java:321)
>         at
> org.mortbay.http.ajp.AJP13Connection.handleNext(AJP13Connection.java:234)
>         at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
>         at
> org.mortbay.http.ajp.AJP13Listener.handleConnection(AJP13Listener.java:212)
>         at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
>         at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
> 13:52:10,594 WARN  [AJP13Connection] Bad version/console
> java.lang.IllegalArgumentException: Unknown version
>         at org.mortbay.http.HttpMessage.setVersion(HttpMessage.java:471)
>         at
> org.mortbay.http.ajp.AJP13Connection.handleNext(AJP13Connection.java:204)
>         at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
>         at
> org.mortbay.http.ajp.AJP13Listener.handleConnection(AJP13Listener.java:212)
>         at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
>         at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
> 13:52:10,595 WARN  [AJP13Connection] 449/8192[28]: FORWARD_REQUEST{:
> 12,34,01,bd,02,02,00,08,48,54,54,50,2f,31,2e,31,00,00,08,2f,63,6f,6e,73,6f,6c,65,00,00,0c,31,30
> : .4......HTTP.1.1....console...10
> 2e,31,31,31,2e,33,2e,32,30,34,00,ff,ff,00,0c,31,30,2e,31,31,31,2e,35,2e,31,30,33,00,00,50,00,00
> : .111.3.204.ÿÿ..10.111.5.103..P..
> 0a,a0,0b,00,0c,31,30,2e,31,31,31,2e,35,2e,31,30,33,00,a0,0e,00,5c,4d,6f,7a,69,6c,6c,61,2f,35,2e
> : .....10.111.5.103.....Mozilla.5.
> 30,20,28,4d,61,63,69,6e,74,6f,73,68,3b,20,55,3b,20,49,6e,74,65,6c,20,4d,61,63,20,4f,53,20,58,3b
> : 0..Macintosh..U..Intel.Mac.OS.X.
> 20,65,6e,2d,55,53,3b,20,72,76,3a,31,2e,38,2e,31,2e,34,29,20,47,65,63,6b,6f,2f,32,30,30,37,30,35
> : .en.US..rv.1.8.1.4..Gecko.200705
> 31,35,20,46,69,72,65,66,6f,78,2f,32,2e,30,2e,30,2e,34,00,a0,01,00,63,74,65,78,74,2f,78,6d,6c,2c
> : 15.Firefox.2.0.0.4....ctext.xml.
> 61,70,70,6c,69,63,61,74,69,6f,6e,2f,78,6d,6c,2c,61,70,70,6c,69,63,61,74,69,6f,6e,2f,78,68,74,6d
> : application.xml.application.xhtm
> 6c,2b,78,6d,6c,2c,74,65,78,74,2f,68,74,6d,6c,3b,71,3d,30,2e,39,2c,74,65,78,74,2f,70,6c,61,69,6e
> : l.xml.text.html.q.0.9.text.plain
> 3b,71,3d,30,2e,38,2c,69,6d,61,67,65,2f,70,6e,67,2c,2a,2f,2a,3b,71,3d,30,2e,35,00,a0,04,00,0e,65
> : .q.0.8.image.png.....q.0.5.....e
> 6e,2d,75,73,2c,65,6e,3b,71,3d,30,2e,35,00,a0,03,00,0c,67,7a,69,70,2c,64,65,66,6c,61,74,65,00,a0
> : n.us.en.q.0.5.....gzip.deflate..
> 02,00,1e,49,53,4f,2d,38,38,35,39,2d,31,2c,75,74,66,2d,38,3b,71,3d,30,2e,37,2c,2a,3b,71,3d,30,2e
> : ...ISO.8859.1.utf.8.q.0.7...q.0.
> 37,00,00,0a,4b,65,65,70,2d,41,6c,69,76,65,00,00,03,33,30,30,00,a0,06,00,0a,6b,65,65,70,2d,61,6c
> : 7...Keep.Alive...300.....keep.al
> 69,76,65,00,a0,09,00,31,4a,53,45,53,53,49,4f,4e,49,44,3d,6b,33,72,38,61,36,6a,75,66,35,66,69,3b
> : ive....1JSESSIONID.k3r8a6juf5fi.
> 20,4a,53,45,53,53,49,4f,4e,49,44,3d,31,35,38,71,70,34,74,77,75,6f,65,37,64,00,a0,08,00,01,30,00
> : .JSESSIONID.158qp4twuoe7d.....0.
> 
> Message in mod_jk.log
> [Wed Jul 18 13:59:11 2007] [19869:46768] [debug]
> ajp_send_request::jk_ajp_common.c (1287): (node1) request body to send 0 -
> request body to resend 0
> [Wed Jul 18 13:59:11 2007] [19869:46768] [info] 
> ajp_connection_tcp_get_message::jk_ajp_common.c (945): (node1) Tomcat has
> forced a connection close for socket 14
> [Wed Jul 18 13:59:11 2007] [19869:46768] [error]
> ajp_get_reply::jk_ajp_common.c (1592): (node1) Tomcat is down or refused
> connection. No response has been sent to the client (yet)
> [Wed Jul 18 13:59:11 2007] [19869:46768] [info] 
> ajp_service::jk_ajp_common.c (1902): (node1) receiving from tomcat failed,
> recoverable operation attempt=1
> [Wed Jul 18 13:59:11 2007] [19869:46768] [info] 
> ajp_service::jk_ajp_common.c (1941): (node1) sending request to tomcat
> failed,  recoverable operation attempt=2
> [Wed Jul 18 13:59:11 2007] [19869:46768] [error]
> ajp_service::jk_ajp_common.c (1953): (node1) Connecting to tomcat failed.
> Tomcat is probably not started or is listening on the wrong port
> [Wed Jul 18 13:59:11 2007] [19869:46768] [debug] ajp_done::jk_ajp_common.c
> (2286): recycling connection pool slot=0 for worker node1
> [Wed Jul 18 13:59:11 2007] [19869:46768] [info]  jk_handler::mod_jk.c
> (2254): Service error=0 for worker=node1 
> 
> 
> 
> Hernan Cunico wrote:
>> I have tested it for 1.2 and it worked. Although I used a different
>> version of mod_jk it should still work for 1.2 if it did for 1.1 and 2.0
>>
>> It seems like it can't get to port 8009. I you wouldn't be using localhost
>> I would say to check name resolution too, but that's not the case here.
>>
>> Did you get Geronimo v1.2 binaries or built your own? Any chance of having
>> Geronimo running on other than the default ports? can you see port 8009 up
>> and LISTENING? (netstat -na | grep -i list)
>>
>> Just for double-checking, you may want to take a quick look at this doc,
>> mod_jk version tested is provided there too.
>>
>> http://cwiki.apache.org/GMOxDOC12/configure-apache-httpd-with-jakarta-tomcat-connector-modjk.html
>>
>> HTH
>>
>> Cheers!
>> Hernan
>>
>> dapsy wrote:
>>> I have Apache 2.2.4 installation with mod_jk routing request to geronimo
>>> application server. The setup works for G v1.1 and G v2.0 without any
>>> changes, all I had to do was start the specific instance version and test
>>> with the appriopriate URL. But doesn't work for G v1.2. This is
>>> surprising
>>> to me. Does anyone else have this same problem.
>>>
>>> Apache HTTP 2.2.4
>>> Apache tomcat mod_jk 1.2.23
>>>
>>>
>>> workers.properties:
>>> worker.ajp13.port=8009
>>> worker.ajp13.host=localhost
>>> worker.ajp13.type=ajp13
>>>
>>> mod_jk.log:
>>> [Wed Jul 18 09:01:59 2007] [32122:34480] [info] 
>>> ajp_service::jk_ajp_common.c (1916): (ajp13) sending request to tomcat
>>> failed,  recoverable operation attempt=2
>>> [Wed Jul 18 09:01:59 2007] [32122:34480] [error]
>>> ajp_service::jk_ajp_common.c (1928): (ajp13) Connecting to tomcat failed.
>>> Tomcat is probably not started or is listening on the wrong port
>>> [Wed Jul 18 09:01:59 2007] [32122:34480] [info]  jk_handler::mod_jk.c
>>> (2142): Service error=0 for worker=ajp13
>>> [Wed Jul 18 09:10:42 2007] [1672:38576] [info] 
>>> ajp_connection_tcp_get_message::jk_ajp_common.c (942): (ajp13) Tomcat has
>>> forced a connection close for socket 14
>>> [Wed Jul 18 09:10:42 2007] [1672:38576] [error]
>>> ajp_get_reply::jk_ajp_common.c (1566): (ajp13) Tomcat is down or refused
>>> connection. No response has been sent to the client (yet)
>>> [Wed Jul 18 09:10:42 2007] [1672:38576] [info] 
>>> ajp_service::jk_ajp_common.c
>>> (1877): (ajp13) receiving from tomcat failed, recoverable operation
>>> attempt=0
>>> [Wed Jul 18 09:10:42 2007] [1672:38576] [info] 
>>> ajp_service::jk_ajp_common.c
>>> (1916): (ajp13) sending request to tomcat failed,  recoverable operation
>>> attempt=1
>>> [Wed Jul 18 09:10:42 2007] [1672:38576] [info] 
>>> ajp_connection_tcp_get_message::jk_ajp_common.c (942): (ajp13) Tomcat has
>>> forced a connection close for socket 14
>>> [Wed Jul 18 09:10:42 2007] [1672:38576] [error]
>>> ajp_get_reply::jk_ajp_common.c (1566): (ajp13) Tomcat is down or refused
>>> connection. No response has been sent to the client (yet)
>>> [Wed Jul 18 09:10:42 2007] [1672:38576] [info] 
>>> ajp_service::jk_ajp_common.c
>>> (1877): (ajp13) receiving from tomcat failed, recoverable operation
>>> attempt=1
>>> [Wed Jul 18 09:10:42 2007] [1672:38576] [info] 
>>> ajp_service::jk_ajp_common.c
>>> (1916): (ajp13) sending request to tomcat failed,  recoverable operation
>>> attempt=2
>>> [Wed Jul 18 09:10:42 2007] [1672:38576] [error]
>>> ajp_service::jk_ajp_common.c
>>> (1928): (ajp13) Connecting to tomcat failed. Tomcat is probably not
>>> started
>>> or is listening on the wrong port
>>> [Wed Jul 18 09:10:42 2007] [1672:38576] [info]  jk_handler::mod_jk.c
>>> (2142):
>>> Service error=0 for worker=ajp13
>>>
>>>
>>
> 

Re: Mod_jk and geronimo 1.2

Posted by dapsy <oa...@yahoo.com>.
It's good to know that it works. So it probabl something I am doing wrong.
This is addition information that I have.

workers.properties:
worker.list=node1

worker.node1.type=ajp13
worker.node1.host=10.111.5.121
worker.node1.port=8009

Apache HTTP entry:
<IfModule !mod_jk.c>
LoadModule jk_module  modules/mod_jk.so
</IfModule>
<IfModule mod_jk.c>
JkWorkersFile "conf/workers.properties"
JkLogFile "logs/mod_jk.log"
JkLogLevel debug
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat
JKMount   /*  node1
</IfModule>


Errorlog on geronimo server when I connection to a remote instance specified
in the workers.properties file
13:51:56,497 WARN  [AJP13Connection] EXCEPTION 
java.lang.IllegalArgumentException: null value
        at org.mortbay.http.HttpFields.add(HttpFields.java:917)
        at org.mortbay.http.HttpMessage.addField(HttpMessage.java:321)
        at
org.mortbay.http.ajp.AJP13Connection.handleNext(AJP13Connection.java:234)
        at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
        at
org.mortbay.http.ajp.AJP13Listener.handleConnection(AJP13Listener.java:212)
        at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
        at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
13:52:10,584 WARN  [AJP13Connection] Bad version/console
java.lang.IllegalArgumentException: Unknown version
        at org.mortbay.http.HttpMessage.setVersion(HttpMessage.java:471)
        at
org.mortbay.http.ajp.AJP13Connection.handleNext(AJP13Connection.java:204)
        at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
        at
org.mortbay.http.ajp.AJP13Listener.handleConnection(AJP13Listener.java:212)
        at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
        at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
13:52:10,587 WARN  [AJP13Connection] 449/8192[28]: FORWARD_REQUEST{:
12,34,01,bd,02,02,00,08,48,54,54,50,2f,31,2e,31,00,00,08,2f,63,6f,6e,73,6f,6c,65,00,00,0c,31,30
: .4......HTTP.1.1....console...10
2e,31,31,31,2e,33,2e,32,30,34,00,ff,ff,00,0c,31,30,2e,31,31,31,2e,35,2e,31,30,33,00,00,50,00,00
: .111.3.204.ÿÿ..10.111.5.103..P..
0a,a0,0b,00,0c,31,30,2e,31,31,31,2e,35,2e,31,30,33,00,a0,0e,00,5c,4d,6f,7a,69,6c,6c,61,2f,35,2e
: .....10.111.5.103.....Mozilla.5.
30,20,28,4d,61,63,69,6e,74,6f,73,68,3b,20,55,3b,20,49,6e,74,65,6c,20,4d,61,63,20,4f,53,20,58,3b
: 0..Macintosh..U..Intel.Mac.OS.X.
20,65,6e,2d,55,53,3b,20,72,76,3a,31,2e,38,2e,31,2e,34,29,20,47,65,63,6b,6f,2f,32,30,30,37,30,35
: .en.US..rv.1.8.1.4..Gecko.200705
31,35,20,46,69,72,65,66,6f,78,2f,32,2e,30,2e,30,2e,34,00,a0,01,00,63,74,65,78,74,2f,78,6d,6c,2c
: 15.Firefox.2.0.0.4....ctext.xml.
61,70,70,6c,69,63,61,74,69,6f,6e,2f,78,6d,6c,2c,61,70,70,6c,69,63,61,74,69,6f,6e,2f,78,68,74,6d
: application.xml.application.xhtm
6c,2b,78,6d,6c,2c,74,65,78,74,2f,68,74,6d,6c,3b,71,3d,30,2e,39,2c,74,65,78,74,2f,70,6c,61,69,6e
: l.xml.text.html.q.0.9.text.plain
3b,71,3d,30,2e,38,2c,69,6d,61,67,65,2f,70,6e,67,2c,2a,2f,2a,3b,71,3d,30,2e,35,00,a0,04,00,0e,65
: .q.0.8.image.png.....q.0.5.....e
6e,2d,75,73,2c,65,6e,3b,71,3d,30,2e,35,00,a0,03,00,0c,67,7a,69,70,2c,64,65,66,6c,61,74,65,00,a0
: n.us.en.q.0.5.....gzip.deflate..
02,00,1e,49,53,4f,2d,38,38,35,39,2d,31,2c,75,74,66,2d,38,3b,71,3d,30,2e,37,2c,2a,3b,71,3d,30,2e
: ...ISO.8859.1.utf.8.q.0.7...q.0.
37,00,00,0a,4b,65,65,70,2d,41,6c,69,76,65,00,00,03,33,30,30,00,a0,06,00,0a,6b,65,65,70,2d,61,6c
: 7...Keep.Alive...300.....keep.al
69,76,65,00,a0,09,00,31,4a,53,45,53,53,49,4f,4e,49,44,3d,6b,33,72,38,61,36,6a,75,66,35,66,69,3b
: ive....1JSESSIONID.k3r8a6juf5fi.
20,4a,53,45,53,53,49,4f,4e,49,44,3d,31,35,38,71,70,34,74,77,75,6f,65,37,64,00,a0,08,00,01,30,00
: .JSESSIONID.158qp4twuoe7d.....0.
ff : ÿ

13:52:10,588 WARN  [AJP13Connection] EXCEPTION 
java.lang.IllegalArgumentException: null value
        at org.mortbay.http.HttpFields.add(HttpFields.java:917)
        at org.mortbay.http.HttpMessage.addField(HttpMessage.java:321)
        at
org.mortbay.http.ajp.AJP13Connection.handleNext(AJP13Connection.java:234)
        at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
        at
org.mortbay.http.ajp.AJP13Listener.handleConnection(AJP13Listener.java:212)
        at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
        at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
13:52:10,594 WARN  [AJP13Connection] Bad version/console
java.lang.IllegalArgumentException: Unknown version
        at org.mortbay.http.HttpMessage.setVersion(HttpMessage.java:471)
        at
org.mortbay.http.ajp.AJP13Connection.handleNext(AJP13Connection.java:204)
        at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
        at
org.mortbay.http.ajp.AJP13Listener.handleConnection(AJP13Listener.java:212)
        at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
        at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
13:52:10,595 WARN  [AJP13Connection] 449/8192[28]: FORWARD_REQUEST{:
12,34,01,bd,02,02,00,08,48,54,54,50,2f,31,2e,31,00,00,08,2f,63,6f,6e,73,6f,6c,65,00,00,0c,31,30
: .4......HTTP.1.1....console...10
2e,31,31,31,2e,33,2e,32,30,34,00,ff,ff,00,0c,31,30,2e,31,31,31,2e,35,2e,31,30,33,00,00,50,00,00
: .111.3.204.ÿÿ..10.111.5.103..P..
0a,a0,0b,00,0c,31,30,2e,31,31,31,2e,35,2e,31,30,33,00,a0,0e,00,5c,4d,6f,7a,69,6c,6c,61,2f,35,2e
: .....10.111.5.103.....Mozilla.5.
30,20,28,4d,61,63,69,6e,74,6f,73,68,3b,20,55,3b,20,49,6e,74,65,6c,20,4d,61,63,20,4f,53,20,58,3b
: 0..Macintosh..U..Intel.Mac.OS.X.
20,65,6e,2d,55,53,3b,20,72,76,3a,31,2e,38,2e,31,2e,34,29,20,47,65,63,6b,6f,2f,32,30,30,37,30,35
: .en.US..rv.1.8.1.4..Gecko.200705
31,35,20,46,69,72,65,66,6f,78,2f,32,2e,30,2e,30,2e,34,00,a0,01,00,63,74,65,78,74,2f,78,6d,6c,2c
: 15.Firefox.2.0.0.4....ctext.xml.
61,70,70,6c,69,63,61,74,69,6f,6e,2f,78,6d,6c,2c,61,70,70,6c,69,63,61,74,69,6f,6e,2f,78,68,74,6d
: application.xml.application.xhtm
6c,2b,78,6d,6c,2c,74,65,78,74,2f,68,74,6d,6c,3b,71,3d,30,2e,39,2c,74,65,78,74,2f,70,6c,61,69,6e
: l.xml.text.html.q.0.9.text.plain
3b,71,3d,30,2e,38,2c,69,6d,61,67,65,2f,70,6e,67,2c,2a,2f,2a,3b,71,3d,30,2e,35,00,a0,04,00,0e,65
: .q.0.8.image.png.....q.0.5.....e
6e,2d,75,73,2c,65,6e,3b,71,3d,30,2e,35,00,a0,03,00,0c,67,7a,69,70,2c,64,65,66,6c,61,74,65,00,a0
: n.us.en.q.0.5.....gzip.deflate..
02,00,1e,49,53,4f,2d,38,38,35,39,2d,31,2c,75,74,66,2d,38,3b,71,3d,30,2e,37,2c,2a,3b,71,3d,30,2e
: ...ISO.8859.1.utf.8.q.0.7...q.0.
37,00,00,0a,4b,65,65,70,2d,41,6c,69,76,65,00,00,03,33,30,30,00,a0,06,00,0a,6b,65,65,70,2d,61,6c
: 7...Keep.Alive...300.....keep.al
69,76,65,00,a0,09,00,31,4a,53,45,53,53,49,4f,4e,49,44,3d,6b,33,72,38,61,36,6a,75,66,35,66,69,3b
: ive....1JSESSIONID.k3r8a6juf5fi.
20,4a,53,45,53,53,49,4f,4e,49,44,3d,31,35,38,71,70,34,74,77,75,6f,65,37,64,00,a0,08,00,01,30,00
: .JSESSIONID.158qp4twuoe7d.....0.

Message in mod_jk.log
[Wed Jul 18 13:59:11 2007] [19869:46768] [debug]
ajp_send_request::jk_ajp_common.c (1287): (node1) request body to send 0 -
request body to resend 0
[Wed Jul 18 13:59:11 2007] [19869:46768] [info] 
ajp_connection_tcp_get_message::jk_ajp_common.c (945): (node1) Tomcat has
forced a connection close for socket 14
[Wed Jul 18 13:59:11 2007] [19869:46768] [error]
ajp_get_reply::jk_ajp_common.c (1592): (node1) Tomcat is down or refused
connection. No response has been sent to the client (yet)
[Wed Jul 18 13:59:11 2007] [19869:46768] [info] 
ajp_service::jk_ajp_common.c (1902): (node1) receiving from tomcat failed,
recoverable operation attempt=1
[Wed Jul 18 13:59:11 2007] [19869:46768] [info] 
ajp_service::jk_ajp_common.c (1941): (node1) sending request to tomcat
failed,  recoverable operation attempt=2
[Wed Jul 18 13:59:11 2007] [19869:46768] [error]
ajp_service::jk_ajp_common.c (1953): (node1) Connecting to tomcat failed.
Tomcat is probably not started or is listening on the wrong port
[Wed Jul 18 13:59:11 2007] [19869:46768] [debug] ajp_done::jk_ajp_common.c
(2286): recycling connection pool slot=0 for worker node1
[Wed Jul 18 13:59:11 2007] [19869:46768] [info]  jk_handler::mod_jk.c
(2254): Service error=0 for worker=node1 



Hernan Cunico wrote:
> 
> I have tested it for 1.2 and it worked. Although I used a different
> version of mod_jk it should still work for 1.2 if it did for 1.1 and 2.0
> 
> It seems like it can't get to port 8009. I you wouldn't be using localhost
> I would say to check name resolution too, but that's not the case here.
> 
> Did you get Geronimo v1.2 binaries or built your own? Any chance of having
> Geronimo running on other than the default ports? can you see port 8009 up
> and LISTENING? (netstat -na | grep -i list)
> 
> Just for double-checking, you may want to take a quick look at this doc,
> mod_jk version tested is provided there too.
> 
> http://cwiki.apache.org/GMOxDOC12/configure-apache-httpd-with-jakarta-tomcat-connector-modjk.html
> 
> HTH
> 
> Cheers!
> Hernan
> 
> dapsy wrote:
>> I have Apache 2.2.4 installation with mod_jk routing request to geronimo
>> application server. The setup works for G v1.1 and G v2.0 without any
>> changes, all I had to do was start the specific instance version and test
>> with the appriopriate URL. But doesn't work for G v1.2. This is
>> surprising
>> to me. Does anyone else have this same problem.
>> 
>> Apache HTTP 2.2.4
>> Apache tomcat mod_jk 1.2.23
>> 
>> 
>> workers.properties:
>> worker.ajp13.port=8009
>> worker.ajp13.host=localhost
>> worker.ajp13.type=ajp13
>> 
>> mod_jk.log:
>> [Wed Jul 18 09:01:59 2007] [32122:34480] [info] 
>> ajp_service::jk_ajp_common.c (1916): (ajp13) sending request to tomcat
>> failed,  recoverable operation attempt=2
>> [Wed Jul 18 09:01:59 2007] [32122:34480] [error]
>> ajp_service::jk_ajp_common.c (1928): (ajp13) Connecting to tomcat failed.
>> Tomcat is probably not started or is listening on the wrong port
>> [Wed Jul 18 09:01:59 2007] [32122:34480] [info]  jk_handler::mod_jk.c
>> (2142): Service error=0 for worker=ajp13
>> [Wed Jul 18 09:10:42 2007] [1672:38576] [info] 
>> ajp_connection_tcp_get_message::jk_ajp_common.c (942): (ajp13) Tomcat has
>> forced a connection close for socket 14
>> [Wed Jul 18 09:10:42 2007] [1672:38576] [error]
>> ajp_get_reply::jk_ajp_common.c (1566): (ajp13) Tomcat is down or refused
>> connection. No response has been sent to the client (yet)
>> [Wed Jul 18 09:10:42 2007] [1672:38576] [info] 
>> ajp_service::jk_ajp_common.c
>> (1877): (ajp13) receiving from tomcat failed, recoverable operation
>> attempt=0
>> [Wed Jul 18 09:10:42 2007] [1672:38576] [info] 
>> ajp_service::jk_ajp_common.c
>> (1916): (ajp13) sending request to tomcat failed,  recoverable operation
>> attempt=1
>> [Wed Jul 18 09:10:42 2007] [1672:38576] [info] 
>> ajp_connection_tcp_get_message::jk_ajp_common.c (942): (ajp13) Tomcat has
>> forced a connection close for socket 14
>> [Wed Jul 18 09:10:42 2007] [1672:38576] [error]
>> ajp_get_reply::jk_ajp_common.c (1566): (ajp13) Tomcat is down or refused
>> connection. No response has been sent to the client (yet)
>> [Wed Jul 18 09:10:42 2007] [1672:38576] [info] 
>> ajp_service::jk_ajp_common.c
>> (1877): (ajp13) receiving from tomcat failed, recoverable operation
>> attempt=1
>> [Wed Jul 18 09:10:42 2007] [1672:38576] [info] 
>> ajp_service::jk_ajp_common.c
>> (1916): (ajp13) sending request to tomcat failed,  recoverable operation
>> attempt=2
>> [Wed Jul 18 09:10:42 2007] [1672:38576] [error]
>> ajp_service::jk_ajp_common.c
>> (1928): (ajp13) Connecting to tomcat failed. Tomcat is probably not
>> started
>> or is listening on the wrong port
>> [Wed Jul 18 09:10:42 2007] [1672:38576] [info]  jk_handler::mod_jk.c
>> (2142):
>> Service error=0 for worker=ajp13
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Mod_jk-and-geronimo-1.2-tf4103427s134.html#a11675112
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: Mod_jk and geronimo 1.2

Posted by Hernan Cunico <hc...@gmail.com>.
I have tested it for 1.2 and it worked. Although I used a different version of mod_jk it should still work for 1.2 if it did for 1.1 and 2.0

It seems like it can't get to port 8009. I you wouldn't be using localhost I would say to check name resolution too, but that's not the case here.

Did you get Geronimo v1.2 binaries or built your own? Any chance of having Geronimo running on other than the default ports? can you see port 8009 up and LISTENING? (netstat -na | grep -i list)

Just for double-checking, you may want to take a quick look at this doc, mod_jk version tested is provided there too.

http://cwiki.apache.org/GMOxDOC12/configure-apache-httpd-with-jakarta-tomcat-connector-modjk.html

HTH

Cheers!
Hernan

dapsy wrote:
> I have Apache 2.2.4 installation with mod_jk routing request to geronimo
> application server. The setup works for G v1.1 and G v2.0 without any
> changes, all I had to do was start the specific instance version and test
> with the appriopriate URL. But doesn't work for G v1.2. This is surprising
> to me. Does anyone else have this same problem.
> 
> Apache HTTP 2.2.4
> Apache tomcat mod_jk 1.2.23
> 
> 
> workers.properties:
> worker.ajp13.port=8009
> worker.ajp13.host=localhost
> worker.ajp13.type=ajp13
> 
> mod_jk.log:
> [Wed Jul 18 09:01:59 2007] [32122:34480] [info] 
> ajp_service::jk_ajp_common.c (1916): (ajp13) sending request to tomcat
> failed,  recoverable operation attempt=2
> [Wed Jul 18 09:01:59 2007] [32122:34480] [error]
> ajp_service::jk_ajp_common.c (1928): (ajp13) Connecting to tomcat failed.
> Tomcat is probably not started or is listening on the wrong port
> [Wed Jul 18 09:01:59 2007] [32122:34480] [info]  jk_handler::mod_jk.c
> (2142): Service error=0 for worker=ajp13
> [Wed Jul 18 09:10:42 2007] [1672:38576] [info] 
> ajp_connection_tcp_get_message::jk_ajp_common.c (942): (ajp13) Tomcat has
> forced a connection close for socket 14
> [Wed Jul 18 09:10:42 2007] [1672:38576] [error]
> ajp_get_reply::jk_ajp_common.c (1566): (ajp13) Tomcat is down or refused
> connection. No response has been sent to the client (yet)
> [Wed Jul 18 09:10:42 2007] [1672:38576] [info]  ajp_service::jk_ajp_common.c
> (1877): (ajp13) receiving from tomcat failed, recoverable operation
> attempt=0
> [Wed Jul 18 09:10:42 2007] [1672:38576] [info]  ajp_service::jk_ajp_common.c
> (1916): (ajp13) sending request to tomcat failed,  recoverable operation
> attempt=1
> [Wed Jul 18 09:10:42 2007] [1672:38576] [info] 
> ajp_connection_tcp_get_message::jk_ajp_common.c (942): (ajp13) Tomcat has
> forced a connection close for socket 14
> [Wed Jul 18 09:10:42 2007] [1672:38576] [error]
> ajp_get_reply::jk_ajp_common.c (1566): (ajp13) Tomcat is down or refused
> connection. No response has been sent to the client (yet)
> [Wed Jul 18 09:10:42 2007] [1672:38576] [info]  ajp_service::jk_ajp_common.c
> (1877): (ajp13) receiving from tomcat failed, recoverable operation
> attempt=1
> [Wed Jul 18 09:10:42 2007] [1672:38576] [info]  ajp_service::jk_ajp_common.c
> (1916): (ajp13) sending request to tomcat failed,  recoverable operation
> attempt=2
> [Wed Jul 18 09:10:42 2007] [1672:38576] [error] ajp_service::jk_ajp_common.c
> (1928): (ajp13) Connecting to tomcat failed. Tomcat is probably not started
> or is listening on the wrong port
> [Wed Jul 18 09:10:42 2007] [1672:38576] [info]  jk_handler::mod_jk.c (2142):
> Service error=0 for worker=ajp13
> 
>