2 Replies Latest reply on Nov 18, 2005 9:51 PM by wang diangang

    Starting JBoss 4.0.1 Cluster in IBM AIX 5.2

    Wilson Liu Newbie

      Dear All,

      I am trying to setup a jboss cluster in AIX 5.2 with JBoss 4.0.1. When I try to start the server instance by "run.sh -c all", the following exception is thrown (copied from server.log):

      2005-01-06 17:15:33,979 WARN [org.jboss.system.ServiceController] Problem starting service jboss:service=DefaultPartition
      ChannelException: java.lang.Exception: exception caused by UDP.start(): java.net.SocketException: The socket name is not available on this system.
       at org.jgroups.JChannel.connect(JChannel.java:328)
       at org.jboss.ha.framework.server.ClusterPartition.startService(ClusterPartition.java:297)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
       at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
       at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java(Inlined Compiled Code))
       at org.jboss.mx.server.Invocation.invoke(Invocation.java(Compiled Code))
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java(Compiled Code))
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
       at $Proxy0.start(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:416)
       :
       :
      


      I haven't changed any configuration in the cluster-service.xml. The JVM used is IBM JRE 1.4.2. Please help.

      Thanks alot.

      Best Wishes,
      Wilson Liu



        • 1. Re: Starting JBoss 4.0.1 Cluster in IBM AIX 5.2
          Wilson Liu Newbie

          I finally solved it by adding "-D java.net.preferIPv4Stack=true" to the $JAVA_OPTS in the run.conf

          • 2. Re: Starting JBoss 4.0.1 Cluster in IBM AIX 5.2
            wang diangang Newbie

            Dear all?
            I want someone help me ,why this errors? Thanks

            $ run.sh
            =========================================================================

            JBoss Bootstrap Environment

            JBOSS_HOME: /home/java/Jboss/jboss-4.0.2

            JAVA: /usr/java5_64/bin/java

            JAVA_OPTS: -server -Xms128m -Xmx128m -Dprogram.name=run.sh

            CLASSPATH: /home/java/Jboss/jboss-4.0.2/bin/run.jar:/usr/java5_64/lib/tools.ja
            r

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

            JVMJ9VM007E Command-line option unrecognised: -server
            Could not create the Java virtual machine.

            Usage: java [-options] class [args...]
            (to execute a class)
            or java [-jar] [-options] jarfile [args...]
            (to execute a jar file)

            where options include:
            -cp -classpath <directories and zip/jar files separated by :>
            set search path for application classes and resources
            -D=
            set a system property
            -verbose[:class|gc|jni]
            enable verbose output
            -version print product version
            -version:
            require the specified version to run
            -showversion print product version and continue
            -jre-restrict-search | -no-jre-restrict-search
            include/exclude user private JREs in the version search
            -agentlib:[=]
            load native agent library , e.g. -agentlib:hprof
            see also, -agentlib:jdwp=help and -agentlib:hprof=help
            -agentpath:[=]
            load native agent library by full pathname
            -javaagent:[=]
            load Java programming language agent, see java.lang.instrument
            -? -help print this help message
            -X print help on non-standard options
            -assert print help on assert options

            $