2 Replies Latest reply on Apr 19, 2004 10:04 AM by Craig Herring

    ?? Running Jboss as a service in Suse 9.0 using a wrapper

    Craig Herring Newbie

      I am having trouble running Jboss as a service on Linux. I am using the latelst stable 3.2.3 of Jboss with Java Service Wrapper 3.1.0 (http://wrapper.tanukisoftware.org). If there is an easier way please let me know. I tried the RedHat script that comes with it but that didn't work. Here is the error I am getting from the wrapper on a debug console:

      Running JBoss Application Server...
      wrapper | --> Wrapper Started as Console
      wrapperp | server listening on port 32000.
      wrapper | Command[0] : /usr/java/j2sdk1.4.2_04/bin/java
      wrapper | Command[1] : run.sh
      wrapper | Command[2] : -Djava.library.path=../lib
      wrapper | Command[3] : -classpath
      wrapper | Command[4] : ../lib/wrapper.jar:./run.jar:/usr/java/j2sdk1.4.2_04/lib/tools.jar
      wrapper | Command[5] : -Dwrapper.key=oIBX42BPxmBeyv5k
      wrapper | Command[6] : -Dwrapper.port=32000
      wrapper | Command[7] : -Dwrapper.debug=TRUE
      wrapper | Command[8] : -Dwrapper.use_system_time=TRUE
      wrapper | Command[9] : -Dwrapper.version=3.1.0
      wrapper | Command[10] : -Dwrapper.native_library=wrapper
      wrapper | Command[11] : -Dwrapper.cpu.timeout=10
      wrapper | Command[12] : -Dwrapper.jvmid=1
      wrapper | Command[13] : org.tanukisoftware.wrapper.WrapperSimpleApp
      wrapper | Command[14] : org.jboss.Main
      wrapper | Launching a JVM...
      jvm 1 | Exception in thread "main" java.lang.NoClassDefFoundError: run/sh
      wrapper | JVM process exited with a code of 1, setting the wrapper exit code to 1.
      wrapper | JVM exited while loading the application.
      wrapper | JVM was only running for 0 seconds leading to a failed restart count of 1.
      wrapper | Waiting 5 seconds before launching another JVM.


      wrapper.conf

      wrapper.java.command=%JAVA_HOME%/bin/java
      wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
      wrapper.java.classpath.1=../lib/wrapper.jar
      wrapper.java.classpath.2=./run.jar
      wrapper.java.classpath.3=%JAVA_HOME%/lib/tools.jar
      wrapper.java.library.path.1=../lib
      wrapper.java.additional.1=run.sh
      wrapper.app.parameter.1=org.jboss.Main
      wrapper.console.format=PM
      wrapper.console.loglevel=DEBUG
      wrapper.logfile=/var/log/jboss/wrapper.log
      wrapper.logfile.format=LPTM
      wrapper.logfile.loglevel=INFO
      wrapper.logfile.maxsize=0
      wrapper.logfile.maxfiles=0
      wrapper.syslog.loglevel=NONE


      Please help!!! We would like to use Jboss in a production environment without having to login and start the service and keep a console up.
      Thanks-
      Craig Herring