6 Replies Latest reply on Jan 22, 2011 8:30 AM by shekar samy

    How To Install Jboss 6.0.M2 In Ubuntu10.10 server Linux

    shekar samy Newbie

       

      Hi Guys

        I am shekar,i install jboss6.0.M2 in Ubuntu10.10 Server,i follow in net ,i get following error and jboss cant start.

       

      Sudo /etc/init.d/jboss start

      Error

       

      JBOSS_CMD_START=cd /usr/local/jboss/bin; /usr/local/jboss/bin/run.sh -c default -b 0.0.0.0

       

      How to Solve this problem

      Any one have installation Guide pls send me

       

      By

       

      shekar

      Shekar.samy@gmail.com

        • 1. Re: How To Install Jboss 6.0.M2 In Ubuntu10.10 server Linux
          Wolf-Dieter Fink Master

          This is a bit too less information.

           

          What about starting the jboss direct as 'root' with the run.sh? Does this work?

          Try sudo with the run.sh command ...

           

          It might be a shell problem.

          • 2. Re: How To Install Jboss 6.0.M2 In Ubuntu10.10 server Linux
            shekar samy Newbie

            Hi

             

            Jboss_init_ubuntu.sh file

             


            #define where jboss is - this is the directory containing directories log, bin, conf etc
            JBOSS_HOME=${JBOSS_HOME:-"/usr/local/jboss"}

             

            #define the user under which jboss will run, or use 'RUNASIS' to run as the current user
            JBOSS_USER=${JBOSS_USER:-"jboss"}

             

            #make sure java is in your path
            JAVAPTH=${JAVAPTH:-"/usr/lib/jvm/java-6-sun/bin"}

             

            #configuration to use, usually one of 'minimal', 'default', 'all'
            JBOSS_CONF=${JBOSS_CONF:-"default"}

             

            #if JBOSS_HOST specified, use -b to bind jboss services to that address
            JBOSS_BIND_ADDR=${JBOSS_HOST:-"-b 0.0.0.0"}

             

            #define the classpath for the shutdown class
            JBOSSCP=${JBOSSCP:-"$JBOSS_HOME/bin/shutdown.jar:$JBOSS_HOME/client/jnet.jar"}

             

            #define the script to use to start jboss
            JBOSSSH=${JBOSSSH:-"$JBOSS_HOME/bin/run.sh -c $JBOSS_CONF $JBOSS_BIND_ADDR"}

             

            if [ "$JBOSS_USER" = "RUNASIS" ]; then
              SUBIT=""
            else
              SUBIT="su - $JBOSS_USER -c "
            fi

             

            if [ -n "$JBOSS_CONSOLE" -a ! -d "$JBOSS_CONSOLE" ]; then
              # ensure the file exists
              touch $JBOSS_CONSOLE
              if [ ! -z "$SUBIT" ]; then
                chown $JBOSS_USER $JBOSS_CONSOLE
              fi
            fi

             

            if [ -n "$JBOSS_CONSOLE" -a ! -f "$JBOSS_CONSOLE" ]; then
              echo "WARNING: location for saving console log invalid: $JBOSS_CONSOLE"
              echo "WARNING: ignoring it and using /dev/null"
              JBOSS_CONSOLE="/dev/null"
            fi

             

            #define what will be done with the console log
            JBOSS_CONSOLE=${JBOSS_CONSOLE:-"/dev/null"}

             

            JBOSS_CMD_START="cd $JBOSS_HOME/bin; $JBOSSSH"
            JBOSS_CMD_STOP=${JBOSS_CMD_STOP:-"java -classpath $JBOSSCP org.jboss.Shutdown --shutdown"}

             

            if [ -z "`echo $PATH | grep $JAVAPTH`" ]; then
              export PATH=$PATH:$JAVAPTH
            fi

             

            if [ ! -d "$JBOSS_HOME" ]; then
              echo JBOSS_HOME does not exist as a valid directory : $JBOSS_HOME
              exit 1
            fi

             

            echo JBOSS_CMD_START = $JBOSS_CMD_START

             

            case "$1" in
            start)
                cd $JBOSS_HOME/bin
                if [ -z "$SUBIT" ]; then
                    eval $JBOSS_CMD_START >${JBOSS_CONSOLE} 2>&1 &
                else
                    $SUBIT "$JBOSS_CMD_START >${JBOSS_CONSOLE} 2>&1 &"
                fi
                ;;
            stop)
                if [ -z "$SUBIT" ]; then
                    $JBOSS_CMD_STOP
                else
                    $SUBIT "$JBOSS_CMD_STOP"
                fi
                ;;
            restart)
                $0 stop
                $0 start
                ;;
            *)
                echo "usage: $0 (start|stop|restart|help)"
            esac

             

             

             

            I try to sudo run.sh commands

            but throw the error in Command not found

             

            By

            Shekar

            • 3. Re: How To Install Jboss 6.0.M2 In Ubuntu10.10 server Linux
              Wolf-Dieter Fink Master

              For me it is unclear whether you start successful with run.sh as 'root'.

              If you can start you might set 'set -x' into the etc startsript or within the run.sh, the output micht show where the problem is.

              • 4. Re: How To Install Jboss 6.0.M2 In Ubuntu10.10 server Linux
                shekar samy Newbie

                Hi

                 

                I am ruuning jboss6 server using following cmd in linux os(Obuntu10 server)

                 

                /jboss/bin>sh run.sh

                 

                show Dployment Error:::

                 

                Dependency "jboss:service=TransactionManager" (should be in state "Create",
                but is actually in state "** NOT FOUND Depends on 'jboss:service=TransactionManager' **")
                  Deployment "jboss:service=proxyFactory,target=ClientUserTransaction" is missing the following dependencies:
                    Dependency "jboss:service=invoker,type=unified" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss:service=invoker,type=unified' **")
                  Deployment "jboss:service=proxyFactory,target=ClientUserTransactionFactory" is missing the following dependencies:
                    Dependency "jboss:service=invoker,type=unified" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss:service=invoker,type=unified' **")

                 

                DEPLOYMENTS IN ERROR:
                  Deployment "jboss.jca:service=WorkManager" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:service=WorkManager' **
                  Deployment "jboss:service=Naming" is in error due to the following reason(s):
                ** NOT FOUND Depends on 'jboss:service=Naming' **
                  Deployment "jboss.messaging:service=Connector,transport=bisocket" is in error
                due to the following reason(s): ** NOT FOUND Depends on 'jboss.messaging:service=Connector,transport=bisocket' **
                  Deployment "RemoteNamingBean" is in error due to the following reason(s): java.net.BindException: Address already in use, **ERROR**
                  Deployment "jboss:service=invoker,type=unified" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss:service=invoker,type=unified' **
                  Deployment "<UNKNOWN TransactionManager>" is in error due to the following reason(s): ** UNRESOLVED Demands 'RecoveryManager' **
                  Deployment "jboss.remoting:service=Connector,transport=socket" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.remoting:service=Connector,transport=socket' **
                  Deployment "vfsfile:/usr/local/jboss/server/default/deploy/messaging/remoting-bisocket-service.xml" is in error due to the following reason(s): java.io.IOException: SocketServerInvoker[127

                Deployment "jboss.jdbc:datasource=DefaultDS,service=metadata" is in error due
                to the following reason(s): ** NOT FOUND Depends on 'jboss.jdbc:datasource=DefaultDS,service=metadata' **
                  Deployment "vfsfile:/usr/local/jboss/server/default/deploy/hsqldb-ds.xml" is in error due to the following reason(s): java.sql.SQLException: The database is already in use by another process: org.hsqldb.persist.NIOLockFile@c7092fc0[file =/usr/local/jboss/server/default/data/hypersonic/localDB.lck, exists=true, locked=false, valid=false, fl =null]: java.lang.Exception: checkHeartbeat(): lock file [/usr/local/jboss/server/default/data/hypersonic/localDB.lck] is presumably locked by another process.
                  Deployment "<UNKNOWN DefaultUserTransactionprovider>" is in error due to the following reason(s): ** UNRESOLVED Demands 'TransactionManager' **
                  Deployment "jboss:service=TransactionManager" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss:service=TransactionManager' **
                  Deployment "RecoveryManager" is in error due to the following reason(s): java.net.BindException: Address already in use
                  Deployment "jboss.jca:name=DefaultDS,service=DataSourceBinding" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:name=DefaultDS,service=DataSourceBinding' **
                  Deployment "vfsfile:/usr/local/jboss/server/default/deploy/jmx-remoting.sar/"
                is in error due to the following reason(s): java.rmi.AlreadyBoundException: jmxconnector
                  Deployment "UnifiedInvokerConnector" is in error due to the following reason(s): java.io.IOException: SocketServerInvoker[127.0.0.1:4446] error creating ServerSocket[127.0.0.1:4446]: Address already in use, **ERROR**
                  Deployment "jboss.jca:service=CachedConnectionManager" is in error due to the
                following reason(s): ** NOT FOUND Depends on 'jboss.jca:service=CachedConnectionManager' **
                  Deployment "jboss:service=WebService" is in error due to the following reason(s): java.net.BindException: Address already in use
                  Deployment "jboss.web:service=WebServer" is in error due to the following reason(s): Configured

                 

                17:26:54,156 INFO  [org.jboss.bootstrap.impl.base.server.AbstractServer] JBossAS [6.0.0.20100216-M2 (build: SVNTag=JBoss_6_0_0_20100216-M2 date=20100216)] Started in 15s:116ms

                 

                How to fix the error.

                 

                By

                Shekar

                • 5. Re: How To Install Jboss 6.0.M2 In Ubuntu10.10 server Linux
                  Wolf-Dieter Fink Master

                  I'm not sure because I'm using JB5.

                  But your trouble might a destroyed download.

                  Also the message 'error creating ServerSocket[127.0.0.1:4446]: Address already in use' is suspect, do you have an other JBoss running or does anyone use port 4446 on this machine?

                  • 6. Re: How To Install Jboss 6.0.M2 In Ubuntu10.10 server Linux
                    shekar samy Newbie

                    Hi

                     

                    I have sucessfully install jboss6 in linux server...

                    Thanks to all

                     

                    By

                    Chandrasekaran.k