You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2004/08/20 17:25:31 UTC

DO NOT REPLY [Bug 30774] New: - mod_jk2: It is not possible to set the AJP port to anything other than the default of 8009

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30774>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30774

mod_jk2: It is not possible to set the AJP port to anything other than the default of 8009

           Summary: mod_jk2: It is not possible to set the AJP port to
                    anything other than the default of 8009
           Product: Tomcat 5
           Version: 5.0.27
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Native:JK
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: epritcha@wiley.co.uk


I need to run the Apache/Tomcat link using AJP on port 41503, using mod_jk2.so.

Using the following configuration:

# workers2.properties
#
[shm]
file=${serverRoot}/logs/shm.file
size=1048576

# define the worker
[status:status]

[channel.socket:localhost:41503]
host=localhost
port=41503

[ajp13:localhost:41503]
channel=channel.socket:localhost:41503

# Uri mapping
[uri:/jkstatus/*]
worker=status:status
[uri:/servlet/*]
worker=ajp13:localhost:41503


I've also tried several variations of the above.


# jk2.properties
# Override the default port for the socketChannel
channelSocket.port=41503


The /jkstatus page works as expected, and looks ok:

id 	name 	host	uri	group	context
0			null	null	null
0	/jkstatus/* 	*	/jkstatus/*	status:status	/
0	/servlet/* 	*	/servlet/*	ajp13:localhost:41503	/
0	* 	*	null	null	null
0	*/ 	*	/	lb:lb	/

Object name	Property	Value
config:	file	${serverRoot}/conf/workers2.properties
shm:	file	${serverRoot}/logs/shm.file
size	1048576
ajp13:localhost:41503	channel	channel.socket:localhost:41503
channel.socket:localhost:41503	host	localhost
port	41503
uri:/jkstatus/*	worker	status:status
uri:/servlet/*	worker	ajp13:localhost:41503

Name	Value
fs	/
ps	:
so	so
arch	i386
serverRoot	/wispers/opt/apache/ellis/external
file	/wispers/opt/apache/ellis/external/conf/workers2.properties
shm:.file	/wispers/opt/apache/ellis/external/logs/shm.file
shm:.size	1048576
channel.socket:localhost:41503.host	localhost
channel.socket:localhost:41503.port	41503
ajp13:localhost:41503.channel	channel.socket:localhost:41503
uri:/jkstatus/*.worker	status:status
uri:/servlet/*.worker	ajp13:localhost:41503


However, trying /servlet yields (in Apache's error_log):

[Fri Aug 20 16:03:44 2004] [notice] Apache/2.0.50 (Unix) mod_jk2/2.0.2 DAV/2
configured -- resuming normal operations
[Fri Aug 20 16:03:44 2004] [error] mod_jk child init 1 0
[Fri Aug 20 16:03:49 2004] [error] channelSocket.open() connect failed
localhost:8009 146 Connection refused
[Fri Aug 20 16:03:49 2004] [error] ajp13.connect() failed ajp13:localhost:41503
[Fri Aug 20 16:03:49 2004] [error] ajp13.service() failed to connect endpoint
errno=146 Connection refused
[Fri Aug 20 16:03:49 2004] [error] ajp13.service() Error  forwarding
ajp13:localhost:41503 1 1
[Fri Aug 20 16:03:49 2004] [error] mod_jk.handler() Error connecting to tomcat
120000

It's still trying to connect on port 8009!

I guess everyone else in the world is just using port 8009!

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