2 Replies Latest reply on Jun 24, 2009 11:54 AM by Bill Levering

    JBoss 5.0.x + Java 1.5 + OS X Leopard = "Address family not

    Bill Levering Newbie

      I'm trying to get JBoss 5.0.x + Java 1.5 running on OS X 10.5.7.

      I have successfully installed JBoss 5.0.0 + Java 1.5 on several CentOS 5.3 boxes, but am unable to get around (what appears to be) an IPV6 issue on OS X. (... edited complaint ...)

      I've searched all over, and it appears that I'm the only one with this issue!?

      I've done the following:
      - removed all IPV6 entries from /etc/hosts.
      - disabled IPV6 in all my network configurations (Parallels, wired, airport)
      but 'netstat -rn' still shows ipv6 entries
      - set run.config to:
      JAVA_OPTS="-Xms512m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warnin
      g=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3
      600000 -Djava.net.preferIPv4Stack=true"

      What suggestions do you have?

      Bill

      $ sudo /usr/local/bin/jboss-5.0.0.GA/bin/run.sh

      =========================================================================

      JBoss Bootstrap Environment

      JBOSS_HOME: /usr/local/jboss-5.0.0.GA

      JAVA: java

      JAVA_OPTS: -Dprogram.name=run.sh -Xms512m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true

      CLASSPATH: /usr/local/jboss-5.0.0.GA/bin/run.jar

      =========================================================================

      14:19:55,087 INFO [ServerImpl] Starting JBoss (Microcontainer)...
      14:19:55,088 INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812041714)
      14:19:55,088 INFO [ServerImpl] Bootstrap URL: null
      14:19:55,088 INFO [ServerImpl] Home Dir: /usr/local/jboss-5.0.0.GA
      14:19:55,089 INFO [ServerImpl] Home URL: file:/usr/local/jboss-5.0.0.GA/
      ....
      14:20:13,868 INFO [TransactionManagerService] Recovery manager configured
      14:20:13,868 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
      14:20:13,886 INFO [TransactionManagerService] Starting transaction recovery manager
      14:20:14,302 ERROR [Http11AprProtocol] Error initializing endpoint
      java.lang.Exception: Socket bind failed: [47] Address family not supported by protocol family
      at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:610)
      at org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:107)
      at org.apache.catalina.connector.Connector.initialize(Connector.java:1029)
      at org.apache.catalina.core.StandardService.initialize(StandardService.java:683)
      at org.apache.catalina.core.StandardService.init(StandardService.java:695)
      at org.apache.catalina.core.StandardService.start(StandardService.java:510)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:736)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:572)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      ....
      at org.jboss.Main$1.run(Main.java:547)
      at java.lang.Thread.run(Thread.java:613)
      14:20:14,307 INFO [StandardService] Starting service jboss.web
      14:20:14,309 INFO [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.1.GA
      14:20:14,362 INFO [Catalina] Server startup in 119 ms
      ....
      14:20:16,910 INFO [TomcatDeployment] deploy, ctxPath=/, vfsUrl=ROOT.war
      14:20:16,964 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console, vfsUrl=jmx-console.war
      14:20:17,032 ERROR [Http11AprProtocol] Error starting endpoint
      java.lang.Exception: Socket bind failed: [47] Address family not supported by protocol family
      at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:610)
      at org.apache.tomcat.util.net.AprEndpoint.start(AprEndpoint.java:694)
      at org.apache.coyote.http11.Http11AprProtocol.start(Http11AprProtocol.java:137)
      at org.apache.catalina.connector.Connector.start(Connector.java:1102)
      at org.jboss.web.tomcat.service.deployers.TomcatService.startConnectors(TomcatService.java:629)
      at org.jboss.web.tomcat.service.deployers.TomcatService.handleNotification(TomcatService.java:670)
      at sun.reflect.GeneratedMethodAccessor205.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:153)
      at $Proxy85.handleNotification(Unknown Source)
      at javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:221)
      at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:184)
      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:425)
      at org.jboss.Main.boot(Main.java:209)
      at org.jboss.Main$1.run(Main.java:547)
      at java.lang.Thread.run(Thread.java:613)
      14:20:17,032 WARN [TomcatService] Failed to startConnectors
      LifecycleException: service.getName(): "jboss.web"; Protocol handler start failed: java.lang.Exception: Socket bind failed: [47] Address family not supported by protocol family
      at org.apache.catalina.connector.Connector.start(Connector.java:1109)
      at org.jboss.web.tomcat.service.deployers.TomcatService.startConnectors(TomcatService.java:629)
      at org.jboss.web.tomcat.service.deployers.TomcatService.handleNotification(TomcatService.java:670)
      at sun.reflect.GeneratedMethodAccessor205.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:153)
      at $Proxy85.handleNotification(Unknown Source)
      at javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:221)
      at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:184)
      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:425)
      at org.jboss.Main.boot(Main.java:209)
      at org.jboss.Main$1.run(Main.java:547)
      at java.lang.Thread.run(Thread.java:613)
      14:20:17,032 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812041714)] Started in 21s:935ms