You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Thébault, Médérick" <Me...@brittany-ferries.fr> on 2003/08/25 15:31:19 UTC

Modjk2 error log

Hello,

Tomcat 4.1.18/Apache 2.0.43/mod_jk2

3 virtual hosts in Apache, 3 virtual hosts in Tomcat


Apache virtual host section

NameVirtualHost *

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>


#-------------------------------------#
<VirtualHost *>
    ServerAdmin foo@bar.com
    ServerName test1.com
    DocumentRoot C:/WebDocs/RootServer

    <Directory "C:/WebDocs/RootServer">
	Options Indexes FollowSymLinks MultiViews    
    	AllowOverride None
    	Order allow,deny
	Allow from all
    	deny from none
    </Directory>

    CustomLog logs/test1.log common
    ErrorLog logs/test1.log
</VirtualHost>
#-------------------------------------#
<VirtualHost *>
    ServerAdmin foo@bar.com
    ServerName test2.com
    DocumentRoot C:/WebDocs/TrackingSys/Test

    <Directory "C:/WebDocs/TrackingSys/Test">
	Options Indexes FollowSymLinks MultiViews
    	AllowOverride None
    	Order allow,deny
    	Allow from all
    	deny from none
    </Directory>

    CustomLog logs/test2.log common
    ErrorLog logs/error_test2.log
<Location "/TruckEnqui/">
JkUriSet worker ajp13:test2.com:8009
</Location>
</VirtualHost>
#-------------------------------------#
<VirtualHost *>
    ServerAdmin foo@bar.com
    ServerName test3.com
    DocumentRoot C:/WebDocs/TrackingSys/Live
    <Directory "C:/WebDocs/TrackingSys/Live">

    	Options Indexes FollowSymLinks MultiViews

    	AllowOverride None
    	Order allow,deny
    	Allow from all
    	deny from none
    </Directory>

    CustomLog logs/test3.log common
    ErrorLog logs/error_test3.log
<Location "/TruckEnqui/">
JkUriSet worker ajp13:test3.com:8009
</Location>
</VirtualHost>
#-------------------------------------#
<VirtualHost *>
    ServerAdmin foo@bar.com
    ServerName xi.com
    DocumentRoot c:/Webdocs/IT/xi
    <Directory "c:/Webdocs/IT/xi">

    	DirectoryIndex index.html index.html.var
    	Options Indexes FollowSymLinks MultiViews

    	AllowOverride None
    	Order allow,deny
    	Allow from all

    </Directory>
    CustomLog logs/xi-access.log common
    ErrorLog logs/xi-error.log

<Location "/unicorn2xml">
JkUriSet worker ajp13:xi.com:8009
</Location>

<Location "/xml2unicorn">
JkUriSet worker ajp13:xi.com:8009
</Location>

<Location "/xi">
JkUriSet worker ajp13:xi.com:8009
</Location>

</VirtualHost>

workers2.properties file :

[logger.apache2]
level=DEBUG

[shm]
file=c:/shm.file
size=1048576

# Example socket channel, override port and host.
[channel.socket:test3.com:8009]
port=8009
host=127.0.0.1

# Example socket channel, override port and host.
[channel.socket:test2.com:8009]
port=8009
host=127.0.0.1

# Example socket channel, override port and host.
[channel.socket:xi.com:8009]
port=8009
host=127.0.0.1

# define the worker
[ajp13:test3.com:8009]
channel=channel.socket:test3.com:8009

# define the worker
[ajp13:test2.com:8009]
channel=channel.socket:test2.com:8009

# define the worker
[ajp13:xi.com:8009]
channel=channel.socket:xi.com:8009

Do we need worker for each virtual host? (I had the idea that those notions were linked.)

Log file from apache

