8 Replies Latest reply on Sep 27, 2007 4:37 PM by aamirsyed

    Problem with Jboss startup

    aamirsyed


      when I try to start Jboss 4.2.1 by giving the command at the prompt I get the following
      error

      [root@berlin bin]# ./jboss_init_redhat.sh
      JBOSS_CMD_START = cd /usr/local/jboss-4.2.1.GA-src/bin; /usr/local/jboss-4.2.1.GA-src/bin/run.s h -c default
      usage: ./jboss_init_redhat.sh (start|stop|restart|help)
      [root@berlin bin]# ./jboss_init_redhat.sh
      JBOSS_CMD_START = cd /usr/local/jboss-4.2.1.GA-src/bin; /usr/local/jboss-4.2.1.GA-src/server/sr c/jboss_init_redhat.sh -c default
      usage: ./jboss_init_redhat.sh (start|stop|restart|help)

      Thanks in advance for any help

        • 1. Re: Problem with Jboss startup
          peterj

          The jboss_init_redhat.sh script is for use if you want to set it up to run as a service (edit it, then copy to /etc/init.d). To run the app server by hand, use the run.sh script.

          • 2. Re: Problem with Jboss startup
            aamirsyed


            Thank you Peter,
            Maybe my installation was not correct, but please let me know where is the run.sh located.

            • 3. Re: Problem with Jboss startup
              peterj

              run.sh is in the bin directory, same place where jboss_init_redhat.sh is.

              • 4. Re: Problem with Jboss startup
                aamirsyed


                I reinstalled JBoss 4.2.1. but when I ran the run.sh script in /system/src/bin i got a message "missing file /system/src/bin/run.jar "
                Thanks in advance for any help

                • 5. Re: Problem with Jboss startup
                  peterj

                  I think that you downloaded the source files, not the binary files. The binary comes as a ZIP file (the TAR.GZ is the source).

                  • 6. Re: Problem with Jboss startup
                    aamirsyed


                    Thanks again Peter I was abel to get to bin.I also downloaded jdk1.6.0_02 and set it in JAVA_HOME variable but when I ran the run.sh script I got this error

                    JBoss Bootstrap Environment

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

                    JAVA: /usr/java/j2sdk1.4.2_08/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: /usr/local/jboss-4.2.1.GA/bin/run.jar:/usr/java/j2sdk1.4.2_08/lib/tools.jar

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

                    java.lang.UnsupportedClassVersionError: javax/management/NotificationEmitter (Unsupported major.minor version 49.0)

                    • 7. Re: Problem with Jboss startup
                      peterj

                      You have JAVA_HOME set to the 1.4.2 JDK, JBoss AS 4.2.1 needs a 1.5 or higher JDK.

                      By the way, I recommend that you use the 1.5 JDK and not the 1.6 that you downloaded.

                      • 8. Re: Problem with Jboss startup
                        aamirsyed


                        Thank you Peter ,
                        My JBoss Application Server is up and running! However the JAVA_HOME variable had also to be changed in /etc/profile for the change to completely take place.

                        Regards
                        Aamir Syed