You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Thomas E. Dukes" <ed...@alltel.net> on 2004/09/13 17:26:57 UTC

Tomcat Problems

Hello,

I am running Fedora Core 2 with the stock version of tomcat, 4.1.27-13.  I
know this is not the latest version but I thought I'd start with what comes
with this distribution.

I have followed the howto at jakarta.apache.org.

First, if I go to http://localhost/examples, I can see the examples and run
them with no problems.

The problem is http://localhost:8080.  According to the howto, I should see
a tomcat welcome message.  All I get is connection refused.  The excerpt
from the apahace error log is:

[Mon Sep 13 10:26:27 2004] [error] channelSocket.open() connect failed
localhost:8019 111 Connection refused 
[Mon Sep 13 10:26:27 2004] [error] ajp13.connect() failed
ajp13:localhost:8019
[Mon Sep 13 10:26:27 2004] [error] ajp13.service() failed to connect
endpoint errno=111 Connection refused
[Mon Sep 13 10:26:27 2004] [error] ajp13.service() Error  forwarding
ajp13:localhost:8019 1 1
[Mon Sep 13 10:26:27 2004] [notice] ajp13.done() close endpoint
ajp13:localhost:8019 error_state 1
[Mon Sep 13 10:26:27 2004] [error] lb.service() worker failed 120000 for
ajp13:localhost:8019
[Mon Sep 13 10:26:28 2004] [error] channelUn.connect() connect failed 2 No
such file or directory
[Mon Sep 13 10:26:28 2004] [error] ajp13.connect() failed
ajp13:/opt/33/work/jk2.socket
[Mon Sep 13 10:26:28 2004] [error] ajp13.service() failed to connect
endpoint errno=2 No such file or directory
[Mon Sep 13 10:26:28 2004] [error] ajp13.service() Error  forwarding
ajp13:/opt/33/work/jk2.socket 1 1
[Mon Sep 13 10:26:28 2004] [notice] channelUn.close(): close unix socket -1 
[Mon Sep 13 10:26:28 2004] [notice] ajp13.done() close endpoint
ajp13:/opt/33/work/jk2.socket error_state 1
[Mon Sep 13 10:26:28 2004] [error] lb.service() worker failed 120000 for
ajp13:/opt/33/work/jk2.socket
[Mon Sep 13 10:26:28 2004] [error] channelSocket.open() connect failed
localhost:8019 111 Connection refused 
[Mon Sep 13 10:26:28 2004] [error] ajp13.connect() failed
ajp13:localhost:8019
[Mon Sep 13 10:26:28 2004] [error] ajp13.service() failed to connect
endpoint errno=111 Connection refused
[Mon Sep 13 10:26:28 2004] [error] ajp13.service() Error  forwarding
ajp13:localhost:8019 1 1
[Mon Sep 13 10:26:28 2004] [notice] ajp13.done() close endpoint
ajp13:localhost:8019 error_state 1
[Mon Sep 13 10:26:28 2004] [error] lb.service() worker failed 120000 for
ajp13:localhost:8019
[Mon Sep 13 10:26:28 2004] [error] channelUn.connect() connect failed 2 No
such file or directory
[Mon Sep 13 10:26:28 2004] [error] ajp13.connect() failed
ajp13:/opt/33/work/jk2.socket
[Mon Sep 13 10:26:28 2004] [error] ajp13.service() failed to connect
endpoint errno=2 No such file or directory
[Mon Sep 13 10:26:28 2004] [error] ajp13.service() Error  forwarding
ajp13:/opt/33/work/jk2.socket 1 1
[Mon Sep 13 10:26:28 2004] [notice] channelUn.close(): close unix socket -1 
[Mon Sep 13 10:26:28 2004] [notice] ajp13.done() close endpoint
ajp13:/opt/33/work/jk2.socket error_state 1
[Mon Sep 13 10:26:28 2004] [error] lb.service() worker failed 120000 for
ajp13:/opt/33/work/jk2.socket

The first thing I noticed is the ajp13:/opt/33/work/jk2.socket.  I don't
have this directory or file, anywhere.  I'm not sure if I missed installing
an rpm or there is a incorrect config file that cam with this distribution
somewhere pointing to this.  

I have searched google and the archive with no success.  Any help would be
appreciated.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: Tomcat Problems

Posted by "Thomas E. Dukes" <ed...@alltel.net>.
> -----Original Message-----
> From: RJ [mailto:rj@commonmetric.com] 
> Sent: Monday, September 13, 2004 12:07 PM
> To: Tomcat Users List
> Subject: Re: Tomcat Problems
> 
> One thing that I've noticed with some installs of Fedora is 
> that out of the box the iptables firewall gets setup in a 
> weird way that rejects a lot of connections (even if it's 
> supposedly allowing the ports you want to go thru).  Flushing 
> the rules it creates, and putting the ones in that I want 
> fixes the problem.
> 
> rj
> 

Thanks RJ!