[Mon Aug 25 11:22:05 2003] [notice] Parent: Created child process 884
[Mon Aug 25 11:22:06 2003] [notice] Child 884: Child process is running
[Mon Aug 25 11:22:06 2003] [notice] jk2_init() Found child 884 in scoreboard slot 0
[Mon Aug 25 11:22:06 2003] [notice] workerEnv.init() ok C:/Apache2/conf/workers2.properties
[Mon Aug 25 11:22:06 2003] [error] mod_jk child init 1 0
[Mon Aug 25 11:22:06 2003] [notice] Child 884: Acquired the start mutex.
[Mon Aug 25 11:22:06 2003] [notice] Child 884: Starting 250 worker threads.
[Mon Aug 25 11:23:58 2003] [warn] (720064)The specified network name is no longer available.  : winnt_accept: Asynchronous AcceptEx failed.
[Mon Aug 25 11:24:30 2003] [notice] shm.createSlot() Create 1 0x520000 0x522000
[Mon Aug 25 11:24:30 2003] [notice] workerEnv.init() create slot epStat.0
[Mon Aug 25 11:24:56 2003] [error] channelSocket.receive(): Error receiving message body -1 53
[Mon Aug 25 11:24:56 2003] [error] workerEnv.processCallbacks() Error reading reply
[Mon Aug 25 11:24:56 2003] [error] ajp13.service() ajpGetReply recoverable error 120000
[Mon Aug 25 11:25:24 2003] [error] ajp13.service() Error sending initial post -1 0 0
[Mon Aug 25 11:26:45 2003] [error] channelSocket.receive(): Error receiving message body -1 53
[Mon Aug 25 11:26:45 2003] [error] workerEnv.processCallbacks() Error reading reply
[Mon Aug 25 11:26:45 2003] [error] ajp13.service() ajpGetReply recoverable error 120000
[Mon Aug 25 11:27:08 2003] [error] ajp13.service() Error sending initial post -1 0 0
[Mon Aug 25 11:29:29 2003] [error] ajp13.service() Error sending initial post -1 0 0
[Mon Aug 25 11:29:55 2003] [error] channelSocket.receive(): Error receiving message body -1 53
[Mon Aug 25 11:29:55 2003] [error] workerEnv.processCallbacks() Error reading reply
[Mon Aug 25 11:29:55 2003] [error] ajp13.service() ajpGetReply recoverable error 120000
[Mon Aug 25 11:31:17 2003] [error] ajp13.service() Error sending initial post -1 0 0
[Mon Aug 25 11:33:28 2003] [error] channelSocket.receive(): Error receiving message body -1 53
[Mon Aug 25 11:33:28 2003] [error] workerEnv.processCallbacks() Error reading reply
[Mon Aug 25 11:33:28 2003] [error] ajp13.service() ajpGetReply recoverable error 120000
[Mon Aug 25 11:35:55 2003] [error] Error ajp_process_callback - write failed
[Mon Aug 25 11:35:55 2003] [error] ajp13.service() ajpGetReply recoverable error 3
[Mon Aug 25 11:35:55 2003] [error] ajp13.service() Error  forwarding ajp13:it.bai-uk.com:8009 1 0
[Mon Aug 25 11:35:55 2003] [error] mod_jk.handler() Error connecting to tomcat 3

I saw there http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg101037.html that the first error message is normal.

OK, but it seems that servlets under xi virtual host receive empty request.

Does someone have an idea?

Thanx


Re: Modjk2 error log

Posted by "Eric J. Pinnell" <er...@iCky.org>.
Hi,

It looks like you have a little confusion between JK and JK2.

> <Location "/TruckEnqui/">
> JkUriSet worker ajp13:test2.com:8009
> </Location>

Get rid of these in your httpd.conf.  The URIs are defined in
workers2.properties.

>
> workers2.properties file :
>
> [logger.apache2]
> level=DEBUG
>
> [shm]
> file=c:/shm.file
> size=1048576
>
> # Example socket channel, override port and host.
> [channel.socket:test3.com:8009]
> port=8009
> host=127.0.0.1
>
> # define the worker
> [ajp13:test3.com:8009]
> channel=channel.socket:test3.com:8009

In here you need to do the URI mapping.  So as an example:

# Uri Mapping
[uri:/TruckEnqui/*]
worker=ajp13:test3.com:8009

would map everything under /TruckEnqui/ to test3.com on port 8009.

-e