5 Replies Latest reply on Sep 10, 2007 11:21 AM by berliita

    Exceptions while starting JBoss on Ubuntu 7.04 (Feisty Fawn)

    berliita

      I tried to run JBoss on a Ubuntu 7.04 (Feisty Fawn). The run was unsuccessful: error messages were printed on the screen. Here's part of the output that was printed on the screen by the startup script. Starting with the instruction i typed at the command line, and stopping just after the first error encountered, i've included all the intervening output. There were more errors down the output; i'd be happy to provide a longer excerpt.

      $ sudo ./run.sh =========================================================================
      
       JBoss Bootstrap Environment
      
       JBOSS_HOME: /usr/local/jboss-4.0.5.GA
      
       JAVA: /usr/lib/jvm/java-6-sun/bin/java
      
       JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
      
       CLASSPATH: /usr/local/jboss-4.0.5.GA/bin/run.jar:/usr/lib/jvm/java-6-sun/lib/tools.jar
      
      =========================================================================
      
      08:54:48,394 INFO [Server] Starting JBoss (MX MicroKernel)...
      08:54:48,395 INFO [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)
      08:54:48,397 INFO [Server] Home Dir: /usr/local/jboss-4.0.5.GA
      08:54:48,397 INFO [Server] Home URL: file:/usr/local/jboss-4.0.5.GA/
      08:54:48,398 INFO [Server] Patch URL: null
      08:54:48,423 INFO [Server] Server Name: default
      08:54:48,423 INFO [Server] Server Home Dir: /usr/local/jboss-4.0.5.GA/server/default
      08:54:48,423 INFO [Server] Server Home URL: file:/usr/local/jboss-4.0.5.GA/server/default/
      08:54:48,424 INFO [Server] Server Log Dir: /usr/local/jboss-4.0.5.GA/server/default/log
      08:54:48,424 INFO [Server] Server Temp Dir: /usr/local/jboss-4.0.5.GA/server/default/tmp
      08:54:48,424 INFO [Server] Root Deployment Filename: jboss-service.xml
      08:54:49,136 INFO [ServerInfo] Java version: 1.6.0,Sun Microsystems Inc.
      08:54:49,136 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.6.0-b105,Sun Microsystems Inc.
      08:54:49,136 INFO [ServerInfo] OS-System: Linux 2.6.20-16-generic,i386
      08:54:50,130 INFO [Server] Core system initialized
      08:54:59,098 INFO [WebService] Using RMI server codebase: http://ubuntu:8083/
      08:54:59,142 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
      08:55:04,089 INFO [SocketServerInvoker] Invoker started for locator: InvokerLocator [socket://127.0.1.1:3873/]
      08:55:13,554 INFO [ServiceEndpointManager] WebServices: jbossws-1.0.3.SP1 (date=200609291417)
      08:55:14,890 INFO [SnmpAgentService] SNMP agent going active
      08:55:15,673 INFO [InterceptorChainFactory] interceptor chain is:
      class org.jboss.cache.interceptors.CallInterceptor
      class org.jboss.cache.interceptors.PessimisticLockInterceptor
      class org.jboss.cache.interceptors.UnlockInterceptor
      class org.jboss.cache.interceptors.ReplicationInterceptor
      class org.jboss.cache.interceptors.TxInterceptor
      class org.jboss.cache.interceptors.CacheMgmtInterceptor
      08:55:16,088 ERROR [JChannel] exception: java.lang.Exception: exception caused by UDP.start(): java.net.SocketException: bad argument for IP_MULTICAST_IF: address not bound to any interface
      08:55:16,091 WARN [ServiceController] Problem starting service jboss.cache:service=TomcatClusteringCache
      ChannelException: java.lang.Exception: exception caused by UDP.start(): java.net.SocketException: bad argument for IP_MULTICAST_IF: address not bound to any interface
       at org.jgroups.JChannel.connect(JChannel.java:328)
       at org.jboss.cache.TreeCache.startService(TreeCache.java:1424)
       at org.jboss.cache.aop.PojoCache.startService(PojoCache.java:94)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
       at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
       at $Proxy0.start(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:417)
       at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy4.start(Unknown Source)
       at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
       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:597)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy8.deploy(Unknown Source)
       at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
       at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
       at $Proxy0.start(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:417)
       at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy4.start(Unknown Source)
       at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
       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:597)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy5.deploy(Unknown Source)
       at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
       at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
       at org.jboss.Main.boot(Main.java:200)
       at org.jboss.Main$1.run(Main.java:490)
       at java.lang.Thread.run(Thread.java:619)
      08:55:16,603 INFO [DefaultPartition] Initializing
      


        • 1. Re: Exceptions while starting JBoss on Ubuntu 7.04 (Feisty F
          peterj

          Here are the usual suspects:

          1) Try using JDK 1.5 instead of 1.6. 1.6 is not officially supported on AS 4.0.5.

          2) Double-check your /etc/hosts files that the entries are correct. If you are not sure, post yours.

          3) Check your firewall. My understanding is that Ubuntu is desktop-oriented, not server-oriented, and thus you need to do more configuration work to use it as a server.

          4) How did you install? Unzipping the binary zip download, or running the installer JAR? If the latter, try reinstalling but not selecting clustering (use a 'default' configuration rather than an 'all' configuration).

          • 2. Re: Exceptions while starting JBoss on Ubuntu 7.04 (Feisty F
            berliita

            Hi PeterJ,

            Thank you for answering my posting.

            I'll respond to each of the points you raised in order.

            1. I did try using JDK 1.5 . The installation process didn't fare better with this version than it did with JDK 1.6 .

            2. There's only one hosts file in my "/etc" directory. I'm not sure whether it's correct. I'll be thankful to you, if you help me figure this out. Following are the contents of this file.

            127.0.0.1 localhost
            127.0.1.1 ubuntu
            
            # The following lines are desirable for IPv6 capable hosts
            ::1 ip6-localhost ip6-loopback
            fe00::0 ip6-localnet
            ff00::0 ip6-mcastprefix
            ff02::1 ip6-allnodes
            ff02::2 ip6-allrouters
            ff02::3 ip6-allhosts
            


            3. I don't know how to check my firewall or what to check it for. I'll take this measure as a last resort, if neither of the following steps you suggested succeeds: fixing the hosts file and reinstalling JBoss with a different configuration.

            4. I installed JBoss by running the "jems-installer-1.2.0.GA" jar. You've suggested i should reinstall. Do i need to uninstall the existing installation before reinstalling, or do i simply run the installer, and it will overwrite the existing installation?

            • 3. Re: Exceptions while starting JBoss on Ubuntu 7.04 (Feisty F
              transvaal

              export this variable before you start jboss:

              JAVA_OPTS=-Djava.net.preferIPv4Stack=true


              • 4. Re: Exceptions while starting JBoss on Ubuntu 7.04 (Feisty F
                peterj

                trasnvall's suggestion is right-on, IPv6 tends to cause all sorts of weird issues.

                You /etc/hosts file should have two entries for the localhost line, something like:

                127.0.0.1 localhost;locahost.domainname

                I will double-check my /etc/hosts when I get to work to verify this entry.

                You do not have to uninstall your current installation, just install to a different directory.

                • 5. Re: Exceptions while starting JBoss on Ubuntu 7.04 (Feisty F
                  berliita

                  transvaal, that was a stroke of genius! I've followed your suggestion, and the startup proceeded smoothly. No exception whatsoever. Thanks so much.

                  Could you please tell how you came by this solution, and what exactly is the problem, that your solution fixes?

                  P.S.
                  PeterJ, thank you, too, for you helpful comments. :)