You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Kelly E. Grooms" <ke...@telocity.com> on 2001/07/28 23:50:33 UTC

Apache cannot connect to Tomcat

Hello,

I've scoured the web and all the Tomcat lists that I can find and still
cannot solve this error.  Everything works fine through port 8080 as
stand-alone, but when I try accessing Tomcat through Apache the page times
out with no output from the JSP.  Afterward my mod_jk.log file contains:

[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 110
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1

I compiled mod_jk.so myself.  I've added mod_jk.conf-auto to my httpd.conf
file.  I altered workers.properties to reflect my JAVA_HOME, TOMCAT_HOME and
file separator ("/").  I have _not_ added the connector for ajp13 to my
server.xml file.

Here is my configuration:

Mandrake Linux 8.0
Apache 1.3.19
Java 1.3.1 (from Sun)
Tomcat 3.2.3

I've installed older versions of Tomcat on other configurations in the past
and did not have this much trouble.  I'm beginning to feel very discouraged.
Can anyone help?  Thanks.

Kelly E. Grooms
kellygrooms@telocity.com


RE: Apache cannot connect to Tomcat

Posted by "Kelly E. Grooms" <ke...@telocity.com>.
Well I'm not sure what parts you consider relevant, but I can tell you what
I changed beyond the defaults.

httpd.conf - Only added the path to my mod_jk.conf-auto file in an include
statement.
server.xml - No changes.  Used default file.
web.xml    - No changes.  Used default file.

Thanks.

Kelly E. Grooms
kellygrooms@telocity.com

-----Original Message-----
From: Jeff Kilbride [mailto:jeff@kilbride.com]
Sent: Sunday, July 29, 2001 3:23 PM
To: tomcat-user@jakarta.apache.org
Subject: Re: Apache cannot connect to Tomcat


You're right, Andrew! I misread and thought Kelly hadn't added _any_
connectors to server.xml. My mistake.

Kelly, I have JSP's running with 3.2.3 on RedHat & Apache 1.3.19. Can you
post the relevant parts of your server.xml, httpd.conf and web.xml files?

--jeff

----- Original Message -----
From: "Andrew Robson" <an...@netscapeonline.co.uk>
To: <to...@jakarta.apache.org>
Sent: Sunday, July 29, 2001 12:56 PM
Subject: Re: Apache cannot connect to Tomcat


> Hang on Jeff this isn't correct is it? mod_jk can support either the ajp12
> or ajp13 protocol so adding the ajp13 connector to server.xml isn't likely
> to help.
> I'm afraid I can't help with the jsp side of things as I only ever
> write servlets. Might be interesting to see if you can get a servlet
> to work to see if JSP issue.
>
> andrew
>
> On Sun, 29 Jul 2001, you wrote:
> > If you're using mod_jk, you have to add the connector to your server.xml
> > file. I'm not sure why you *haven't* done that. Apache and Tomcat won't
be
> > able to communicate without it. So, I would suggest starting there.
> >
> > --jeff
> >
> > ----- Original Message -----
> > From: "Kelly E. Grooms" <ke...@telocity.com>
> > To: <to...@jakarta.apache.org>
> > Sent: Saturday, July 28, 2001 2:50 PM
> > Subject: Apache cannot connect to Tomcat
> >
> >
> > > Hello,
> > >
> > > I've scoured the web and all the Tomcat lists that I can find and
still
> > > cannot solve this error.  Everything works fine through port 8080 as
> > > stand-alone, but when I try accessing Tomcat through Apache the page
times
> > > out with no output from the JSP.  Afterward my mod_jk.log file
contains:
> > >
> > > [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 110
> > > [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
> > >
> > > I compiled mod_jk.so myself.  I've added mod_jk.conf-auto to my
httpd.conf
> > > file.  I altered workers.properties to reflect my JAVA_HOME,
TOMCAT_HOME
> > and
> > > file separator ("/").  I have _not_ added the connector for ajp13 to
my
> > > server.xml file.
> > >
> > > Here is my configuration:
> > >
> > > Mandrake Linux 8.0
> > > Apache 1.3.19
> > > Java 1.3.1 (from Sun)
> > > Tomcat 3.2.3
> > >
> > > I've installed older versions of Tomcat on other configurations in the
> > past
> > > and did not have this much trouble.  I'm beginning to feel very
> > discouraged.
> > > Can anyone help?  Thanks.
> > >
> > > Kelly E. Grooms
> > > kellygrooms@telocity.com
> > >
> --
>
> Andrew Robson
>
> tel: (0141) 424 0607
> mobile: 07759 430234
> email: andrew@playaday.com
>



Re: Apache cannot connect to Tomcat

Posted by Jeff Kilbride <je...@kilbride.com>.
You're right, Andrew! I misread and thought Kelly hadn't added _any_
connectors to server.xml. My mistake.

Kelly, I have JSP's running with 3.2.3 on RedHat & Apache 1.3.19. Can you
post the relevant parts of your server.xml, httpd.conf and web.xml files?

--jeff

----- Original Message -----
From: "Andrew Robson" <an...@netscapeonline.co.uk>
To: <to...@jakarta.apache.org>
Sent: Sunday, July 29, 2001 12:56 PM
Subject: Re: Apache cannot connect to Tomcat


> Hang on Jeff this isn't correct is it? mod_jk can support either the ajp12
> or ajp13 protocol so adding the ajp13 connector to server.xml isn't likely
> to help.
> I'm afraid I can't help with the jsp side of things as I only ever
> write servlets. Might be interesting to see if you can get a servlet
> to work to see if JSP issue.
>
> andrew
>
> On Sun, 29 Jul 2001, you wrote:
> > If you're using mod_jk, you have to add the connector to your server.xml
> > file. I'm not sure why you *haven't* done that. Apache and Tomcat won't
be
> > able to communicate without it. So, I would suggest starting there.
> >
> > --jeff
> >
> > ----- Original Message -----
> > From: "Kelly E. Grooms" <ke...@telocity.com>
> > To: <to...@jakarta.apache.org>
> > Sent: Saturday, July 28, 2001 2:50 PM
> > Subject: Apache cannot connect to Tomcat
> >
> >
> > > Hello,
> > >
> > > I've scoured the web and all the Tomcat lists that I can find and
still
> > > cannot solve this error.  Everything works fine through port 8080 as
> > > stand-alone, but when I try accessing Tomcat through Apache the page
times
> > > out with no output from the JSP.  Afterward my mod_jk.log file
contains:
> > >
> > > [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 110
> > > [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
> > >
> > > I compiled mod_jk.so myself.  I've added mod_jk.conf-auto to my
httpd.conf
> > > file.  I altered workers.properties to reflect my JAVA_HOME,
TOMCAT_HOME
> > and
> > > file separator ("/").  I have _not_ added the connector for ajp13 to
my
> > > server.xml file.
> > >
> > > Here is my configuration:
> > >
> > > Mandrake Linux 8.0
> > > Apache 1.3.19
> > > Java 1.3.1 (from Sun)
> > > Tomcat 3.2.3
> > >
> > > I've installed older versions of Tomcat on other configurations in the
> > past
> > > and did not have this much trouble.  I'm beginning to feel very
> > discouraged.
> > > Can anyone help?  Thanks.
> > >
> > > Kelly E. Grooms
> > > kellygrooms@telocity.com
> > >
> --
>
> Andrew Robson
>
> tel: (0141) 424 0607
> mobile: 07759 430234
> email: andrew@playaday.com
>


Re: Apache cannot connect to Tomcat

Posted by Andrew Robson <an...@netscapeonline.co.uk>.
Hang on Jeff this isn't correct is it? mod_jk can support either the ajp12 
or ajp13 protocol so adding the ajp13 connector to server.xml isn't likely
to help. 
I'm afraid I can't help with the jsp side of things as I only ever 
write servlets. Might be interesting to see if you can get a servlet
to work to see if JSP issue. 

andrew 

On Sun, 29 Jul 2001, you wrote:
> If you're using mod_jk, you have to add the connector to your server.xml
> file. I'm not sure why you *haven't* done that. Apache and Tomcat won't be
> able to communicate without it. So, I would suggest starting there.
> 
> --jeff
> 
> ----- Original Message -----
> From: "Kelly E. Grooms" <ke...@telocity.com>
> To: <to...@jakarta.apache.org>
> Sent: Saturday, July 28, 2001 2:50 PM
> Subject: Apache cannot connect to Tomcat
> 
> 
> > Hello,
> >
> > I've scoured the web and all the Tomcat lists that I can find and still
> > cannot solve this error.  Everything works fine through port 8080 as
> > stand-alone, but when I try accessing Tomcat through Apache the page times
> > out with no output from the JSP.  Afterward my mod_jk.log file contains:
> >
> > [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 110
> > [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
> >
> > I compiled mod_jk.so myself.  I've added mod_jk.conf-auto to my httpd.conf
> > file.  I altered workers.properties to reflect my JAVA_HOME, TOMCAT_HOME
> and
> > file separator ("/").  I have _not_ added the connector for ajp13 to my
> > server.xml file.
> >
> > Here is my configuration:
> >
> > Mandrake Linux 8.0
> > Apache 1.3.19
> > Java 1.3.1 (from Sun)
> > Tomcat 3.2.3
> >
> > I've installed older versions of Tomcat on other configurations in the
> past
> > and did not have this much trouble.  I'm beginning to feel very
> discouraged.
> > Can anyone help?  Thanks.
> >
> > Kelly E. Grooms
> > kellygrooms@telocity.com
> >
-- 

Andrew Robson         
	
tel: (0141) 424 0607	
mobile: 07759 430234	
email: andrew@playaday.com


Re: Apache cannot connect to Tomcat

Posted by Jeff Kilbride <je...@kilbride.com>.
If you're using mod_jk, you have to add the connector to your server.xml
file. I'm not sure why you *haven't* done that. Apache and Tomcat won't be
able to communicate without it. So, I would suggest starting there.

--jeff

----- Original Message -----
From: "Kelly E. Grooms" <ke...@telocity.com>
To: <to...@jakarta.apache.org>
Sent: Saturday, July 28, 2001 2:50 PM
Subject: Apache cannot connect to Tomcat


> Hello,
>
> I've scoured the web and all the Tomcat lists that I can find and still
> cannot solve this error.  Everything works fine through port 8080 as
> stand-alone, but when I try accessing Tomcat through Apache the page times
> out with no output from the JSP.  Afterward my mod_jk.log file contains:
>
> [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 110
> [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
>
> I compiled mod_jk.so myself.  I've added mod_jk.conf-auto to my httpd.conf
> file.  I altered workers.properties to reflect my JAVA_HOME, TOMCAT_HOME
and
> file separator ("/").  I have _not_ added the connector for ajp13 to my
> server.xml file.
>
> Here is my configuration:
>
> Mandrake Linux 8.0
> Apache 1.3.19
> Java 1.3.1 (from Sun)
> Tomcat 3.2.3
>
> I've installed older versions of Tomcat on other configurations in the
past
> and did not have this much trouble.  I'm beginning to feel very
discouraged.
> Can anyone help?  Thanks.
>
> Kelly E. Grooms
> kellygrooms@telocity.com
>