You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by GOMEZ Henri <hg...@slib.fr> on 2001/09/14 10:24:22 UTC
FW: configuration of mod_jk and tomcat-4.0
Forwarded to tomcat-dev !!!
>-----Original Message-----
>From: Jesse Farley [mailto:unixphreek@austin.rr.com]
>Sent: Thursday, September 13, 2001 9:18 PM
>To: tomcat-user@jakarta.apache.org
>Subject: configuration of mod_jk and tomcat-4.0
>
>
>Greetings,
>
>First, I'd normally opt to figure out this problem by myself, but I'm
>tempted
>to jump out of my skin with frustration at this point -- so if anyone
>could offer me assistance, I would greatly appreciate it.
>
>Also, I aplogize for filling your inbox with a long post, but
>I'd rather
>provide
>as much information up front as I think could be useful.
>
>Background:
>I am trying to setup tomcat-4.0 (rc1) in combination with the mod_jk
>connector (from the jakarta-tomcat-connectors cvs tree as of
>this morning
>09/13/2001)
>
>The environment that I started with was IIS on the front
>end and the isapi_redirect.dll but since I'm more accustomed to linux,
>I've also tried this with apache-1.3.20 on the front end as well.
>
>I get the same error messages from both configurations:
>* In the browser upon attempting to connect to
>http://localhost:9600/examples/jsp
> HTTP Status 500 - No Host matches server name localhost
>* In the catalina.out file:
> === AjpRequest ===
> jvmRoute = null
>
> Ajp13Processor[9610][4] invoking...
> WarpEngine[Apache]: Mapping request
> WarpEngine[Apache]: Mapping server name 'localhost'
> WarpEngine[Apache]: Trying a direct match
> WarpEngine[Apache]: Trying an alias match
> WarpEngine[Apache]: Trying the default host
> [Ajp13] sendHeaders()
> [Ajp13] status is: 500(Internal Server Error)
> [Ajp13] send()
> [Ajp13] sending msg, len = 47
> [Ajp13] doWrite(byte[], 0, 140)
> [Ajp13] send()
> [Ajp13] sending msg, len = 148
> [Ajp13] finish()
> [Ajp13] send()
> [Ajp13] sending msg, len = 6
> [Ajp13] recycle()
> [Ajp13] receiveNextRequest()
> [Ajp13] receive()
> Ajp13Processor[9610][4] process: ajp13.receiveNextRequest
> java.io.InterruptedIOException: Read timed out
> at java.net.SocketInputStream.socketRead(Native Method)
> at java.net.SocketInputStream.read(SocketInputStream.java:86)
> at org.apache.ajp.Ajp13.receive(Ajp13.java:811)
> at org.apache.ajp.Ajp13.receiveNextRequest(Ajp13.java:272)
> at
>org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:338)
> at
>org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:423)
> at java.lang.Thread.run(Thread.java:484)
> [Ajp13] close()
> Ajp13Processor[9610][4] process: done
>----------------------------------------------------
>
>I speculate that the problem is related to either:
> 1.) Misconfuration of tomcat/mod_jk.
> 2.) Perhaps I shouldn't be using the WarpEngine w/ mod_jk?
>
>For the sake of argument, I'm posting a few exerpts from the apache
>config files:
>
>server.xml:
>----------------------------------------
>blah blah blah... [skip to the important part]
> <Connector
>className="org.apache.ajp.tomcat4.Ajp13Connector" port="9610"
> minProcessors="5" maxProcessors="75" enableLookups="true"
> acceptCount="10" debug="6"/>
> <Realm className="org.apache.catalina.realm.MemoryRealm" />
> <Engine className="org.apache.catalina.connector.warp.WarpEngine"
> name="Apache" debug="8" appBase="webapps" >
> <!-- Global logger unless overridden at lower levels -->
> <WarpHost name="localhost" debug="0" unpackWARs="true">
> <Valve className="org.apache.catalina.valves.AccessLogValve"
> directory="logs" prefix="warp_global_access." suffix="log"
> pattern="common"/>
> <Logger className="org.apache.catalina.logger.FileLogger"
> directory="logs" prefix="modjk_errors." suffix=".log"
> timestamp="false"/>
> <Context path="" docBase="ROOT" debug="6" reloadable="false"/>
> <Context path="/examples" docBase="examples" debug="6"
> reloadable="false"/>
> </WarpHost>
> </Engine>
> </Service>
></Server>
>----------------------------------------
> workers.properties -
>----------------------------------------
>workers.tomcat_home=/home/jfarley/tomcat-mod_jk/
>workers.java_home=/usr/local/jdk1.3.1
>ps=/
>worker.list=ajp13
>worker.ajp13.port=9610
>worker.ajp13.host=localhost
>worker.ajp13.type=ajp13
>----------------------------------------
>uriworkermap.properties -
>----------------------------------------
># Simple worker configuration file
># Advanced mount of the examples context
>/examples/*=ajp13
>/examples/servlet/*=ajp13
>
>
>The apache httpd.conf has:
># --- MOD_JK configuration
>LoadModule jk_module libexec/mod_jk.so
>AddModule mod_jk.c
>JkWorkersFile /home/jfarley/tomcat-mod_jk/conf/workers.properties
>JkLogFile /home/jfarley/httpd/logs/mod_jk.log
>JkLogLevel debug
>JKLogStampFormat "[%a %b %d %H:%M:%S %Y]"
># and later ...
><VirtualHost *>
> ServerAdmin root@localhost
> ServerName localhost
> DocumentRoot "/home/jfarley/tomcat-mod_jk/webapps/ROOT"
> JkMount /*.jsp ajp13
> JkMount /servlet/* ajp13
> JkMount /examples/* ajp13
> ErrorLog logs/mod_jk_error.log
> CustomLog logs/mod_jk_access.log common
></VirtualHost>
>-------
>Do I need a <Host> section in the server.xml -- or is there
>something more
>fundamentally
>incorrect?
>
>Any assistance would be GREATLY apprecaited.
>
>Regards
>
>Jesse Farley
>unixphreek@austin.rr.com
>
>(p.s., please copy me on a response -- I'm on tomcat-dev, but not
>tomcat-user , thanks.)
>
>
>
Re: FW: configuration of mod_jk and tomcat-4.0
Posted by Jesse Farley <un...@austin.rr.com>.
> The only thing that is Tomcat-4-specific is the <Connector> entry, which
> is documented in "jk/README.txt" in the jakarta-tomcat-connectors
> repository. All of the configuration files for JK are, AFAIK, the same as
> for using it with Tomcat 3.x.
Ahh yes -- open mouth -- insert crack pipe --
Of course, after posting almost my entire config, I manage to leave out
the
critical detail... I was attempting to configure the ajp connector
in the mod_webapp ``section''.
Works like a charm now -- thanks.
>
> > They don't seem to be in the jakarta-tomcat-connectors CVS repository, nor
> > could I find
> > them from the latest-and-greatest documentation for tomcat.
> >
>
> Contributions gratefully accepted :-).
>
I'd be more than happy to contribute -- I assume you're referring to
documentation -- I'd certainly be to contribute code, but I'm
still dusting off some synapses, and I do try to sleep on
occasion...
Is there a primary contact for submission of such things?
Again, thank you.
--
Jesse Farley
unixphreek@austin.rr.com (home)
"Zen and Gnosticism are poor substitutes for real confusion."
Re: FW: configuration of mod_jk and tomcat-4.0
Posted by "Craig R. McClanahan" <cr...@apache.org>.
On Fri, 14 Sep 2001, Jesse Farley wrote:
> Date: Fri, 14 Sep 2001 16:14:15 -0500
> From: Jesse Farley <un...@austin.rr.com>
> Reply-To: tomcat-dev@jakarta.apache.org
> To: tomcat-dev@jakarta.apache.org
> Cc: tomcat-user@jakarta.apache.org
> Subject: Re: FW: configuration of mod_jk and tomcat-4.0
>
>
> There are documents for using tomcat-4.0 with mod_jk?
> Those would be very useful.
>
The only thing that is Tomcat-4-specific is the <Connector> entry, which
is documented in "jk/README.txt" in the jakarta-tomcat-connectors
repository. All of the configuration files for JK are, AFAIK, the same as
for using it with Tomcat 3.x.
> They don't seem to be in the jakarta-tomcat-connectors CVS repository, nor
> could I find
> them from the latest-and-greatest documentation for tomcat.
>
Contributions gratefully accepted :-).
> Incidentally, I have the ajp.jar compiled, and in
> ${CATALINA_HOME}/server/lib,
> (the tomcat-util.jar, as well), and I have the Connector configured to use
> org.apache.ajp.tomcat4.Ajp13Connector, but it is unclear what Engine to use
> (do I have to have an engine?).
> At any rate, pointers to the location of thse docs would be very useful
> -- and thanks in advance.
> - Jesse Farley
>
Henri, JF, this goes inside the "Tomcat-Standalone" service, along with
the 8080 and 8443 connectors, right? If so it will use the standard
<Engine> implementation.
You would use the WarpEngine (as the name implies) only when using the
WARP protocol, with mod_webapp.
Craig
>
> ----- Original Message -----
> From: "Craig R. McClanahan" <cr...@apache.org>
> To: <to...@jakarta.apache.org>
> Cc: <to...@jakarta.apache.org>; <un...@austin.rr.com>
> Sent: Friday, September 14, 2001 3:23 PM
> Subject: Re: FW: configuration of mod_jk and tomcat-4.0
>
>
> > Shouldn't this person be directed to the docs on using mod_jk with Tomcat
> > 4? I don't imaginge that using WarpConnector is going to get them very
> > far, because it is only for mod_webapp.
> >
> > Craig
> >
> > FWIW, the README.txt file for jk says to add a line line this to
> > server.xml:
> >
> > <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
> > port="8009" acceptCount="10" debug="0"/>
> >
> > and put the ajp.jar file (from building the connector) into the
> > $CATALINA_HOME/server/lib directory.
> >
> > Craig
>
>
>
Re: FW: configuration of mod_jk and tomcat-4.0
Posted by "Craig R. McClanahan" <cr...@apache.org>.
On Fri, 14 Sep 2001, Jesse Farley wrote:
> Date: Fri, 14 Sep 2001 16:14:15 -0500
> From: Jesse Farley <un...@austin.rr.com>
> Reply-To: tomcat-dev@jakarta.apache.org
> To: tomcat-dev@jakarta.apache.org
> Cc: tomcat-user@jakarta.apache.org
> Subject: Re: FW: configuration of mod_jk and tomcat-4.0
>
>
> There are documents for using tomcat-4.0 with mod_jk?
> Those would be very useful.
>
The only thing that is Tomcat-4-specific is the <Connector> entry, which
is documented in "jk/README.txt" in the jakarta-tomcat-connectors
repository. All of the configuration files for JK are, AFAIK, the same as
for using it with Tomcat 3.x.
> They don't seem to be in the jakarta-tomcat-connectors CVS repository, nor
> could I find
> them from the latest-and-greatest documentation for tomcat.
>
Contributions gratefully accepted :-).
> Incidentally, I have the ajp.jar compiled, and in
> ${CATALINA_HOME}/server/lib,
> (the tomcat-util.jar, as well), and I have the Connector configured to use
> org.apache.ajp.tomcat4.Ajp13Connector, but it is unclear what Engine to use
> (do I have to have an engine?).
> At any rate, pointers to the location of thse docs would be very useful
> -- and thanks in advance.
> - Jesse Farley
>
Henri, JF, this goes inside the "Tomcat-Standalone" service, along with
the 8080 and 8443 connectors, right? If so it will use the standard
<Engine> implementation.
You would use the WarpEngine (as the name implies) only when using the
WARP protocol, with mod_webapp.
Craig
>
> ----- Original Message -----
> From: "Craig R. McClanahan" <cr...@apache.org>
> To: <to...@jakarta.apache.org>
> Cc: <to...@jakarta.apache.org>; <un...@austin.rr.com>
> Sent: Friday, September 14, 2001 3:23 PM
> Subject: Re: FW: configuration of mod_jk and tomcat-4.0
>
>
> > Shouldn't this person be directed to the docs on using mod_jk with Tomcat
> > 4? I don't imaginge that using WarpConnector is going to get them very
> > far, because it is only for mod_webapp.
> >
> > Craig
> >
> > FWIW, the README.txt file for jk says to add a line line this to
> > server.xml:
> >
> > <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
> > port="8009" acceptCount="10" debug="0"/>
> >
> > and put the ajp.jar file (from building the connector) into the
> > $CATALINA_HOME/server/lib directory.
> >
> > Craig
>
>
>
Re: FW: configuration of mod_jk and tomcat-4.0
Posted by Jesse Farley <un...@austin.rr.com>.
There are documents for using tomcat-4.0 with mod_jk?
Those would be very useful.
They don't seem to be in the jakarta-tomcat-connectors CVS repository, nor
could I find
them from the latest-and-greatest documentation for tomcat.
Incidentally, I have the ajp.jar compiled, and in
${CATALINA_HOME}/server/lib,
(the tomcat-util.jar, as well), and I have the Connector configured to use
org.apache.ajp.tomcat4.Ajp13Connector, but it is unclear what Engine to use
(do I have to have an engine?).
At any rate, pointers to the location of thse docs would be very useful
-- and thanks in advance.
- Jesse Farley
----- Original Message -----
From: "Craig R. McClanahan" <cr...@apache.org>
To: <to...@jakarta.apache.org>
Cc: <to...@jakarta.apache.org>; <un...@austin.rr.com>
Sent: Friday, September 14, 2001 3:23 PM
Subject: Re: FW: configuration of mod_jk and tomcat-4.0
> Shouldn't this person be directed to the docs on using mod_jk with Tomcat
> 4? I don't imaginge that using WarpConnector is going to get them very
> far, because it is only for mod_webapp.
>
> Craig
>
> FWIW, the README.txt file for jk says to add a line line this to
> server.xml:
>
> <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
> port="8009" acceptCount="10" debug="0"/>
>
> and put the ajp.jar file (from building the connector) into the
> $CATALINA_HOME/server/lib directory.
>
> Craig
Re: FW: configuration of mod_jk and tomcat-4.0
Posted by Jesse Farley <un...@austin.rr.com>.
There are documents for using tomcat-4.0 with mod_jk?
Those would be very useful.
They don't seem to be in the jakarta-tomcat-connectors CVS repository, nor
could I find
them from the latest-and-greatest documentation for tomcat.
Incidentally, I have the ajp.jar compiled, and in
${CATALINA_HOME}/server/lib,
(the tomcat-util.jar, as well), and I have the Connector configured to use
org.apache.ajp.tomcat4.Ajp13Connector, but it is unclear what Engine to use
(do I have to have an engine?).
At any rate, pointers to the location of thse docs would be very useful
-- and thanks in advance.
- Jesse Farley
----- Original Message -----
From: "Craig R. McClanahan" <cr...@apache.org>
To: <to...@jakarta.apache.org>
Cc: <to...@jakarta.apache.org>; <un...@austin.rr.com>
Sent: Friday, September 14, 2001 3:23 PM
Subject: Re: FW: configuration of mod_jk and tomcat-4.0
> Shouldn't this person be directed to the docs on using mod_jk with Tomcat
> 4? I don't imaginge that using WarpConnector is going to get them very
> far, because it is only for mod_webapp.
>
> Craig
>
> FWIW, the README.txt file for jk says to add a line line this to
> server.xml:
>
> <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
> port="8009" acceptCount="10" debug="0"/>
>
> and put the ajp.jar file (from building the connector) into the
> $CATALINA_HOME/server/lib directory.
>
> Craig
Re: FW: configuration of mod_jk and tomcat-4.0
Posted by "Craig R. McClanahan" <cr...@apache.org>.
Shouldn't this person be directed to the docs on using mod_jk with Tomcat
4? I don't imaginge that using WarpConnector is going to get them very
far, because it is only for mod_webapp.
Craig
FWIW, the README.txt file for jk says to add a line line this to
server.xml:
<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
port="8009" acceptCount="10" debug="0"/>
and put the ajp.jar file (from building the connector) into the
$CATALINA_HOME/server/lib directory.
Craig
On Fri, 14 Sep 2001, GOMEZ Henri wrote:
> Date: Fri, 14 Sep 2001 10:24:22 +0200
> From: GOMEZ Henri <hg...@slib.fr>
> Reply-To: tomcat-dev@jakarta.apache.org
> To: tomcat-dev@jakarta.apache.org
> Cc: unixphreek@austin.rr.com
> Subject: FW: configuration of mod_jk and tomcat-4.0
>
> Forwarded to tomcat-dev !!!
>
> >-----Original Message-----
> >From: Jesse Farley [mailto:unixphreek@austin.rr.com]
> >Sent: Thursday, September 13, 2001 9:18 PM
> >To: tomcat-user@jakarta.apache.org
> >Subject: configuration of mod_jk and tomcat-4.0
> >
> >
> >Greetings,
> >
> >First, I'd normally opt to figure out this problem by myself, but I'm
> >tempted
> >to jump out of my skin with frustration at this point -- so if anyone
> >could offer me assistance, I would greatly appreciate it.
> >
> >Also, I aplogize for filling your inbox with a long post, but
> >I'd rather
> >provide
> >as much information up front as I think could be useful.
> >
> >Background:
> >I am trying to setup tomcat-4.0 (rc1) in combination with the mod_jk
> >connector (from the jakarta-tomcat-connectors cvs tree as of
> >this morning
> >09/13/2001)
> >
> >The environment that I started with was IIS on the front
> >end and the isapi_redirect.dll but since I'm more accustomed to linux,
> >I've also tried this with apache-1.3.20 on the front end as well.
> >
> >I get the same error messages from both configurations:
> >* In the browser upon attempting to connect to
> >http://localhost:9600/examples/jsp
> > HTTP Status 500 - No Host matches server name localhost
> >* In the catalina.out file:
> > === AjpRequest ===
> > jvmRoute = null
> >
> > Ajp13Processor[9610][4] invoking...
> > WarpEngine[Apache]: Mapping request
> > WarpEngine[Apache]: Mapping server name 'localhost'
> > WarpEngine[Apache]: Trying a direct match
> > WarpEngine[Apache]: Trying an alias match
> > WarpEngine[Apache]: Trying the default host
> > [Ajp13] sendHeaders()
> > [Ajp13] status is: 500(Internal Server Error)
> > [Ajp13] send()
> > [Ajp13] sending msg, len = 47
> > [Ajp13] doWrite(byte[], 0, 140)
> > [Ajp13] send()
> > [Ajp13] sending msg, len = 148
> > [Ajp13] finish()
> > [Ajp13] send()
> > [Ajp13] sending msg, len = 6
> > [Ajp13] recycle()
> > [Ajp13] receiveNextRequest()
> > [Ajp13] receive()
> > Ajp13Processor[9610][4] process: ajp13.receiveNextRequest
> > java.io.InterruptedIOException: Read timed out
> > at java.net.SocketInputStream.socketRead(Native Method)
> > at java.net.SocketInputStream.read(SocketInputStream.java:86)
> > at org.apache.ajp.Ajp13.receive(Ajp13.java:811)
> > at org.apache.ajp.Ajp13.receiveNextRequest(Ajp13.java:272)
> > at
> >org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:338)
> > at
> >org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:423)
> > at java.lang.Thread.run(Thread.java:484)
> > [Ajp13] close()
> > Ajp13Processor[9610][4] process: done
> >----------------------------------------------------
> >
> >I speculate that the problem is related to either:
> > 1.) Misconfuration of tomcat/mod_jk.
> > 2.) Perhaps I shouldn't be using the WarpEngine w/ mod_jk?
> >
> >For the sake of argument, I'm posting a few exerpts from the apache
> >config files:
> >
> >server.xml:
> >----------------------------------------
> >blah blah blah... [skip to the important part]
> > <Connector
> >className="org.apache.ajp.tomcat4.Ajp13Connector" port="9610"
> > minProcessors="5" maxProcessors="75" enableLookups="true"
> > acceptCount="10" debug="6"/>
> > <Realm className="org.apache.catalina.realm.MemoryRealm" />
> > <Engine className="org.apache.catalina.connector.warp.WarpEngine"
> > name="Apache" debug="8" appBase="webapps" >
> > <!-- Global logger unless overridden at lower levels -->
> > <WarpHost name="localhost" debug="0" unpackWARs="true">
> > <Valve className="org.apache.catalina.valves.AccessLogValve"
> > directory="logs" prefix="warp_global_access." suffix="log"
> > pattern="common"/>
> > <Logger className="org.apache.catalina.logger.FileLogger"
> > directory="logs" prefix="modjk_errors." suffix=".log"
> > timestamp="false"/>
> > <Context path="" docBase="ROOT" debug="6" reloadable="false"/>
> > <Context path="/examples" docBase="examples" debug="6"
> > reloadable="false"/>
> > </WarpHost>
> > </Engine>
> > </Service>
> ></Server>
> >----------------------------------------
> > workers.properties -
> >----------------------------------------
> >workers.tomcat_home=/home/jfarley/tomcat-mod_jk/
> >workers.java_home=/usr/local/jdk1.3.1
> >ps=/
> >worker.list=ajp13
> >worker.ajp13.port=9610
> >worker.ajp13.host=localhost
> >worker.ajp13.type=ajp13
> >----------------------------------------
> >uriworkermap.properties -
> >----------------------------------------
> ># Simple worker configuration file
> ># Advanced mount of the examples context
> >/examples/*=ajp13
> >/examples/servlet/*=ajp13
> >
> >
> >The apache httpd.conf has:
> ># --- MOD_JK configuration
> >LoadModule jk_module libexec/mod_jk.so
> >AddModule mod_jk.c
> >JkWorkersFile /home/jfarley/tomcat-mod_jk/conf/workers.properties
> >JkLogFile /home/jfarley/httpd/logs/mod_jk.log
> >JkLogLevel debug
> >JKLogStampFormat "[%a %b %d %H:%M:%S %Y]"
> ># and later ...
> ><VirtualHost *>
> > ServerAdmin root@localhost
> > ServerName localhost
> > DocumentRoot "/home/jfarley/tomcat-mod_jk/webapps/ROOT"
> > JkMount /*.jsp ajp13
> > JkMount /servlet/* ajp13
> > JkMount /examples/* ajp13
> > ErrorLog logs/mod_jk_error.log
> > CustomLog logs/mod_jk_access.log common
> ></VirtualHost>
> >-------
> >Do I need a <Host> section in the server.xml -- or is there
> >something more
> >fundamentally
> >incorrect?
> >
> >Any assistance would be GREATLY apprecaited.
> >
> >Regards
> >
> >Jesse Farley
> >unixphreek@austin.rr.com
> >
> >(p.s., please copy me on a response -- I'm on tomcat-dev, but not
> >tomcat-user , thanks.)
> >
> >
> >
>
Re: FW: configuration of mod_jk and tomcat-4.0
Posted by "Craig R. McClanahan" <cr...@apache.org>.
Shouldn't this person be directed to the docs on using mod_jk with Tomcat
4? I don't imaginge that using WarpConnector is going to get them very
far, because it is only for mod_webapp.
Craig
FWIW, the README.txt file for jk says to add a line line this to
server.xml:
<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
port="8009" acceptCount="10" debug="0"/>
and put the ajp.jar file (from building the connector) into the
$CATALINA_HOME/server/lib directory.
Craig
On Fri, 14 Sep 2001, GOMEZ Henri wrote:
> Date: Fri, 14 Sep 2001 10:24:22 +0200
> From: GOMEZ Henri <hg...@slib.fr>
> Reply-To: tomcat-dev@jakarta.apache.org
> To: tomcat-dev@jakarta.apache.org
> Cc: unixphreek@austin.rr.com
> Subject: FW: configuration of mod_jk and tomcat-4.0
>
> Forwarded to tomcat-dev !!!
>
> >-----Original Message-----
> >From: Jesse Farley [mailto:unixphreek@austin.rr.com]
> >Sent: Thursday, September 13, 2001 9:18 PM
> >To: tomcat-user@jakarta.apache.org
> >Subject: configuration of mod_jk and tomcat-4.0
> >
> >
> >Greetings,
> >
> >First, I'd normally opt to figure out this problem by myself, but I'm
> >tempted
> >to jump out of my skin with frustration at this point -- so if anyone
> >could offer me assistance, I would greatly appreciate it.
> >
> >Also, I aplogize for filling your inbox with a long post, but
> >I'd rather
> >provide
> >as much information up front as I think could be useful.
> >
> >Background:
> >I am trying to setup tomcat-4.0 (rc1) in combination with the mod_jk
> >connector (from the jakarta-tomcat-connectors cvs tree as of
> >this morning
> >09/13/2001)
> >
> >The environment that I started with was IIS on the front
> >end and the isapi_redirect.dll but since I'm more accustomed to linux,
> >I've also tried this with apache-1.3.20 on the front end as well.
> >
> >I get the same error messages from both configurations:
> >* In the browser upon attempting to connect to
> >http://localhost:9600/examples/jsp
> > HTTP Status 500 - No Host matches server name localhost
> >* In the catalina.out file:
> > === AjpRequest ===
> > jvmRoute = null
> >
> > Ajp13Processor[9610][4] invoking...
> > WarpEngine[Apache]: Mapping request
> > WarpEngine[Apache]: Mapping server name 'localhost'
> > WarpEngine[Apache]: Trying a direct match
> > WarpEngine[Apache]: Trying an alias match
> > WarpEngine[Apache]: Trying the default host
> > [Ajp13] sendHeaders()
> > [Ajp13] status is: 500(Internal Server Error)
> > [Ajp13] send()
> > [Ajp13] sending msg, len = 47
> > [Ajp13] doWrite(byte[], 0, 140)
> > [Ajp13] send()
> > [Ajp13] sending msg, len = 148
> > [Ajp13] finish()
> > [Ajp13] send()
> > [Ajp13] sending msg, len = 6
> > [Ajp13] recycle()
> > [Ajp13] receiveNextRequest()
> > [Ajp13] receive()
> > Ajp13Processor[9610][4] process: ajp13.receiveNextRequest
> > java.io.InterruptedIOException: Read timed out
> > at java.net.SocketInputStream.socketRead(Native Method)
> > at java.net.SocketInputStream.read(SocketInputStream.java:86)
> > at org.apache.ajp.Ajp13.receive(Ajp13.java:811)
> > at org.apache.ajp.Ajp13.receiveNextRequest(Ajp13.java:272)
> > at
> >org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:338)
> > at
> >org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:423)
> > at java.lang.Thread.run(Thread.java:484)
> > [Ajp13] close()
> > Ajp13Processor[9610][4] process: done
> >----------------------------------------------------
> >
> >I speculate that the problem is related to either:
> > 1.) Misconfuration of tomcat/mod_jk.
> > 2.) Perhaps I shouldn't be using the WarpEngine w/ mod_jk?
> >
> >For the sake of argument, I'm posting a few exerpts from the apache
> >config files:
> >
> >server.xml:
> >----------------------------------------
> >blah blah blah... [skip to the important part]
> > <Connector
> >className="org.apache.ajp.tomcat4.Ajp13Connector" port="9610"
> > minProcessors="5" maxProcessors="75" enableLookups="true"
> > acceptCount="10" debug="6"/>
> > <Realm className="org.apache.catalina.realm.MemoryRealm" />
> > <Engine className="org.apache.catalina.connector.warp.WarpEngine"
> > name="Apache" debug="8" appBase="webapps" >
> > <!-- Global logger unless overridden at lower levels -->
> > <WarpHost name="localhost" debug="0" unpackWARs="true">
> > <Valve className="org.apache.catalina.valves.AccessLogValve"
> > directory="logs" prefix="warp_global_access." suffix="log"
> > pattern="common"/>
> > <Logger className="org.apache.catalina.logger.FileLogger"
> > directory="logs" prefix="modjk_errors." suffix=".log"
> > timestamp="false"/>
> > <Context path="" docBase="ROOT" debug="6" reloadable="false"/>
> > <Context path="/examples" docBase="examples" debug="6"
> > reloadable="false"/>
> > </WarpHost>
> > </Engine>
> > </Service>
> ></Server>
> >----------------------------------------
> > workers.properties -
> >----------------------------------------
> >workers.tomcat_home=/home/jfarley/tomcat-mod_jk/
> >workers.java_home=/usr/local/jdk1.3.1
> >ps=/
> >worker.list=ajp13
> >worker.ajp13.port=9610
> >worker.ajp13.host=localhost
> >worker.ajp13.type=ajp13
> >----------------------------------------
> >uriworkermap.properties -
> >----------------------------------------
> ># Simple worker configuration file
> ># Advanced mount of the examples context
> >/examples/*=ajp13
> >/examples/servlet/*=ajp13
> >
> >
> >The apache httpd.conf has:
> ># --- MOD_JK configuration
> >LoadModule jk_module libexec/mod_jk.so
> >AddModule mod_jk.c
> >JkWorkersFile /home/jfarley/tomcat-mod_jk/conf/workers.properties
> >JkLogFile /home/jfarley/httpd/logs/mod_jk.log
> >JkLogLevel debug
> >JKLogStampFormat "[%a %b %d %H:%M:%S %Y]"
> ># and later ...
> ><VirtualHost *>
> > ServerAdmin root@localhost
> > ServerName localhost
> > DocumentRoot "/home/jfarley/tomcat-mod_jk/webapps/ROOT"
> > JkMount /*.jsp ajp13
> > JkMount /servlet/* ajp13
> > JkMount /examples/* ajp13
> > ErrorLog logs/mod_jk_error.log
> > CustomLog logs/mod_jk_access.log common
> ></VirtualHost>
> >-------
> >Do I need a <Host> section in the server.xml -- or is there
> >something more
> >fundamentally
> >incorrect?
> >
> >Any assistance would be GREATLY apprecaited.
> >
> >Regards
> >
> >Jesse Farley
> >unixphreek@austin.rr.com
> >
> >(p.s., please copy me on a response -- I'm on tomcat-dev, but not
> >tomcat-user , thanks.)
> >
> >
> >
>