2 Replies Latest reply on Aug 28, 2008 2:08 AM by asiandub

    exception after out-of-the-box deploy

    asiandub

      Hello there,

      probably something obvious I'm missing, but I'm kind of stuck and as such thankful for any help.

      I'm trying to run an out-of-the-box JBoss 4.2.3.GA on my freshly installed linux system (ubuntu 8.04). Having set JAVA_HOME to java-6-sun, I get the following exception after starting bin/run.sh

      I read something about this maybe an Java 5 issue, but I dont see many places where i might have misconfigured my java.

      I have another system up, same Java-Version, same environment configuration (at least as far as i can say... ;-) ), and it runs like a charme...

      many thanks for any help,
      jan

      jan@rapanui:/datacommon/java/jboss-4.2.3.GA/bin$ ./run.sh
      =========================================================================
      
       JBoss Bootstrap Environment
      
       JBOSS_HOME: /datacommon/java/jboss-4.2.3.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 -Djava.net.preferIPv4Stack=true
      
       CLASSPATH: /datacommon/java/jboss-4.2.3.GA/bin/run.jar:/usr/lib/jvm/java-6-sun/lib/tools.jar
      
      =========================================================================
      
      23:01:30,461 INFO [Server] Starting JBoss (MX MicroKernel)...
      23:01:30,473 INFO [Server] Release ID: JBoss [Trinity] 4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)
      23:01:30,474 INFO [Server] Home Dir: /datacommon/java/jboss-4.2.3.GA
      23:01:30,474 INFO [Server] Home URL: file:/datacommon/java/jboss-4.2.3.GA/
      23:01:30,474 INFO [Server] Patch URL: null
      23:01:30,474 INFO [Server] Server Name: default
      23:01:30,475 INFO [Server] Server Home Dir: /datacommon/java/jboss-4.2.3.GA/server/default
      23:01:30,475 INFO [Server] Server Home URL: file:/datacommon/java/jboss-4.2.3.GA/server/default/
      23:01:30,475 INFO [Server] Server Log Dir: /datacommon/java/jboss-4.2.3.GA/server/default/log
      23:01:30,475 INFO [Server] Server Temp Dir: /datacommon/java/jboss-4.2.3.GA/server/default/tmp
      23:01:30,475 INFO [Server] Root Deployment Filename: jboss-service.xml
      23:01:30,807 INFO [ServerInfo] Java version: 1.6.0_06,Sun Microsystems Inc.
      23:01:30,808 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 10.0-b22,Sun Microsystems Inc.
      23:01:30,808 INFO [ServerInfo] OS-System: Linux 2.6.24-19-generic,i386
      23:01:31,145 INFO [Server] Core system initialized
      23:01:32,586 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
      23:01:32,587 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
      23:01:33,058 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
      23:01:33,058 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
      23:01:33,216 INFO [TransactionManagerService] Starting recovery manager
      23:01:33,303 INFO [TransactionManagerService] Recovery manager started
      23:01:33,303 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
      23:01:33,861 ERROR [MainDeployer] Could not create deployment: file:/datacommon/java/jboss-4.2.3.GA/server/default/deploy/ejb3.deployer/
      org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.remoting:type=Connector,name=DefaultEjb3Connector,handler=ejb3
       at org.jboss.system.ServiceCreator.install(ServiceCreator.java:103)
       at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:451)
       at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
       at org.jboss.system.ServiceController.install(ServiceController.java:226)
       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.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.install(Unknown Source)
      
      


        • 1. Re: exception after out-of-the-box deploy
          peterj

          I do not see anything obviously wrong. The JDK 6 issue typically will not show up until you start using web services. Usually, when others have gotten the "Trying to install an already registered mbean" there is something wrong with the installation of JBossAS, but the problem was most often solved by downloading the ZIP file and installing it again.

          I assume that your account has full access rights to the /datacommon/java/jboss-4.2.3.GA directory.

          • 2. Re: exception after out-of-the-box deploy
            asiandub

            hello Peter,

            thanks to your reply I found out that I do have an access rights issue here. If I unzip the application in my home directory, JBoss starts without complaining.

            What I didn't mention was that /datacommon is a shared fat32 partition, and i think i have to step through the mount options I used.

            Cheers from Berlin / Germany,
            Jan