You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Bertrand <be...@gmail.com> on 2007/05/05 17:25:07 UTC

Connection refused when using Tomcat 6.0.10 with APR ...

I have a problem setting up the APR for use with a Tomcat 6.0.10
standalone server. Here is my environment:

OS: FreeBSD 6.2
Tomcat: Version 6.0.10 installed from the ports collection
Java: Diablo JDK 1.5.0 installed from the ports collection
APR: Version 1.2.7 installed from the ports collection

I have followed the instructions available from the Tomcat Web site
for the APR, Linux section:

http://tomcat.apache.org/tomcat-6.0-doc/apr.html

The libtcnative files are compiled ok and stored in /usr/local/apr/lib.

When I start Tomcat "as is", I get the usual warning about Tomcat
Native not being loaded and the server runs just fine on port 8180.
When I add -Djava.library.path=/usr/local/apr/lib on the command line,
the warning message disappears and I get the "Loaded Apache Tomcat
Native library 1.1.8" message instead. However, I then get a
"Connection refused" whenever I try to connect to 8180. There is no
error message in stderr.log and netstart confirms that a server is
listening on 8180.

Any ideas ? Am I missing something ? How can I debug that problem ?

Thanks for your time and help,

Bertrand Fontaine

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Connection refused when using Tomcat 6.0.10 with APR ...

Posted by Lakshmi Venkataraman <la...@foundrynet.com>.
I  posted a similar email asking abour Connection Refuesed question
under a different thread.
I have also summarised my findings.  Can you take a look?
The subject is  "Tomcat 5.5, IPv6, APR, HTTP and HTTPS"


--Thanks
Lakshmi

-----Original Message-----
From: Mladen Turk [mailto:mladen.turk@gmail.com] 
Sent: Saturday, May 05, 2007 11:33 AM
To: Tomcat Users List
Subject: Re: Connection refused when using Tomcat 6.0.10 with APR ...

Bertrand wrote:
> 
> Any ideas ? Am I missing something ? How can I debug that problem ?
>

APR on BSD was compiled with IPV6 support.
However IPV6 support on BSD (as well on Windows, because Microsoft
winsock is BSD sockets) do not support IPv4-mapped IPv6 address.

See:
http://issues.apache.org/bugzilla/show_bug.cgi?id=41973

So, the solution is to add the
address="127.0.0.1" or any other IPV4 address to the <Connector > (by
default its null and IPV6 is used)

Regards,
Mladen.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Connection refused when using Tomcat 6.0.10 with APR ...

Posted by Bertrand <be...@gmail.com>.
Thank you, Mladen. It works now. :-)

Bertrand

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Connection refused when using Tomcat 6.0.10 with APR ...

Posted by Mladen Turk <ml...@gmail.com>.
Bertrand wrote:
> 
> Any ideas ? Am I missing something ? How can I debug that problem ?
>

APR on BSD was compiled with IPV6 support.
However IPV6 support on BSD (as well on Windows,
because Microsoft winsock is BSD sockets) do not
support IPv4-mapped IPv6 address.

See:
http://issues.apache.org/bugzilla/show_bug.cgi?id=41973

So, the solution is to add the
address="127.0.0.1" or any other IPV4 address to the
<Connector > (by default its null and IPV6 is used)

Regards,
Mladen.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Connection refused when using Tomcat 6.0.10 with APR ...

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Bertrand [mailto:bertrandf@gmail.com] 
> Subject: Re: Connection refused when using Tomcat 6.0.10 with APR ...
> 
> 1.1.8 is the level of the Tomcat Native library compiled from
> the Tomcat 6.0.10 release

There is a 1.1.10 version of the wrapper available here:
http://archive.apache.org/dist/tomcat/tomcat-connectors/native/

Might be worth trying.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Connection refused when using Tomcat 6.0.10 with APR ...

Posted by Bertrand <be...@gmail.com>.
> It is true, however, that the Tomcat Web site doesn't mention which
> version of the APR is required.

Ooops, the Web site states APR 1.2+, so use of 1.2.7 shoud be ok.

Bertrand

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Connection refused when using Tomcat 6.0.10 with APR ...

Posted by Bertrand <be...@gmail.com>.
> > APR: Version 1.2.7 installed from the ports collection
> >
> > I get the "Loaded Apache Tomcat Native library 1.1.8" message
>
> There seems to be a discrepancy between the APR level you think you have
> (1.2.7) and the one actually found (1.1.8).
>
>  - Chuck

Thanks for your reply, Chuck. 1.1.8 is the level of the Tomcat Native
library compiled from the Tomcat 6.0.10 release, 1.2.7 the level of
the APR that library is using. There is no APR version 1.1.8 AFAIK. It
is true, however, that the Tomcat Web site doesn't mention which
version of the APR is required. It would be interesting to know which
versions of the APR are known to work with Tomcat 6.0.10.

Bertrand

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Connection refused when using Tomcat 6.0.10 with APR ...

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Bertrand [mailto:bertrandf@gmail.com] 
> Subject: Connection refused when using Tomcat 6.0.10 with APR ...
> 
> OS: FreeBSD 6.2
> Tomcat: Version 6.0.10 installed from the ports collection
> Java: Diablo JDK 1.5.0 installed from the ports collection
> APR: Version 1.2.7 installed from the ports collection
> 
> I get the "Loaded Apache Tomcat Native library 1.1.8" message

There seems to be a discrepancy between the APR level you think you have
(1.2.7) and the one actually found (1.1.8).

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org