Got it working.  It wasn't iptables.  The problem was it was commented out
in server.xml :-(

Sorry, but you put me on the right track.

Also, I don't know if you can answer this one or not but I have 3 virtual
hosts running and I'd rather put java apps somewhere in the home directories
for each virtual host instead of lumping them all in the default location.

I saw in the jakarta virtual hosting howto that the appBase can be changed.
If I put them in the document root of the virtual host will this cause any
problems?

Thanks!!


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Tomcat Problems

Posted by RJ <rj...@commonmetric.com>.
One thing that I've noticed with some installs of
Fedora is that out of the box the iptables firewall
gets setup in a weird way that rejects a lot of
connections (even if it's supposedly allowing the
ports you want to go thru).  Flushing the rules it
creates, and putting the ones in that I want fixes
the problem.

rj

At 11:26 AM 9/13/2004, Thomas E. Dukes wrote:
>Hello,
>
>I am running Fedora Core 2 with the stock version of tomcat, 4.1.27-13.  I
>know this is not the latest version but I thought I'd start with what comes
>with this distribution.
>
>I have followed the howto at jakarta.apache.org.
>
>First, if I go to http://localhost/examples, I can see the examples and run
>them with no problems.
>
>The problem is http://localhost:8080.  According to the howto, I should see
>a tomcat welcome message.  All I get is connection refused.  The excerpt
>from the apahace error log is:
>
>[Mon Sep 13 10:26:27 2004] [error] channelSocket.open() connect failed
>localhost:8019 111 Connection refused
>[Mon Sep 13 10:26:27 2004] [error] ajp13.connect() failed
>ajp13:localhost:8019
>[Mon Sep 13 10:26:27 2004] [error] ajp13.service() failed to connect
>endpoint errno=111 Connection refused
>[Mon Sep 13 10:26:27 2004] [error] ajp13.service() Error  forwarding
>ajp13:localhost:8019 1 1
>[Mon Sep 13 10:26:27 2004] [notice] ajp13.done() close endpoint
>ajp13:localhost:8019 error_state 1
>[Mon Sep 13 10:26:27 2004] [error] lb.service() worker failed 120000 for
>ajp13:localhost:8019
>[Mon Sep 13 10:26:28 2004] [error] channelUn.connect() connect failed 2 No
>such file or directory
>[Mon Sep 13 10:26:28 2004] [error] ajp13.connect() failed
>ajp13:/opt/33/work/jk2.socket
>[Mon Sep 13 10:26:28 2004] [error] ajp13.service() failed to connect
>endpoint errno=2 No such file or directory
>[Mon Sep 13 10:26:28 2004] [error] ajp13.service() Error  forwarding
>ajp13:/opt/33/work/jk2.socket 1 1
>[Mon Sep 13 10:26:28 2004] [notice] channelUn.close(): close unix socket -1
>[Mon Sep 13 10:26:28 2004] [notice] ajp13.done() close endpoint
>ajp13:/opt/33/work/jk2.socket error_state 1
>[Mon Sep 13 10:26:28 2004] [error] lb.service() worker failed 120000 for
>ajp13:/opt/33/work/jk2.socket
>[Mon Sep 13 10:26:28 2004] [error] channelSocket.open() connect failed
>localhost:8019 111 Connection refused
>[Mon Sep 13 10:26:28 2004] [error] ajp13.connect() failed
>ajp13:localhost:8019
>[Mon Sep 13 10:26:28 2004] [error] ajp13.service() failed to connect
>endpoint errno=111 Connection refused
>[Mon Sep 13 10:26:28 2004] [error] ajp13.service() Error  forwarding
>ajp13:localhost:8019 1 1
>[Mon Sep 13 10:26:28 2004] [notice] ajp13.done() close endpoint
>ajp13:localhost:8019 error_state 1
>[Mon Sep 13 10:26:28 2004] [error] lb.service() worker failed 120000 for
>ajp13:localhost:8019
>[Mon Sep 13 10:26:28 2004] [error] channelUn.connect() connect failed 2 No
>such file or directory
>[Mon Sep 13 10:26:28 2004] [error] ajp13.connect() failed
>ajp13:/opt/33/work/jk2.socket
>[Mon Sep 13 10:26:28 2004] [error] ajp13.service() failed to connect
>endpoint errno=2 No such file or directory
>[Mon Sep 13 10:26:28 2004] [error] ajp13.service() Error  forwarding
>ajp13:/opt/33/work/jk2.socket 1 1
>[Mon Sep 13 10:26:28 2004] [notice] channelUn.close(): close unix socket -1
>[Mon Sep 13 10:26:28 2004] [notice] ajp13.done() close endpoint
>ajp13:/opt/33/work/jk2.socket error_state 1
>[Mon Sep 13 10:26:28 2004] [error] lb.service() worker failed 120000 for
>ajp13:/opt/33/work/jk2.socket
>
>The first thing I noticed is the ajp13:/opt/33/work/jk2.socket.  I don't
>have this directory or file, anywhere.  I'm not sure if I missed installing
>an rpm or there is a incorrect config file that cam with this distribution
>somewhere pointing to this.
>
>I have searched google and the archive with no success.  Any help would be
>appreciated.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org