Apache cannot connect to Tomcat in httpd.conf

2005-06-05 Thread Andreas Bauer
Hello!

Can somebody help me, please?

My OS is Suse 9.2 pro. Apache and Tomcat work for me.
But If I start Apache with normal httpd.conf, Apache works for me.
If I paste my lines for Apache-Tomcat Connection, Apache doesn't
work for me, only Tomcat. It must be something wrong with this lines, but
the same lines in httpd.conf

in a windows XP Tomcat-Apache configuration works for me:

The pasted lines in httpd.conf are:

LoadModule jk2_module modules/mod_jk2.so

JkUriSet worker ajp13:localhost:8009


JkUriSet worker ajp13:localhost:8009


The Tomcat Connector Modul mod_jk2.so is in the rigth directory
and Apache doesn't send an errormessage,, because of the module, when I
start Apache from the commandoline. If I took another Tomcatconnectormodul,
I got errormessage.

With the old one, not.

My jk2.properties is:
TOMCAT_DIR/conf/jk2.properties, adding the following line:
channelSocket.port=8009

Configuration of server.xml is:
server.xml configuration from Tomcat/conf directory:
look for the "non-SSL Coyote HTTP/1.1 Connector". This is
the standard Tomcat-only connector and comment it out since we'll be using
Apache for handling HTTP requests. In the same file, look for a commented
line that says "". Right after
that line, add the following Context path:


Workers2.properties is:
APACHE_DIR/conf directory/workers2.properties:
[shm]
  file=APACHE_DIR/logs/shm.file
  size=1048576
# socket channel
  [channel.socket:localhost:8009]
  port=8009
  host=127.0.0.1

# worker for the connector
  [ajp13:localhost:8009]
  channel=channel.socket:localhost:8009

The working script is from

http://www.dynamicobjects.com/d2r/archives/002574.html

The same T-A Connector Configuration with a windows Connector Module works
for me in a windows system.

Best regards and many thanks

Andreas

 



RE: Apache cannot connect to Tomcat

2001-07-29 Thread Kelly E. Grooms

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
[EMAIL PROTECTED]

-Original Message-
From: Jeff Kilbride [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 29, 2001 3:23 PM
To: [EMAIL PROTECTED]
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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > 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
> > > [EMAIL PROTECTED]
> > >
> --
>
> Andrew Robson
>
> tel: (0141) 424 0607
> mobile: 07759 430234
> email: [EMAIL PROTECTED]
>





Re: Apache cannot connect to Tomcat

2001-07-29 Thread Jeff Kilbride

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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > 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
> > > [EMAIL PROTECTED]
> > >
> --
>
> Andrew Robson
>
> tel: (0141) 424 0607
> mobile: 07759 430234
> email: [EMAIL PROTECTED]
>




Re: Apache cannot connect to Tomcat

2001-07-29 Thread Andrew Robson

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" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> 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
> > [EMAIL PROTECTED]
> >
-- 

Andrew Robson 

tel: (0141) 424 0607
mobile: 07759 430234
email: [EMAIL PROTECTED]




Re: Apache cannot connect to Tomcat

2001-07-29 Thread Jeff Kilbride

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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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
> [EMAIL PROTECTED]
>




Apache cannot connect to Tomcat

2001-07-28 Thread Kelly E. Grooms

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
[EMAIL PROTECTED]