1 Reply Latest reply on Dec 16, 2001 11:23 AM by Adrian Brock

    jboss.properties not found when using startup daemon

    Carl Whalley Newbie

      Exception in thread "JBossMain" java.io.IOException: jboss.properties missing at org.jboss.Main.main(Main.java:74)

      I have added a symlink in rc3.d to start jboss with a script posted on the mail list some time ago (dump follows). I know JBOSS_HOME is set ok as I can run it manually with the usual $JBOSS_HOME/bin/run.sh script. What do I need to do to get the auto run script to work please? This is JBoss-2.4.3/RH 7.1
      It also fails with exactly the same error when invoked from a shell using "./jboss start".

      [---- start of /etc/rc.d/init.d/jboss]

      #! /bin/sh
      #
      # Startup script for JBOSS, the J2EE EJB Server
      #
      # chkconfig: 2345 86 15
      # description: Jboss is an EJB Server
      # processname: jboss
      # pidfile: /var/run/jboss.pid
      # config: ${JBOSS_HOME}/conf/default/jboss.conf
      # logfile: ${JBOSS_HOME}/log/server.log
      #
      #
      # version 1.2 -
      #

      # Source function library.
      . /etc/rc.d/init.d/functions

      #SET THE FOLLOWING LINE TO YOUR JAVA_HOME !
      export JAVA_HOME=/usr/local/jdk1.3

      #SET THE FOLLOWING LINE TO YOUR CORRECT JBOSS_HOME !
      export JBOSS_HOME=/usr/local/JBoss-2.4.3

      export PATH=$PATH:$JBOSS_HOME/bin:$JAVA_HOME/bin:$JAVA_HOME/jre/bin

      #IF YOU NEED SPECIAL CLASSES IN YOUR CLASSPATH
      #AT STARTUP, ADD THEM TO YOUR CLASSPATH HERE
      export CLASSPATH=

      RETVAL=0

      # See how we were called.
      case "$1" in
      start)
      cd $JBOSS_HOME/bin
      echo -n "Starting jboss daemon: "
      daemon $JBOSS_HOME/bin/run.sh start
      RETVAL=$?
      echo
      [ $RETVAL -eq 0 ] && touch /var/lock/subsys/jboss
      ;;
      stop)
      echo -n "Stopping jboss daemon: "
      killproc jboss
      RETVAL=$?
      echo
      [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/jboss
      ;;
      restart)
      echo -n "Restarting jboss daemon: "
      $0 stop
      sleep 2
      $0 start
      ;;
      *)
      echo "Usage: jboss {start|stop|restart}"
      exit 1
      esac
      exit $RETVAL