You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2006/05/17 11:15:33 UTC

DO NOT REPLY [Bug 39596] New: - Connector@address does not work with APR-enhanced Tomcat

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39596>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

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

           Summary: Connector@address does not work with APR-enhanced Tomcat
           Product: Tomcat 5
           Version: 5.5.17
          Platform: HP
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: Connector:HTTP
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: olle@compound.se


I'm testing using the "tomcat-native"-component that ships with the Tomcat 
5.5.17 tar-distribution. The environment is Suse Enterprise 9, fairly up-to-
date with all the Suse updates. Libapr is libapr1-1.2.2-1.1.

When I'm trying to use a Connector listening on a specific IP ( <Connector 
address="192.168.3.5" port="80" /> ) I get a "Socket bind failed"-exception 
(see below). If I remove the "address"-attribute Tomcat starts fine. If I 
remove the APR-component the Tomcat starts fine (using the "address" Connector-
attribute that is).

ERROR main org.apache.coyote.http11.Http11AprProtocol - Error initializing 
endpoint
 java.lang.Exception: Socket bind failed: [22] Invalid argument
        at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:571)
        at org.apache.coyote.http11.Http11AprProtocol.init
(Http11AprProtocol.java:115)
        at org.apache.catalina.connector.Connector.initialize
(Connector.java:1016)
        at org.apache.catalina.core.StandardService.initialize
(StandardService.java:580)
        at org.apache.catalina.core.StandardServer.initialize
(StandardServer.java:791)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:503)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:523)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:266)
        at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:281)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.commons.daemon.support.DaemonLoader.load
(DaemonLoader.java:160)
ERROR main org.apache.catalina.startup.Catalina - Catalina.start
 LifecycleException:  Protocol handler initialization failed: 
java.lang.Exception: Socket bind failed: [22] Invalid argument
        at org.apache.catalina.connector.Connector.initialize
(Connector.java:1018)
        at org.apache.catalina.core.StandardService.initialize
(StandardService.java:580)
        at org.apache.catalina.core.StandardServer.initialize
(StandardServer.java:791)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:503)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:523)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:266)
        at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:281)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.commons.daemon.support.DaemonLoader.load
(DaemonLoader.java:160)
INFO main org.apache.catalina.startup.Catalina - Initialization processed in 
1057 ms
 INFO main org.apache.catalina.core.StandardService - Starting service Catalina

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


DO NOT REPLY [Bug 39596] - Connector@address does not work with APR-enhanced Tomcat

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39596>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

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





------- Additional Comments From olle@compound.se  2006-05-25 07:53 -------
Ok, message received.

My problem was that:
1) I do not know what SVN is?
2) I got the impression that I could get the 5.5.17 Connector working using the 
IPv4-adress expressed as an IPv6-adress.

/Olle

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


DO NOT REPLY [Bug 39596] - Connector@address does not work with APR-enhanced Tomcat

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39596>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

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





------- Additional Comments From mturk@apache.org  2006-05-17 12:14 -------
It doesn matter if you don't have IPv6 configured if the APR was
uild with IPv6 support.

Try address="::1" . It should bind to 127.0.0.1

Anyhow. This issue is closed, so don't use it for further discussion.
If you need more clarification use Tomcat Developers list.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


DO NOT REPLY [Bug 39596] - Connector@address does not work with APR-enhanced Tomcat

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39596>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

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


olle@compound.se changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |




------- Additional Comments From olle@compound.se  2006-05-25 07:12 -------
I submitted this errand to users@tomcat.apache.org, but now after two weeks 
nobody have commented on it. Seems like a dead end.

Regarding your tip I tried using address = "::1" which works fine:

INFO main org.apache.coyote.http11.Http11AprProtocol - Initializing Coyote 
HTTP/1.1 on http-0%3A0%3A0%3A0%3A0%3A0%3A0%3A1-80
 INFO main org.apache.catalina.startup.Catalina - Initialization processed in 
1043 ms
 INFO main org.apache.catalina.core.StandardService - Starting service Catalina
 INFO main org.apache.catalina.core.StandardEngine - Starting Servlet Engine: 
Apache Tomcat/5.5.17
 INFO main org.apache.catalina.cluster.tcp.SimpleTcpCluster - Cluster is about 
to start

But when I try to use address = "::127.0.0.1" (which I believe should give the 
same result) this does not work:

ERROR main org.apache.coyote.http11.Http11AprProtocol - Error initializing 
endpoint
 java.lang.Exception: Socket bind failed: [99] Cannot assign requested address
        at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:571)
        at org.apache.coyote.http11.Http11AprProtocol.init
(Http11AprProtocol.java:115)
        at org.apache.catalina.connector.Connector.initialize
(Connector.java:1016)
        at org.apache.catalina.core.StandardService.initialize
(StandardService.java:580)
        at org.apache.catalina.core.StandardServer.initialize
(StandardServer.java:791)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:503)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:523)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)

Since I cannot use the APR enhancement with a Connector listening to a specific 
IPv4-address, and nobody seems to be able to tell me how it should be done to 
work properly, it looks to me like a bug (or lacking feature) in APR/Connector 
that should be corrected.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


DO NOT REPLY [Bug 39596] - Connector@address does not work with APR-enhanced Tomcat

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39596>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

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





------- Additional Comments From olle@compound.se  2006-05-17 11:48 -------
I'm sorry but we have not digged in on IPV6 and have nothing configured for IPV6
on our servers. I do not know what you want me to do to "use the IPV6 address of
the 192.168.3.5", but I suspect it won't work as we haven't implemented IPV6.

Please give me some more hints on how to solve the problem.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


DO NOT REPLY [Bug 39596] - Connector@address does not work with APR-enhanced Tomcat

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39596>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

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


mturk@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From mturk@apache.org  2006-05-25 07:36 -------
Hi,

Please do not reopen this bug.
Like said it has been fixed in the SVN,
and the next Tomcat version (5.5.18) will
come with the bugfix included.

So what part you do not understand?

Regards.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


DO NOT REPLY [Bug 39596] - Connector@address does not work with APR-enhanced Tomcat

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39596>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

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


mturk@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From mturk@apache.org  2006-05-17 09:25 -------
This is already fixed in the SVN.
The problem is with IPV4/IPV6 address.

As a helper use the IPV6 address of the 192.168.3.5

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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