The problem with that is that it doesn't help me with load-balancing and
such.  I really need to get the connector working.

Thanks, though.

Any other thoughts on what I've done wrong here?

--Lee

-----Original Message-----
From: Paul Campbell [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 17, 2002 11:35 PM
To: Tomcat Users List
Subject: Re: Tomcat on a separate machine


How about trying what I do:

in httpd.conf

ProxyPass /equiv        http://other:8080/equiv
ProxyPassReverse /equiv http://other:8080/equiv

Where other is someother machine


At 02:37 PM 11/17/02, you wrote:
>I have server1 running both Apache2 and an instance of Tomcat4.  I have
>server2 running its own instance of Tomcat4.  The Tomcats on server1 and
>server2 are running different applications.
>
>I am currently trying to get requests for urlinone.com received by Apache
at
>server1 forwarded to the Tomcat at server2.  It seems like they see each
>other, because, when I shut down Apache on server1, server2's log shows:
>
>Nov 17, 2002 4:14:29 PM org.apache.jk.common.ChannelSocket
processConnection
>WARNING: server has closed the current connection (-1)
>Nov 17, 2002 4:14:29 PM org.apache.jk.common.ChannelSocket
processConnection
>WARNING: server has closed the current connection (-1)
>
>However, I don't see any indication that servlet requests are getting from
>Apache on server1 to Tomcat on server2.  There is no log activity on
server2
>to match the requests shown at server1.
>
>On server1, Apache httpd.conf contains, in part:
>
>NameVirtualHost *
><IfModule !mod_jk.c>
>  LoadModule jk_module /usr/local/apache/modules/mod_jk.so
></IfModule>
># Am I supposed to have AddModule mod_jk anywhere?  There are no AddModule
>statements in this file.
>JkWorkersFile /var/tomcat4/conf/jk/workers.properties
>JkLogFile /var/tomcat4/logs/mod_jk.log
>JkLogLevel info
>JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
><VirtualHost *>
>    ServerName www.urlinone.com
>    ServerAlias urlinone.com
>    DocumentRoot /var/tomcat4/webapps/urlinone
>    ErrorLog /var/tomcat4/logs/urlinone-errorlog
>    CustomLog /var/tomcat4/logs/urlinone-access.log common
>    Alias / "/var/tomcat4/webapps/urlinone/"
>    JkMount /servlet/* server2
></VirtualHost>
>
>Server1's workers.properties file says:
>
>worker.list=server1,server2
>worker.server1.type=ajp13
>worker.server1.host=192.168.1.80
>worker.server1.port=8009
>
>worker.server2.type=ajp13
>worker.server2.host=192.168.1.50
>worker.server2.port=8009
>
>Server2's server.xml file says, in part:
>
>  <Service name="Tomcat-Apache">
>    <DefaultContext reloadable="true"/>
>    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
>     port="8009" minProcessors="5" maxProcessors="75"
>     enableLookups="true" appBase="webapps"
>     acceptCount="10" debug="0"/>
>    <Engine name="Standalone" defaultHost="www.urlinone.com" debug="0">
>      <Logger className="org.apache.catalina.logger.FileLogger"
>              prefix="urlinone_log." suffix=".txt"
>              timestamp="true"/>
>      <Realm className="org.apache.catalina.realm.MemoryRealm" />
>    </Engine>
>  </Service>
>
>The Apache log shows a request being successfully completed:
>
>192.168.1.1 - - [17/Nov/2002:16:27:27 -0500] "GET /index.html HTTP/1.1" 304
>0
>192.168.1.1 - - [17/Nov/2002:16:27:27 -0500] "GET /urlinone.js HTTP/1.1"
304
>0
>192.168.1.1 - - [17/Nov/2002:16:27:27 -0500] "GET /servlet/PagePump
>HTTP/1.1" 200 0
>
>But there is no activity, as far as I can see, on server2.  Server1 is
>running Red Hat 7.3 and Tomcat 4.1.12, while server2 is running Red Hat 7.2
>and Tomcat 4.0.3.  I had to download all the jars at
>http://jakarta.apache.org/builds/jakarta-tomcat-connectors/coyote/release/v
1
>.0-rc2/ to get Coyote running on server2, so I'm wondering if there is some
>incompatibility there.  Despite the instructions on that page, I do not
have
>a jk2.properties file, nor do I have tomcat-jni.jar, because I don't think
>I'm using either of those, since I'm using mod_jk.  I also don't believe
>there is any need for a workers.properties file on server2, since that is
>for mod_jk in Apache, right?
>
>The only other thing, and I don't know if this is a red flag or a red
>herring, is that mod_jk.log on server1 gives bursts of errors sometimes,
>although 90% of the time it's when Tomcat on server2 is starting up or
>shutting down.  I have seen some errors upon a request, though.  I tend to
>think the problem is within my configuration, though, and that these errors
>are not significant.  I include them for completeness.
>
>[Sun Nov 17 16:53:49 2002] [jk_ajp_common.c (679)]:
>ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
>[Sun Nov 17 16:53:49 2002] [jk_ajp_common.c (1041)]: Error reading reply
>[Sun Nov 17 16:53:49 2002] [jk_ajp_common.c (1178)]: In
>jk_endpoint_t::service, ajp_get_reply failed in send loop 0
>[Sun Nov 17 16:53:49 2002] [jk_ajp_common.c (679)]:
>ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
>[Sun Nov 17 16:53:49 2002] [jk_ajp_common.c (1041)]: Error reading reply
>[Sun Nov 17 16:53:49 2002] [jk_ajp_common.c (1178)]: In
>jk_endpoint_t::service, ajp_get_reply failed in send loop 0
>[Sun Nov 17 16:53:49 2002] [jk_connect.c (177)]: jk_open_socket, connect()
>failed errno = 111
>[Sun Nov 17 16:53:49 2002] [jk_ajp_common.c (626)]: In
>jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111
>[Sun Nov 17 16:53:49 2002] [jk_ajp_common.c (872)]: Error connecting to the
>Tomcat process.
>[Sun Nov 17 16:53:49 2002] [jk_ajp_common.c (1181)]: In
>jk_endpoint_t::service, ajp_send_request failed in send loop 1
>[Sun Nov 17 16:53:49 2002] [jk_connect.c (177)]: jk_open_socket, connect()
>failed errno = 111
>[Sun Nov 17 16:53:49 2002] [jk_ajp_common.c (626)]: In
>jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111
>[Sun Nov 17 16:53:49 2002] [jk_ajp_common.c (872)]: Error connecting to the
>Tomcat process.
>[Sun Nov 17 16:53:49 2002] [jk_ajp_common.c (1181)]: In
>jk_endpoint_t::service, ajp_send_request failed in send loop 1
>[Sun Nov 17 16:53:49 2002] [jk_connect.c (177)]: jk_open_socket, connect()
>failed errno = 111
>[Sun Nov 17 16:53:49 2002] [jk_ajp_common.c (626)]: In
>jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111
>[Sun Nov 17 16:53:49 2002] [jk_ajp_common.c (872)]: Error connecting to the
>Tomcat process.
>[Sun Nov 17 16:53:49 2002] [jk_ajp_common.c (1181)]: In
>jk_endpoint_t::service, ajp_send_request failed in send loop 2
>[Sun Nov 17 16:53:49 2002] [jk_connect.c (177)]: jk_open_socket, connect()
>failed errno = 111
>[Sun Nov 17 16:53:49 2002] [jk_ajp_common.c (626)]: In
>jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111
>[Sun Nov 17 16:53:49 2002] [jk_ajp_common.c (872)]: Error connecting to the
>Tomcat process.
>[Sun Nov 17 16:53:49 2002] [jk_ajp_common.c (1181)]: In
>jk_endpoint_t::service, ajp_send_request failed in send loop 2
>[Sun Nov 17 16:59:48 2002] [jk_ajp_common.c (679)]:
>ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
>[Sun Nov 17 16:59:48 2002] [jk_ajp_common.c (1041)]: Error reading reply
>[Sun Nov 17 16:59:48 2002] [jk_ajp_common.c (1178)]: In
>jk_endpoint_t::service, ajp_get_reply failed in send loop 0
>[Sun Nov 17 16:59:48 2002] [jk_connect.c (177)]: jk_open_socket, connect()
>failed errno = 111
>[Sun Nov 17 16:59:48 2002] [jk_ajp_common.c (626)]: In
>jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111
>[Sun Nov 17 16:59:48 2002] [jk_ajp_common.c (872)]: Error connecting to the
>Tomcat process.
>[Sun Nov 17 16:59:48 2002] [jk_ajp_common.c (1181)]: In
>jk_endpoint_t::service, ajp_send_request failed in send loop 1
>[Sun Nov 17 16:59:48 2002] [jk_connect.c (177)]: jk_open_socket, connect()
>failed errno = 111
>[Sun Nov 17 16:59:48 2002] [jk_ajp_common.c (626)]: In
>jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111
>[Sun Nov 17 16:59:48 2002] [jk_ajp_common.c (872)]: Error connecting to the
>Tomcat process.
>[Sun Nov 17 16:59:48 2002] [jk_ajp_common.c (1181)]: In
>jk_endpoint_t::service, ajp_send_request failed in send loop 2
>[Sun Nov 17 17:02:57 2002] [jk_ajp_common.c (679)]:
>ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
>[Sun Nov 17 17:02:57 2002] [jk_ajp_common.c (1041)]: Error reading reply
>[Sun Nov 17 17:02:57 2002] [jk_ajp_common.c (1178)]: In
>jk_endpoint_t::service, ajp_get_reply failed in send loop 0
>
>Any ideas?
>
>Thank you,
>Lee Grey
>Grey Matter
>
>
>--
>To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to