You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Blake Crosby <bc...@nm.cbc.ca> on 2003/09/25 22:27:18 UTC

jk2, Tomcat4, Apache1.3

For some reason jk2 is trying to talk to Tomcat on port 8009, even though I
donĀ¹t specify that port in wokers2.properties file:

[uriMap:]
info=Maps the requests. Options: debug
debug=10

[config:]
file=${serverRoot}/conf/workers2.properties
debug=10
debugEnv=10

# SHM Stuff
[shm]
info=Scoreboard.
file=${serverRoot}/logs/jk2.shm
size=1048576

# Where is Tomcat Listening?
[channel.socket:localhost:38009]
port=38009


# define the worker
[ajp13:localhost:38009]
channel=channel.socket:localhost:38009

[uri:/examples/*]
info=Example webapp in the default context.
context=/examples
worker=ajp13:localhost:38009
debug=1

#define the worker
[status:status]

# Uri mapping
[uri:/jkstatus/*]
worker=status:status


Loading /jkstatus works fine, but when I try to load /examples, I get these
errors in jk2.log:

[Thu Sep 25 20:25:05 2003]  (debug) [jk_env.c (157)]: env:Create child env
0x80de088 0x80f8f48
[Thu Sep 25 20:25:05 2003]  (debug) [jk_uriMap.c (638)]: uriMap.mapUri()
hostname (null) port 3000 uri /examples/
[Thu Sep 25 20:25:05 2003]  (debug) [jk_uriMap.c (652)]: uriMap.mapUri()
found host *
[Thu Sep 25 20:25:05 2003]  (debug) [jk_uriMap.c (677)]: uriMap.mapUri()
found ctx /examples
[Thu Sep 25 20:25:05 2003]  (debug) [jk_uriMap.c (707)]: uriMap.mapUri()
prefix match /examples/ ajp13:localhost:38009
[Thu Sep 25 20:25:05 2003]  ( info) [mod_jk2.c (469)]: mod_jk.translate():
uriMap /examples/ ajp13:localhost:38009
[Thu Sep 25 20:25:05 2003]  ( info) [mod_jk2.c (362)]: mod_jk.handler() per
dir worker for 0x80e60d8 0x80ea0f8
[Thu Sep 25 20:25:05 2003]  ( info) [mod_jk2.c (394)]: mod_jk.handler(): new
rpool
[Thu Sep 25 20:25:05 2003]  ( info) [mod_jk2.c (405)]: modjk.handler()
Calling ajp13:localhost:38009 0x80ea0f8
[Thu Sep 25 20:25:05 2003]  (debug) [jk_env.c (248)]: env.createBean2():
Create [endpoint] (null)
[Thu Sep 25 20:25:05 2003]  (debug) [jk_env.c (383)]: env.getByName(): Get
by name workerEnv 0x80e0130
[Thu Sep 25 20:25:05 2003]  (debug) [jk_env.c (312)]: env.createBean2():
register endpoint:10 0x810e228
[Thu Sep 25 20:25:05 2003]  ( info) [jk_shm.c (478)]: shm.createSlot()
Create 4 0x40688000 0x40690000
[Thu Sep 25 20:25:05 2003]  ( info) [jk_endpoint.c (95)]: workerEnv.init()
create slot epStat.4
[Thu Sep 25 20:25:05 2003]  (debug) [jk_requtil.c (723)]:
serialize.request() serialized /examples/
[Thu Sep 25 20:25:05 2003]  (error) [jk_channel_socket.c (340)]:
channelSocket.open() connect failed localhost:8009 111 Connection refused
[Thu Sep 25 20:25:05 2003]  (error) [jk_worker_ajp13.c (245)]:
ajp13.connect() failed ajp13:localhost:38009
[Thu Sep 25 20:25:05 2003]  (error) [jk_worker_ajp13.c (320)]:
ajp13.service() failed to connect endpoint errno=111 Connection refused
[Thu Sep 25 20:25:05 2003]  (error) [jk_worker_ajp13.c (503)]:
ajp13.service() Error  forwarding ajp13:localhost:38009 1 1
[Thu Sep 25 20:25:05 2003]  ( info) [jk_worker_ajp13.c (543)]: ajp13.done()
close endpoint ajp13:localhost:38009 error_state 1
[Thu Sep 25 20:25:05 2003]  (error) [mod_jk2.c (427)]: mod_jk.handler()
Error connecting to tomcat 21000


Why is mod_jk2 trying to connect to port 8009?

Apache: 1.3.28
Tomcat: 1.2.27
Mod_jk: 2.1.0


-- 
Blake Crosby   -   CBC.ca Operations
Platform Administrator
voice://+1.416.205.3103  mobile://+1.416.884.5828
bcrosby@nm.cbc.ca