I am actually running Solaris.  I will ask you the same question .  We have
Apache running with J-Serv and I am trying to
switch it to mod_jk.  When we start apache we do a -c INCLUDE ...
tomcat-apache.conf... I was hoping I could switch it 
to the mod_jk file althoug one person told me that is a know bug...have you
heard that?  Does the 

LoadModule jk_module /usr/lib/apache/mod_jk.so have to be in httpd.con or
can it be in the file I include with the -INclude when I start apache?

Thanks

-----Original Message-----
From: John Bazeley [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 23, 2001 2:41 PM
To: [EMAIL PROTECTED]
Subject: RE: re mod_jserv.so + New Question


When you say similar, what's the errno?

I'm guessing Mr / Ms OfDogs (or can I call you Isle?) is
running linux and 111 is therefore connection refused. That
error is usually returned by TCP when the port it tried to
connect to (8009) does not have a server on it, so either:

1. you are starting apache before tomcat (don't do this)
2. you're running a slow machine and tomcat didn't get round
   to starting the Ajp13 connection handler yet before you started
   Apache
3. Tomcat is not starting an Ajp13 connection handler (i.e. the lines
   I mentioned in server.conf are not activated)

Check tomcat's output. You should see

yyyy-mm-dd hh:mm:ss - PoolTcpConnector: Starting Ajp13ConnectionHandler on
8009

when you start up. If you don't, recheck server.xml.

Cheers,
--
John

> -----Original Message-----
> From: Nance, Michael [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 24 July 2001 09:12
> To: '[EMAIL PROTECTED]'
> Subject: RE: re mod_jserv.so + New Question
>
>
> I am getting a similar error but have those lines in my server.xml...
> where else can I look?!?!?!?
>
> -----Original Message-----
> From: John Bazeley [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 23, 2001 2:03 PM
> To: [EMAIL PROTECTED]
> Subject: RE: re mod_jserv.so + New Question
>
>
> check server.xml.
>
> Do you have the Ajp13 connection handler activated
> (i.e. make sure the following lines exist and are not
> commented out)
>
>         <!-- Apache AJP13 support.  -->
>         <Connector className="org.apache.tomcat.service.PoolTcpConnector">
>             <Parameter name="handler"
>
> value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/>
>             <Parameter name="port" value="8009"/>
>         </Connector>
>
> (note this was from 3.2.2 - don't imagine it's changed)
>
> Cheers,
> --
> John
>
> > -----Original Message-----
> > From: isleofdogs [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, 24 July 2001 08:36
> > To: [EMAIL PROTECTED]
> > Subject: re mod_jserv.so + New Question
> >
> >
> > At 04:19 AM 7/24/01 +0800, you wrote:
> > >Hi John,
> > >
> > >we have the same question.
> > >but:
> > >how to install using the binary ?
> > >any reqirement on the version of Apache?
> > >do we need to re build Apache?
> >
> > I've made a lot of progress.
> >
> > In my httpsd.com (im running a secure server)
> > but this will work in httpd.conf I added the following:
> >
> > LoadModule jk_module /usr/lib/apache/mod_jk.so
> >
> > <IfModule mod_jk.c>
> > Include /usr/local/jakarta/jakarta-tomcat-3.2.3/conf/mod_jk.conf-auto
> > </IfModule>
> >
> >
> > From there you need to edit the tomcat config files.
> >
> >
> >
> > I can run the test servlets on 8080 running the tomcat server
> > but when I try to run them on my apache+mod_ssl server I get:
> >
> > I am now getting the following error in the logs:
> >
> > # tail mod_jk.log
> > [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 111
> > [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
> >
> > ...
> >
> > (In the browser)
> > Internal Server Error
> >
> > The server encountered an internal error or misconfiguration and
> > was unable
> > to complete your request.
> >
> >
> >
> > Anyone have any thoughts on why running servlets creates these
> > errors?
> >
> > Thanks in advance,
> > iod
> >
> >
>

Reply via email to