You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Paul Worrall <Pa...@becta.org.uk> on 2005/04/15 12:25:03 UTC

Can't stop AJP Connector received URL's resolving relative to ROOT context

Please help, driving me mad.  Tried hard to find help in archives and
docs before resorting to asking here.

 

 

Versions

 

Server version: Apache/1.3.33 (Unix)

mod_jk-1.2.6.so

jakarta-tomcat-5.0.28

 

 

Problem:

 

Tomcat always seems to resolve URLs coming in through a Coyote/JK2 AJP
1.3 Connector, configured to listen on port 8109, to the ROOT servlet
context.  The  

 

ex. URL: http://www.domain.com/raptor/tomcat-docs

 

This was discovered by trussing the Tomcat JVM process:-

 

/43:    lwp_cond_wait(0x009DB680, 0x009DB668, 0x00000000) = 0

/43:    read(25, "12 401 00202\0\b H T T P".., 8192)    = 308

/43:
stat64("/opt/tomcat/jakarta-tomcat-5.0.28/webapps/ROOT/raptor/tomcat-doc
s", 0xD137EEE0) Err#2 ENOENT

/43:
stat64("/opt/tomcat/raptor/jakarta-tomcat-5.0.28/webapps/ROOT/raptor/tom
cat-docs", 0xD137E1A0) Err#2 ENOENT

/43:    send(25, " A B\0 \040194\013 / r a".., 96, 0)   = 96

/43:    send(25, " A B03F50303F1 < h t m l".., 1017, 0) = 1017

/43:    send(25, " A B\0020501", 6, 0)                  = 6

 

 

 

Background Information:

 

1) Tomcat running behind Apache Web Server with correctly configured
httpd.conf and workers.properties. eg.

 

Httpd.conf

========

LoadModule jk_module          libexec/mod_jk-1.2.6.so

 

<IfModule mod_setenvif.c>

        JkWorkersFile /opt/org/apache/conf/workers.properties

        jKLogFile /opt/org/apache/logs/jk_error_log

        JkLogLevel debug

        JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "

        JkMount /eagle/* eagle_ajp13

        JkMount /raptor/* raptor_ajp13

</IfModule>

 

Workers.properties

==============

worker.raptor_ajp13.port=8109

worker.raptor_ajp13.host=localhost

worker.raptor_ajp13.type=ajp13

worker.raptor_ajp13.lbfactor=1

 

2) The actual Http connector is running on 8180 and resolves correctly
using the URL  http://localhost:8180/tomcat-docs on the machine itself.

 

3) There is another instance of Tomcat running behind this Apache
configuration with the same Tomcat configuration but on standard
distribution ports, 8080 and 8009 etc., for all connectors and that
appears to work correctly.

 

 

tia

 

 

Paul Worrall

Portal Technology and Innovation

BECTA

 



**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************