On Tue, 2003-08-26 at 15:33, Fred Whipple wrote:
> > In the settings you put in httpd.conf, you should have added a
> > 'LogLevel' directive. If you did not, then you can! The line
> > I have is:
> >
> > JkLogLevel error
> >
> > Change the 'error' to debug and restart Apache.
>
> This worked well, and yielded some errors:
>
> **********
> [Tue Aug 26 16:25:19 2003] [jk_connect.c (203)]: jk_open_socket, connect()
> failed errno = 111
> [Tue Aug 26 16:25:19 2003] [jk_ajp_common.c (626)]: Error connecting to
> tomcat. Tomcat is probably not started or is listenning on the wrong port.
> Failed errno = 111
Looks like there is a mismatch between the workers.properties and the
server.xml (Tomcat's config file). The server.xml sets up Tomcat. More
importantly, it sets up a Connector which opens a socket connection on a
defined port (Look for the Connector' section in the Service section of
the server.xml). This port is what mod_jk needs to know about in the
workers.properties. Some snippets from my config:
-----Server.xml snippet-----
<!-- Define an AJP 1.3 Connector on port 11009 -->
<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
address="10.1.1.1" port="11009" minProcessors="20" maxProcessors="80"
acceptCount="10" debug="0"/>
-----End Server.xml snippet-----
-----mod_jk's workers.properties file snippet-----
# ------------------------
# First tomcat server
# ------------------------
worker.tomcat1.port=11009
worker.tomcat1.host=10.1.1.1
worker.tomcat1.type=ajp13
-----End mod_jk's workers.properties file snippet-----
Check out both of these files and make sure the config is setup
cporrectly. It looks like either the Connector is not configured or the
workers.properties does not have the right info for the workers spawned
by Apache.
> All of these errors appeared at the same time I was trying to view a JSP on
> a site that had "lost touch." I was doing a tail -f and the log file had
> been quiet until I tried to view this JSP -- then all these popped-up at
> about the same time.
>
> Immidiately I opened a telnet session to this particular Tomcat instance's
> AJP 1.3 port, and verified it was responding. Also, *all* of the Tomcat
> instances are on the same host as the Web server, so all the workers are
> traveling over 127.0.0.1.
Do you use multiple Apaches on the server?
Since I would be speculating wildly, why not post the workers.properties
file as well as the Connector tags in the server.xml on the Tomcats.
Ben Ricker
Wellinx.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]