4 Replies Latest reply on Apr 26, 2003 12:55 PM by dharmafog

    [JBOSS-3.2.0_tomcat-4.1.24] run.sh start error for gentoo li

    oldman78

      -PATH JAVA(1.4.1_02) and [JBOSS-3.2.0_tomcat-4.1.24

      export JAVACMD=/usr/local/j2sdk/bin/java
      export JAVA_HOME=/usr/local/j2sdk
      export JAVA=/usr/local/j2sdk
      export JBOSS_DIST=/usr/local/jboss
      export JBOSS_HOME=/usr/local/jboss
      CLASSPATH=$JAVA_HOME/lib/tools.jar:$JBOSS_HOME/bin/run.jar
      PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$JBOSS_HOME/bin



      [/usr/jboss/bin]# ./run.sh
      ================================================
      JBoss Bootstrap Environment

      JBOSS_HOME: /usr/local/jboss

      JAVA: /usr/local/j2sdk

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

      CLASSPATH: /usr/local/jboss/bin/run.jar:/usr/local/j2sdk/lib/tools.jar

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

      ./run.sh: line 182: /usr/local/sdk: is a directory
      ./run.sh: line 182: exec: /usr/local/j2sdk: cannot execute: Success

      (-_-)' HELP

        • 1. Re: [JBOSS-3.2.0_tomcat-4.1.24] run.sh start error for gento
          oldman78

          [/usr/jboss/bin]# ./run.sh
          ================================================
          JBoss Bootstrap Environment

          JBOSS_HOME: /usr/local/jboss

          JAVA: /usr/local/j2sdk

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

          CLASSPATH: /usr/local/jboss/bin/run.jar:/usr/local/j2sdk/lib/tools.jar

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

          ./run.sh: line 182: /usr/local/j2sdk: is a directory
          ./run.sh: line 182: exec: /usr/local/j2sdk: cannot execute: Success

          (-_-)' HELP

          • 2. Re: [JBOSS-3.2.0_tomcat-4.1.24] run.sh start error for gento
            jonlee

            Your JAVA variable is not being correctly set up. You should have:
            JAVA = /usr/local/j2sdk/bin/java

            See the run.sh section on setting up the JVM. It only sets up the JVM correctly if JAVA is not already initialised.

            You have initialised it before calling the script with the:
            export JAVA=/usr/local/j2sdk

            So it stays that way. Try clearing the JAVA environment variable first or set the way that JBoss's run.sh expects it to be set.

            • 3. Re: nice! thanks ~!  (^^*)....
              oldman78

              It is solution.

              ^^ thanks

              • 4. Re: [JBOSS-3.2.0_tomcat-4.1.24] run.sh start error for gento
                dharmafog

                Have you checked your log file?

                Did log4j generate an error?

                Are there large number of warnings regarding missing
                jar files?

                Have you tried to shut it down using shutdown.sh? You'll
                need to call shutdown.sh as

                shutdown.sh --shutdown

                or hack the script and add it.