[
https://issues.jboss.org/browse/AS7-3752?page=com.atlassian.jira.plugin.s...
]
Richard Achmatowicz updated AS7-3752:
-------------------------------------
Comment: was deleted
(was: There seems to be a workaround: if you specify the zoneid by appending %zoneid to
the end of the link-local address, the issue no longer appears. For example,
{noformat}
[nrla@lenovo ~]$ /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr F0:DE:F1:40:75:B8
inet addr:192.168.0.103 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: 1:0:0:1::10/64 Scope:Global
inet6 addr: fe80::f2de:f1ff:fe40:75b8/64 Scope:Link
inet6 addr: 3ffe:ffff:100:f101::1/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:508350 errors:1 dropped:0 overruns:0 frame:1
TX packets:422296 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:626627542 (597.5 MiB) TX bytes:53885721 (51.3 MiB)
Interrupt:20 Memory:f2600000-f2620000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:69676 errors:0 dropped:0 overruns:0 frame:0
TX packets:69676 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:43021124 (41.0 MiB) TX bytes:43021124 (41.0 MiB)
[nrla@lenovo ~]$ ip addr show eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen
1000
link/ether f0:de:f1:40:75:b8 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.103/24 brd 192.168.0.255 scope global eth0
inet6 1:0:0:1::10/64 scope global
valid_lft forever preferred_lft forever
inet6 3ffe:ffff:100:f101::1/64 scope global
valid_lft forever preferred_lft forever
inet6 fe80::f2de:f1ff:fe40:75b8/64 scope link
valid_lft forever preferred_lft forever
{noformat}
Here, 2 is the zoneid of the interface eth0. We then start the AS7 using:
{noformat}
[nrla@lenovo bin]$ ./standalone.sh -Djboss.bind.address=fe80::f2de:f1ff:fe40:75b8%2
-Djboss.bind.address.management=fe80::f2de:f1ff:fe40:75b8%2
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /home/nrla/projects/jboss-as/build/target/jboss-as-7.1.0.Final-SNAPSHOT
JAVA: /opt/jdk-1.6.0_26/bin/java
JAVA_OPTS: -server -XX:+UseCompressedOops -XX:+TieredCompilation -Xms64m -Xmx512m
-XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=false -Dorg.jboss.resolver.warning=true
-Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
-Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true
-Djboss.server.default.config=standalone.xml
=========================================================================
16:15:05,135 INFO [org.jboss.modules] JBoss Modules version 1.1.0.GA
16:15:05,291 INFO [org.jboss.msc] JBoss MSC version 1.0.2.GA
16:15:05,335 INFO [org.jboss.as] JBAS015899: JBoss AS 7.1.0.Final-SNAPSHOT "Flux
Capacitor" starting
16:15:06,160 INFO [org.xnio] XNIO Version 3.0.0.GA
16:15:06,178 INFO [org.xnio.nio] XNIO NIO Implementation Version 3.0.0.GA
16:15:06,179 INFO [org.jboss.as.server] JBAS015888: Creating http management service
using socket-binding (management-http)
16:15:06,201 INFO [org.jboss.remoting] JBoss Remoting version 3.2.0.GA
16:15:06,250 INFO [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
16:15:06,256 INFO [org.jboss.as.configadmin] (ServerService Thread Pool -- 26)
JBAS016200: Activating ConfigAdmin Subsystem
16:15:06,274 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31)
JBAS010280: Activating Infinispan subsystem.
16:15:06,283 INFO [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940:
Activating OSGi Subsystem
16:15:06,283 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800:
Activating Naming Subsystem
16:15:06,308 INFO [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101:
Activating Security Subsystem
16:15:06,336 INFO [org.jboss.as.security] (MSC service thread 1-7) JBAS013100: Current
PicketBox version=4.0.6.final
16:15:06,367 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 48)
JBAS015537: Activating WebServices Extension
16:15:06,376 INFO [org.jboss.as.connector] (MSC service thread 1-3) JBAS010408: Starting
JCA Subsystem (JBoss IronJacamar 1.0.7.Final)
16:15:06,379 INFO [org.jboss.as.naming] (MSC service thread 1-8) JBAS011802: Starting
Naming Service
16:15:06,391 INFO [org.jboss.as.mail.extension] (MSC service thread 1-8) JBAS015400:
Bound mail session [java:jboss/mail/Default]
16:15:06,425 INFO [org.jboss.as.remoting] (MSC service thread 1-5) JBAS017100: Listening
on /fe80:0:0:0:f2de:f1ff:fe40:75b8%2:4447
16:15:06,565 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread
Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
16:15:06,649 INFO [org.jboss.ws.common.management.AbstractServerConfig] (MSC service
thread 1-2) JBoss Web Services - Stack CXF Server 4.0.1.GA
16:15:06,796 INFO [org.apache.coyote.http11.Http11AprProtocol] (MSC service thread 1-7)
Starting Coyote HTTP/1.1 on http--fe80%3A0%3A0%3A0%3Af2de%3Af1ff%3Afe40%3A75b8%252-8080
16:15:07,064 INFO [org.jboss.as.remoting] (MSC service thread 1-4) JBAS017100: Listening
on /fe80:0:0:0:f2de:f1ff:fe40:75b8%2:9999
16:15:07,089 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-7)
JBAS015012: Started FileSystemDeploymentService for directory
/home/nrla/projects/jboss-as/build/target/jboss-as-7.1.0.Final-SNAPSHOT/standalone/deployments
16:15:07,223 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread
1-7) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
16:15:07,239 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS
7.1.0.Final-SNAPSHOT "Flux Capacitor" started in 2301ms - Started 134 of 203
services (68 services are passive or on-demand)
{noformat}
and the socket binding takes place as required.
)
Socket bind for Http11Apr fails on startup when using link-local IPv6
address
-----------------------------------------------------------------------------
Key: AS7-3752
URL:
https://issues.jboss.org/browse/AS7-3752
Project: Application Server 7
Issue Type: Bug
Components: Web
Affects Versions: 7.1.0.Final
Reporter: Richard Achmatowicz
Assignee: Remy Maucherat
Start AS 7.1.0.Final with a link local IPv6 address:
{noformat}
[nrla@lenovo ~]$ /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr F0:DE:F1:40:75:B8
inet addr:192.168.0.103 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::f2de:f1ff:fe40:75b8/64 Scope:Link
inet6 addr: 3ffe:ffff:100:f101::1/64 Scope:Global
[nrla@lenovo ~]$ ./standalone.sh -Djboss.bind.address=fe80::f2de:f1ff:fe40:75b8
-Djboss.bind.address.management=fe80::f2de:f1ff:fe40:75b8
{noformat}
and the following exception occurs:
{noformat}
11:01:28,909 INFO [org.jboss.as.remoting] (MSC service thread 1-7) JBAS017100: Listening
on /fe80:0:0:0:f2de:f1ff:fe40:75b8:4447
11:01:29,013 INFO [org.jboss.ws.common.management.AbstractServerConfig] (MSC service
thread 1-1) JBoss Web Services - Stack CXF Server 4.0.1.GA
11:01:29,185 ERROR [org.apache.coyote.http11.Http11AprProtocol] (MSC service thread 1-6)
Error initializing endpoint: java.lang.Exception: Socket bind failed: [22] Invalid
argument
at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:578)
[jbossweb-7.0.10.Final.jar:]
at org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:121)
[jbossweb-7.0.10.Final.jar:]
at org.apache.catalina.connector.Connector.init(Connector.java:983)
[jbossweb-7.0.10.Final.jar:]
at org.jboss.as.web.WebConnectorService.start(WebConnectorService.java:267)
[jboss-as-web-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
[jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
[jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[rt.jar:1.6.0_26]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[rt.jar:1.6.0_26]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_26]
11:01:29,254 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC00001: Failed
to start service jboss.web.connector.http: org.jboss.msc.service.StartException in service
jboss.web.connector.http: JBAS018007: Error starting web connector
at org.jboss.as.web.WebConnectorService.start(WebConnectorService.java:271)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
[jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
[jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[rt.jar:1.6.0_26]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[rt.jar:1.6.0_26]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_26]
Caused by: LifecycleException: Protocol handler initialization failed:
java.lang.Exception: Socket bind failed: [22] Invalid argument
at org.apache.catalina.connector.Connector.init(Connector.java:985)
at org.jboss.as.web.WebConnectorService.start(WebConnectorService.java:267)
... 5 more
11:01:29,442 INFO [org.jboss.as.remoting] (MSC service thread 1-7) JBAS017100: Listening
on /fe80:0:0:0:f2de:f1ff:fe40:75b8:9999
11:01:29,462 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-3)
JBAS015012: Started FileSystemDeploymentService for directory
/home/nrla/projects/jboss-as/build/target/jboss-as-7.1.0.Final-SNAPSHOT/standalone/deployments
11:01:29,615 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread
1-8) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
11:01:29,626 INFO [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service
status report
JBAS014777: Services which failed to start: service jboss.web.connector.http:
org.jboss.msc.service.StartException in service jboss.web.connector.http: JBAS018007:
Error starting web connector
11:01:29,649 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: JBoss AS
7.1.0.Final-SNAPSHOT "Flux Capacitor" started (with errors) in 2317ms - Started
133 of 203 services (1 services failed or missing dependencies, 68 services are passive or
on-demand)
{noformat}
I had a look around and found this related (in fact the same) bug report:
https://issues.apache.org/bugzilla/show_bug.cgi?id=43327
Looks like it may have been fixed for IPv6 addresses other than link-local.
Link-local addresses are used often for running on a local network segment.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira