tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charles Daniel" <daniel_char...@hotmail.com>
Subject Apache+Tomcat error -101 cannot connect to tomcat
Date Thu, 29 Jan 2004 23:12:16 GMT
I get an error -101 when Apache attempts to get a *.jsp from Tomcat.  Please Help!
daniel_charles@hotmail.com

SUSE Linux 8.0, Apache 2.048, Tomcat 4.1.29, mod_jk.

Installation Instructions @ 
http://www.johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html

The http.conf is reverted to the original distribution version with appended by the include
of the Tomcat autoconfig.conf file "Include /usr/local/tomcat/conf/auto/mod_jk.config"

The server.xml file is edited as follows:

<Server port="8005" shutdown="SHUTDOWN" debug="0">
#
 <!-- My Listener
  -->
  <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
            modJk="/usr/local/apache2/modules/mod_jk.so" />
  <!-- End My Listener
  -->

Coyote Connector, but AJP 13 fails as well so I've tried them both

<!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
               port="8009" minProcessors="5" maxProcessors="75"
               enableLookups="true" redirectPort="8443"
               acceptCount="10" debug="0" connectionTimeout="0"
               useURIValidationHack="false"
               protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>

Host container here.
<Host name="localhost" debug="0" appBase="webapps" 
unpackWARs="true" autoDeploy="true">
#
<!-- My Listener (inside of host container)
-->
   <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" append = "true"
                forwardAll="false" modJk="/usr/local/apache2/modules/mod_jk.so" />
<!-- End My Listener
-->

The workers.properties:
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13

Error Log: 

[Thu Jan 29 14:44:33 2004]  [jk_ajp_common.c (955)]: Error connecting to the Tomcat process.
[Thu Jan 29 14:44:33 2004]  [jk_ajp_common.c (1309)]: sending request to tomcat failed in
send loop. err=1
[Thu Jan 29 14:44:33 2004]  [jk_connect.c (188)]: Into jk_open_socket
[Thu Jan 29 14:44:33 2004]  [jk_connect.c (195)]: jk_open_socket, try to connect socket =
10
[Thu Jan 29 14:44:33 2004]  [jk_connect.c (204)]: jk_open_socket, after connect ret = -1
[Thu Jan 29 14:44:33 2004]  [jk_connect.c (233)]: jk_open_socket, connect() failed errno =
101
[Thu Jan 29 14:44:33 2004]  [jk_ajp_common.c (676)]: Error connecting to tomcat. Tomcat is
probably not started or is listenning on the wrong port. Failed errno = 101
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message