You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Stephen Carville <ca...@heronforge.net> on 2005/09/21 01:13:17 UTC
Tomcat 5.5 and Apache 2.0
I am at my wits end... I've inherited the Apache and Tomcat setup and
so far I cannot even get then to talk to each other. I rebuilt
mod_jk.so from source. I copied over what was supposed to be a working
server.xml, read documentation, and edited things until my eyes are
watering and I still cannot figure out what I am doing wrong.
When I start tomcat, it creates the directories in
/var/jakarta/tomcat/work/Apache for only first two Hosts but no compiled
java appears in them. If I set the LogLevel on mod_jk.so to debug and
request a jsp (http://kanga.nationwide-totalflood.com/HomePage.jsp) I get:
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI
'/HomePage.jsp' from 2 maps
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context
URI '/servlet/*'
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context
URI '/*.jsp'
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
map_uri_to_worker::jk_uri_worker_map.c (475): Found a wildchar match
worker1 -> /*.jsp
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug] jk_handler::mod_jk.c
(1825): Into handler jakarta-servlet worker=worker1 r->proxyreq=0
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
wc_get_worker_for_name::jk_worker.c (111): found a worker worker1
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
wc_maintain::jk_worker.c (301): Maintaining worker worker1
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_maintain::jk_ajp_common.c (2203): recycled 0 sockets in 0 seconds
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
init_ws_service::mod_jk.c (517): Service protocol=HTTP/1.1 method=GET
host=(null) addrr=192.168.124.232 name=kanga.nationwide-totalflood.com
port=80 auth=(null) user=(null) laddr=192.168.150.129 raddr=192.168.124.232
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_get_endpoint::jk_ajp_common.c (2131): acquired connection cache slot=0
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_marshal_into_msgb::jk_ajp_common.c (566): ajp marshaling done
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_service::jk_ajp_common.c (1670): processing with 3 retries
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
jk_open_socket::jk_connect.c (328): socket TCP_NODELAY set to On
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
jk_open_socket::jk_connect.c (341): socket SO_KEEPALIVE set to On
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
jk_open_socket::jk_connect.c (391): timeout 300 set for socket=57
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
jk_open_socket::jk_connect.c (426): trying to connect socket 57 to
127.0.0.1:8009
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
jk_open_socket::jk_connect.c (452): socket 57 connected to 127.0.0.1:8009
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connect_to_endpoint::jk_ajp_common.c (864): Connected socket 57 to
(127.0.0.1:8009)
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (909): sending to ajp13
pos=4 len=468 max=8192
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0000 12 34 01
D0 02 02 00 08 48 54 54 50 2F 31 2E 31 - .4......HTTP/1.1
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0010 00 00 0D
2F 48 6F 6D 65 50 61 67 65 2E 6A 73 70 - .../HomePage.jsp
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0020 00 00 0F
31 39 32 2E 31 36 38 2E 31 32 34 2E 32 - ...192.168.124.2
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0030 33 32 00
FF FF 00 1F 6B 61 6E 67 61 2E 6E 61 74 - 32.....kanga.nat
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0040 69 6F 6E
77 69 64 65 2D 74 6F 74 61 6C 66 6C 6F - ionwide-totalflo
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0050 6F 64 2E
63 6F 6D 00 00 50 00 00 0B A0 0B 00 1F - od.com..P.......
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0060 6B 61 6E
67 61 2E 6E 61 74 69 6F 6E 77 69 64 65 - kanga.nationwide
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0070 2D 74 6F
74 61 6C 66 6C 6F 6F 64 2E 63 6F 6D 00 - -totalflood.com.
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0080 A0 0E 00
4F 4D 6F 7A 69 6C 6C 61 2F 35 2E 30 20 - ...OMozilla/5.0.
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0090 28 58 31
31 3B 20 55 3B 20 4C 69 6E 75 78 20 69 - (X11;.U;.Linux.i
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 00a0 36 38 36
3B 20 65 6E 2D 55 53 3B 20 72 76 3A 31 - 686;.en-US;.rv:1
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 00b0 2E 37 2E
31 30 29 20 47 65 63 6B 6F 2F 32 30 30 - .7.10).Gecko/200
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 00c0 35 30 37
31 36 20 46 69 72 65 66 6F 78 2F 31 2E - 50716.Firefox/1.
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 00d0 30 2E 36
00 A0 01 00 63 74 65 78 74 2F 78 6D 6C - 0.6....ctext/xml
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 00e0 2C 61 70
70 6C 69 63 61 74 69 6F 6E 2F 78 6D 6C - ,application/xml
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 00f0 2C 61 70
70 6C 69 63 61 74 69 6F 6E 2F 78 68 74 - ,application/xht
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0100 6D 6C 2B
78 6D 6C 2C 74 65 78 74 2F 68 74 6D 6C - ml+xml,text/html
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0110 3B 71 3D
30 2E 39 2C 74 65 78 74 2F 70 6C 61 69 - ;q=0.9,text/plai
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0120 6E 3B 71
3D 30 2E 38 2C 69 6D 61 67 65 2F 70 6E - n;q=0.8,image/pn
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0130 67 2C 2A
2F 2A 3B 71 3D 30 2E 35 00 A0 04 00 0E - g,*/*;q=0.5.....
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0140 65 6E 2D
75 73 2C 65 6E 3B 71 3D 30 2E 35 00 A0 - en-us,en;q=0.5..
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0150 03 00 0C
67 7A 69 70 2C 64 65 66 6C 61 74 65 00 - ...gzip,deflate.
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0160 A0 02 00
1E 49 53 4F 2D 38 38 35 39 2D 31 2C 75 - ....ISO-8859-1,u
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0170 74 66 2D
38 3B 71 3D 30 2E 37 2C 2A 3B 71 3D 30 - tf-8;q=0.7,*;q=0
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0180 2E 37 00
00 0A 4B 65 65 70 2D 41 6C 69 76 65 00 - .7...Keep-Alive.
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0190 00 03 33
30 30 00 A0 06 00 0A 6B 65 65 70 2D 61 - ..300.....keep-a
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 01a0 6C 69 76
65 00 A0 0C 00 08 6E 6F 2D 63 61 63 68 - live.....no-cach
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 01b0 65 00 00
0D 43 61 63 68 65 2D 43 6F 6E 74 72 6F - e...Cache-Contro
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 01c0 6C 00 00
08 6E 6F 2D 63 61 63 68 65 00 A0 08 00 - l...no-cache....
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 01d0 01 30 00
FF 00 00 00 00 00 00 00 00 00 00 00 00 - .0..............
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_send_request::jk_ajp_common.c (1261): request body to send 0 -
request body to resend 0
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c (1037): received from
ajp13 pos=0 len=67 max=8192
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c (1037): 0000 04 01 90
00 3B 4E 6F 20 48 6F 73 74 20 6D 61 74 - ....;No.Host.mat
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c (1037): 0010 63 68 65
73 20 73 65 72 76 65 72 20 6E 61 6D 65 - ches.server.name
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c (1037): 0020 20 6B 61
6E 67 61 2E 6E 61 74 69 6F 6E 77 69 64 - .kanga.nationwid
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c (1037): 0030 65 2D 74
6F 74 61 6C 66 6C 6F 6F 64 2E 63 6F 6D - e-totalflood.com
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c (1037): 0040 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 - ................
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_unmarshal_response::jk_ajp_common.c (621): status = 400
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_unmarshal_response::jk_ajp_common.c (628): Number of headers is = 0
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c (1037): received from
ajp13 pos=0 len=2 max=8192
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c (1037): 0000 05 01 00
00 00 00 00 00 00 00 00 00 00 00 00 00 - ................
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
ajp_done::jk_ajp_common.c (2074): recycling connection cache slot=0 for
worker worker1
[Tue Sep 20 15:52:48 2005] [20650:10400] [debug] jk_handler::mod_jk.c
(1955): Service finished with status=400 for worker=worker1
Most of the above means little to me tho I do recognize the error 400
but I don't undestand why. As far as I can tell the url is correct and
if I tell Apache to direct the same request to a static page it returns
status 200.
Here is my server.xml. It is prety much like I recieved it. The only
major change was to move all <Context/> blocks to
appBase/WEB-INF/content.xml. I read somewhere on the web site this is
preferred.
I also changed the Oracle passwords.
<Server port="8005" shutdown="SHUTDOWN">
<Listener
className="org.apache.catalina.mbeans.ServerLifecycleListener" />
<Listener
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<Listener
className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>
<!-- Global JNDI resources -->
<GlobalNamingResources>
<!-- Test entry for demonstration purposes -->
<Environment name="simpleValue" type="java.lang.Integer" value="30"/>
<!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users -->
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
<!-- name the data the global database resources -->
<!-- main Database(s) -->
<!-- Tigris -->
<Resource name="jdbc/tigris"
auth="Container"
type="javax.sql.DataSource"
factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
driverClassName="oracle.jdbc.driver.OracleDriver"
url="jdbc:oracle:thin:@tigris:1521:flood"
username="user"
password="user123"
validationQuery="select 1 from dual"
maxActive="80"
maxIdle="10"
maxWait="10"
/>
<!-- Euphrates -->
<Resource name="jdbc/euphrates"
auth="Container"
type="javax.sql.DataSource"
factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
driverClassName="oracle.jdbc.driver.OracleDriver"
url="jdbc:oracle:thin:@euphrates:1521:gis"
username="user"
password="user123"
validationQuery="select 1 from dual"
maxActive="80"
maxIdle="10"
maxWait="10"
/>
<!-- Development Boxes -->
<!-- Daisy -->
<Resource name="jdbc/daisy"
auth="Container"
type="javax.sql.DataSource"
factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
driverClassName="oracle.jdbc.driver.OracleDriver"
url="jdbc:oracle:thin:@daisy:1521:flood"
username="user"
password="user123"
validationQuery="select 1 from dual"
maxActive="20"
maxIdle="10"
maxWait="10"
/>
<!-- louie -->
<Resource name="jdbc/louie"
auth="Container"
type="javax.sql.DataSource"
factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
driverClassName="oracle.jdbc.driver.OracleDriver"
url="jdbc:oracle:thin:@louie:1521:flood"
username="user"
password="user123"
validationQuery="select 1 from dual"
maxActive="20"
maxIdle="10"
maxWait="10"
/>
<!-- donald -->
<Resource name="jdbc/donald"
auth="Container"
type="javax.sql.DataSource"
factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
driverClassName="oracle.jdbc.driver.OracleDriver"
url="jdbc:oracle:thin:@donald:1521:flood"
username="user"
password="user123"
validationQuery="select 1 from dual"
maxActive="20"
maxIdle="10"
maxWait="10"
/>
<!-- dewey -->
<Resource name="jdbc/dewey"
auth="Container"
type="javax.sql.DataSource"
factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
driverClassName="oracle.jdbc.driver.OracleDriver"
url="jdbc:oracle:thin:@dewey:1521:gis"
username="user"
password="user123"
validationQuery="select 1 from dual"
maxActive="20"
maxIdle="10"
maxWait="10"
/>
</GlobalNamingResources>
<Service name="Tomcat-Apache">
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009"
enableLookups="false" redirectPort="8443"
protocol="AJP/1.3" />
<!-- Define the top level container in our container hierarchy -->
<Engine name="Apache" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
<!-- Define the default virtual host
Note: XML Schema validation will not work with Xerces 2.2.
-->
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
</Host>
<!-- define the virtual hosts for totalflood -->
<Host name = "www.totalflood.com"
appBase = "/var/jakarta/totalflood" debug="0" autoDeploy="false">
<Alias>www2.totalflood.com</Alias>
<Alias>kanga.totalflood.com</Alias>
<Alias>flood.rapidflood.com</Alias>
<Alias>flood.questsoft.com</Alias>
<Alias>flood.cbisdirect.com</Alias>
<Alias>flood.ricp.com</Alias>
</Host>
<!--nationwideportfolioservices.com -->
<Host name = "www.nationwideportfolioservices.com" debug = "0"
appBase="/var/jakarta/nps" docBase="" autoDeploy="false">
</Host>
<!-- define virtual hosts for dpsi-corp -->
<Host name = "www.dpsi-corp.com" debug = "0"
appBase="/var/jakarta/dpsi-corp" docBase="" autoDeploy="false">
<Alias>www2.dpsi-corp.com</Alias>
<Alias>www.dpsimortgage.com</Alias>
<Alias>www.nationwidetotalflood.com</Alias>
<Alias>www.nationwide-totalflood.com</Alias>
<Alias>www2.nationwide-totalflood.com</Alias>
<Alias>kanga.nationwide-totalflood.com</Alias>
<Alias>www.nationwide-riskdata.com</Alias>
<Alias>www.nationwideavm.com</Alias>
<Alias>flood.creditlenders.com</Alias>
<Alias>flood.americasflood.com</Alias>
<Alias>www.floodsvcs.com</Alias>
<Alias>flood.floodtrack.com</Alias>
<Alias>flood.informativeresearch.com</Alias>
<Alias>flood.ameri-prop.com</Alias>
<Alias>mortgagefax.dpsi-corp.com</Alias>
<Alias>www.nmrflood.com</Alias>
<Alias>flood.palmettoflood.com</Alias>
<Alias>www.propertyresearchdata.com</Alias>
<Alias>www2.propertyresearchdata.com</Alias>
<Alias>www.floodzonedeterminations.com</Alias>
<Alias>flood2.questsoft.com</Alias>
<Alias>www.creditinsmarkets.com</Alias>
</Host>
</Engine>
</Service>
</Server>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Tomcat 5.5 and Apache 2.0
Posted by Stephen Carville <ca...@heronforge.net>.
Oops I forgot the basics:
System: Redhat ES3 Release 4
Kernel: 2.4.21-27.ELsmp
Glibc: 2.3.2
Java: 1.5.0_04-b05
Tomcat: 5.5.9
Platform: Dell 2850
CPU: Intel Xeon 3.40GHz
Memory: 4G
Stephen Carville wrote:
> I am at my wits end... I've inherited the Apache and Tomcat setup and
> so far I cannot even get then to talk to each other. I rebuilt
> mod_jk.so from source. I copied over what was supposed to be a working
> server.xml, read documentation, and edited things until my eyes are
> watering and I still cannot figure out what I am doing wrong.
>
> When I start tomcat, it creates the directories in
> /var/jakarta/tomcat/work/Apache for only first two Hosts but no compiled
> java appears in them. If I set the LogLevel on mod_jk.so to debug and
> request a jsp (http://kanga.nationwide-totalflood.com/HomePage.jsp) I get:
>
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI
> '/HomePage.jsp' from 2 maps
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context
> URI '/servlet/*'
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context
> URI '/*.jsp'
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> map_uri_to_worker::jk_uri_worker_map.c (475): Found a wildchar match
> worker1 -> /*.jsp
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug] jk_handler::mod_jk.c
> (1825): Into handler jakarta-servlet worker=worker1 r->proxyreq=0
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> wc_get_worker_for_name::jk_worker.c (111): found a worker worker1
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> wc_maintain::jk_worker.c (301): Maintaining worker worker1
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_maintain::jk_ajp_common.c (2203): recycled 0 sockets in 0 seconds
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> init_ws_service::mod_jk.c (517): Service protocol=HTTP/1.1 method=GET
> host=(null) addrr=192.168.124.232 name=kanga.nationwide-totalflood.com
> port=80 auth=(null) user=(null) laddr=192.168.150.129 raddr=192.168.124.232
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_get_endpoint::jk_ajp_common.c (2131): acquired connection cache slot=0
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_marshal_into_msgb::jk_ajp_common.c (566): ajp marshaling done
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_service::jk_ajp_common.c (1670): processing with 3 retries
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> jk_open_socket::jk_connect.c (328): socket TCP_NODELAY set to On
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> jk_open_socket::jk_connect.c (341): socket SO_KEEPALIVE set to On
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> jk_open_socket::jk_connect.c (391): timeout 300 set for socket=57
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> jk_open_socket::jk_connect.c (426): trying to connect socket 57 to
> 127.0.0.1:8009
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> jk_open_socket::jk_connect.c (452): socket 57 connected to 127.0.0.1:8009
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connect_to_endpoint::jk_ajp_common.c (864): Connected socket 57 to
> (127.0.0.1:8009)
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_send_message::jk_ajp_common.c (909): sending to ajp13
> pos=4 len=468 max=8192
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0000 12 34 01
> D0 02 02 00 08 48 54 54 50 2F 31 2E 31 - .4......HTTP/1.1
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0010 00 00 0D
> 2F 48 6F 6D 65 50 61 67 65 2E 6A 73 70 - .../HomePage.jsp
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0020 00 00 0F
> 31 39 32 2E 31 36 38 2E 31 32 34 2E 32 - ...192.168.124.2
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0030 33 32 00
> FF FF 00 1F 6B 61 6E 67 61 2E 6E 61 74 - 32.....kanga.nat
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0040 69 6F 6E
> 77 69 64 65 2D 74 6F 74 61 6C 66 6C 6F - ionwide-totalflo
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0050 6F 64 2E
> 63 6F 6D 00 00 50 00 00 0B A0 0B 00 1F - od.com..P.......
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0060 6B 61 6E
> 67 61 2E 6E 61 74 69 6F 6E 77 69 64 65 - kanga.nationwide
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0070 2D 74 6F
> 74 61 6C 66 6C 6F 6F 64 2E 63 6F 6D 00 - -totalflood.com.
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0080 A0 0E 00
> 4F 4D 6F 7A 69 6C 6C 61 2F 35 2E 30 20 - ...OMozilla/5.0.
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0090 28 58 31
> 31 3B 20 55 3B 20 4C 69 6E 75 78 20 69 - (X11;.U;.Linux.i
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_send_message::jk_ajp_common.c (909): 00a0 36 38 36
> 3B 20 65 6E 2D 55 53 3B 20 72 76 3A 31 - 686;.en-US;.rv:1
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_send_message::jk_ajp_common.c (909): 00b0 2E 37 2E
> 31 30 29 20 47 65 63 6B 6F 2F 32 30 30 - .7.10).Gecko/200
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_send_message::jk_ajp_common.c (909): 00c0 35 30 37
> 31 36 20 46 69 72 65 66 6F 78 2F 31 2E - 50716.Firefox/1.
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_send_message::jk_ajp_common.c (909): 00d0 30 2E 36
> 00 A0 01 00 63 74 65 78 74 2F 78 6D 6C - 0.6....ctext/xml
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_send_message::jk_ajp_common.c (909): 00e0 2C 61 70
> 70 6C 69 63 61 74 69 6F 6E 2F 78 6D 6C - ,application/xml
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_send_message::jk_ajp_common.c (909): 00f0 2C 61 70
> 70 6C 69 63 61 74 69 6F 6E 2F 78 68 74 - ,application/xht
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0100 6D 6C 2B
> 78 6D 6C 2C 74 65 78 74 2F 68 74 6D 6C - ml+xml,text/html
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0110 3B 71 3D
> 30 2E 39 2C 74 65 78 74 2F 70 6C 61 69 - ;q=0.9,text/plai
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0120 6E 3B 71
> 3D 30 2E 38 2C 69 6D 61 67 65 2F 70 6E - n;q=0.8,image/pn
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0130 67 2C 2A
> 2F 2A 3B 71 3D 30 2E 35 00 A0 04 00 0E - g,*/*;q=0.5.....
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0140 65 6E 2D
> 75 73 2C 65 6E 3B 71 3D 30 2E 35 00 A0 - en-us,en;q=0.5..
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0150 03 00 0C
> 67 7A 69 70 2C 64 65 66 6C 61 74 65 00 - ...gzip,deflate.
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0160 A0 02 00
> 1E 49 53 4F 2D 38 38 35 39 2D 31 2C 75 - ....ISO-8859-1,u
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0170 74 66 2D
> 38 3B 71 3D 30 2E 37 2C 2A 3B 71 3D 30 - tf-8;q=0.7,*;q=0
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0180 2E 37 00
> 00 0A 4B 65 65 70 2D 41 6C 69 76 65 00 - .7...Keep-Alive.
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0190 00 03 33
> 30 30 00 A0 06 00 0A 6B 65 65 70 2D 61 - ..300.....keep-a
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_send_message::jk_ajp_common.c (909): 01a0 6C 69 76
> 65 00 A0 0C 00 08 6E 6F 2D 63 61 63 68 - live.....no-cach
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_send_message::jk_ajp_common.c (909): 01b0 65 00 00
> 0D 43 61 63 68 65 2D 43 6F 6E 74 72 6F - e...Cache-Contro
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_send_message::jk_ajp_common.c (909): 01c0 6C 00 00
> 08 6E 6F 2D 63 61 63 68 65 00 A0 08 00 - l...no-cache....
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_send_message::jk_ajp_common.c (909): 01d0 01 30 00
> FF 00 00 00 00 00 00 00 00 00 00 00 00 - .0..............
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_send_request::jk_ajp_common.c (1261): request body to send 0 -
> request body to resend 0
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_get_message::jk_ajp_common.c (1037): received from
> ajp13 pos=0 len=67 max=8192
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_get_message::jk_ajp_common.c (1037): 0000 04 01 90
> 00 3B 4E 6F 20 48 6F 73 74 20 6D 61 74 - ....;No.Host.mat
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_get_message::jk_ajp_common.c (1037): 0010 63 68 65
> 73 20 73 65 72 76 65 72 20 6E 61 6D 65 - ches.server.name
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_get_message::jk_ajp_common.c (1037): 0020 20 6B 61
> 6E 67 61 2E 6E 61 74 69 6F 6E 77 69 64 - .kanga.nationwid
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_get_message::jk_ajp_common.c (1037): 0030 65 2D 74
> 6F 74 61 6C 66 6C 6F 6F 64 2E 63 6F 6D - e-totalflood.com
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_get_message::jk_ajp_common.c (1037): 0040 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 - ................
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_unmarshal_response::jk_ajp_common.c (621): status = 400
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_unmarshal_response::jk_ajp_common.c (628): Number of headers is = 0
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_get_message::jk_ajp_common.c (1037): received from
> ajp13 pos=0 len=2 max=8192
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_connection_tcp_get_message::jk_ajp_common.c (1037): 0000 05 01 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 - ................
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug]
> ajp_done::jk_ajp_common.c (2074): recycling connection cache slot=0 for
> worker worker1
> [Tue Sep 20 15:52:48 2005] [20650:10400] [debug] jk_handler::mod_jk.c
> (1955): Service finished with status=400 for worker=worker1
>
> Most of the above means little to me tho I do recognize the error 400
> but I don't undestand why. As far as I can tell the url is correct and
> if I tell Apache to direct the same request to a static page it returns
> status 200.
>
> Here is my server.xml. It is prety much like I recieved it. The only
> major change was to move all <Context/> blocks to
> appBase/WEB-INF/content.xml. I read somewhere on the web site this is
> preferred.
>
> I also changed the Oracle passwords.
>
> <Server port="8005" shutdown="SHUTDOWN">
>
> <Listener
> className="org.apache.catalina.mbeans.ServerLifecycleListener" />
> <Listener
> className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
> <Listener
> className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>
>
> <!-- Global JNDI resources -->
> <GlobalNamingResources>
>
> <!-- Test entry for demonstration purposes -->
> <Environment name="simpleValue" type="java.lang.Integer" value="30"/>
>
> <!-- Editable user database that can also be used by
> UserDatabaseRealm to authenticate users -->
> <Resource name="UserDatabase" auth="Container"
> type="org.apache.catalina.UserDatabase"
> description="User database that can be updated and saved"
> factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
> pathname="conf/tomcat-users.xml" />
>
> <!-- name the data the global database resources -->
> <!-- main Database(s) -->
> <!-- Tigris -->
> <Resource name="jdbc/tigris"
> auth="Container"
> type="javax.sql.DataSource"
> factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
> driverClassName="oracle.jdbc.driver.OracleDriver"
> url="jdbc:oracle:thin:@tigris:1521:flood"
> username="user"
> password="user123"
> validationQuery="select 1 from dual"
> maxActive="80"
> maxIdle="10"
> maxWait="10"
> />
>
> <!-- Euphrates -->
> <Resource name="jdbc/euphrates"
> auth="Container"
> type="javax.sql.DataSource"
> factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
> driverClassName="oracle.jdbc.driver.OracleDriver"
> url="jdbc:oracle:thin:@euphrates:1521:gis"
> username="user"
> password="user123"
> validationQuery="select 1 from dual"
> maxActive="80"
> maxIdle="10"
> maxWait="10"
> />
> <!-- Development Boxes -->
> <!-- Daisy -->
> <Resource name="jdbc/daisy"
> auth="Container"
> type="javax.sql.DataSource"
> factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
> driverClassName="oracle.jdbc.driver.OracleDriver"
> url="jdbc:oracle:thin:@daisy:1521:flood"
> username="user"
> password="user123"
> validationQuery="select 1 from dual"
> maxActive="20"
> maxIdle="10"
> maxWait="10"
> />
>
> <!-- louie -->
> <Resource name="jdbc/louie"
> auth="Container"
> type="javax.sql.DataSource"
> factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
> driverClassName="oracle.jdbc.driver.OracleDriver"
> url="jdbc:oracle:thin:@louie:1521:flood"
> username="user"
> password="user123"
> validationQuery="select 1 from dual"
> maxActive="20"
> maxIdle="10"
> maxWait="10"
> />
>
>
> <!-- donald -->
> <Resource name="jdbc/donald"
> auth="Container"
> type="javax.sql.DataSource"
> factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
> driverClassName="oracle.jdbc.driver.OracleDriver"
> url="jdbc:oracle:thin:@donald:1521:flood"
> username="user"
> password="user123"
> validationQuery="select 1 from dual"
> maxActive="20"
> maxIdle="10"
> maxWait="10"
> />
>
> <!-- dewey -->
> <Resource name="jdbc/dewey"
> auth="Container"
> type="javax.sql.DataSource"
> factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
> driverClassName="oracle.jdbc.driver.OracleDriver"
> url="jdbc:oracle:thin:@dewey:1521:gis"
> username="user"
> password="user123"
> validationQuery="select 1 from dual"
> maxActive="20"
> maxIdle="10"
> maxWait="10"
> />
>
> </GlobalNamingResources>
>
> <Service name="Tomcat-Apache">
>
> <!-- Define an AJP 1.3 Connector on port 8009 -->
> <Connector port="8009"
> enableLookups="false" redirectPort="8443"
> protocol="AJP/1.3" />
>
> <!-- Define the top level container in our container hierarchy -->
> <Engine name="Apache" defaultHost="localhost">
>
> <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
> resourceName="UserDatabase"/>
>
> <!-- Define the default virtual host
> Note: XML Schema validation will not work with Xerces 2.2.
> -->
> <Host name="localhost" appBase="webapps"
> unpackWARs="true" autoDeploy="true"
> xmlValidation="false" xmlNamespaceAware="false">
> </Host>
>
> <!-- define the virtual hosts for totalflood -->
> <Host name = "www.totalflood.com"
> appBase = "/var/jakarta/totalflood" debug="0" autoDeploy="false">
>
> <Alias>www2.totalflood.com</Alias>
> <Alias>kanga.totalflood.com</Alias>
> <Alias>flood.rapidflood.com</Alias>
> <Alias>flood.questsoft.com</Alias>
> <Alias>flood.cbisdirect.com</Alias>
> <Alias>flood.ricp.com</Alias>
> </Host>
>
> <!--nationwideportfolioservices.com -->
> <Host name = "www.nationwideportfolioservices.com" debug = "0"
> appBase="/var/jakarta/nps" docBase="" autoDeploy="false">
> </Host>
>
> <!-- define virtual hosts for dpsi-corp -->
> <Host name = "www.dpsi-corp.com" debug = "0"
> appBase="/var/jakarta/dpsi-corp" docBase="" autoDeploy="false">
> <Alias>www2.dpsi-corp.com</Alias>
> <Alias>www.dpsimortgage.com</Alias>
> <Alias>www.nationwidetotalflood.com</Alias>
> <Alias>www.nationwide-totalflood.com</Alias>
> <Alias>www2.nationwide-totalflood.com</Alias>
> <Alias>kanga.nationwide-totalflood.com</Alias>
> <Alias>www.nationwide-riskdata.com</Alias>
> <Alias>www.nationwideavm.com</Alias>
>
> <Alias>flood.creditlenders.com</Alias>
> <Alias>flood.americasflood.com</Alias>
> <Alias>www.floodsvcs.com</Alias>
> <Alias>flood.floodtrack.com</Alias>
> <Alias>flood.informativeresearch.com</Alias>
> <Alias>flood.ameri-prop.com</Alias>
> <Alias>mortgagefax.dpsi-corp.com</Alias>
> <Alias>www.nmrflood.com</Alias>
> <Alias>flood.palmettoflood.com</Alias>
> <Alias>www.propertyresearchdata.com</Alias>
> <Alias>www2.propertyresearchdata.com</Alias>
> <Alias>www.floodzonedeterminations.com</Alias>
> <Alias>flood2.questsoft.com</Alias>
> <Alias>www.creditinsmarkets.com</Alias>
> </Host>
>
> </Engine>
>
> </Service>
>
> </Server>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org