Starting the Compiere Application Server

Steve Lee
2009-08-24
2013-05-02
  • Steve Lee

    Steve Lee - 2009-08-24

    Hi All,

    Has anyone run into this problem when running Compiere Application Server?

    When attempting to start  the Compiere Application Server
    execute RUN_Server2

    Community Edition 3.2
    Oracle 10g

    I get the following error messages:

    ERROR could not create deployment: file:/ downloads/Compiere2/jboss/server/compiere/deploy/uuid-key-generator.sar/

    ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/invok
       2626 er]] Exception starting filter ReadOnlyAccessFilter

    ERROR [org.apache.catalina.core.StandardContext] Error filterStart

    ERROR [org.apache.catalina.core.StandardContext] Context [/invoker] startup failed due to previous errors

    ERROR [org.jboss.deployment.MainDeployer] Could not start deployment: file:/downloads/Compiere2/jboss/server/compiere/deploy/http-invoker.sar/invoker.war/

    ERROR [org.jboss.deployment.MainDeployer] DeploymentException while trying to deploy a package with a new deployer

    Thanks
    Black Eye Peas

     
    • Steve Lee

      Steve Lee - 2009-08-24

      I looked into the source and found three version of jboss_init_:

      1. jboss_init_hpux
      2. jboss_init_redhat
      3. jboss_init_suse

      All three perform similar functions but I notice that redhat jboss location is defined differently from SUSE.  Does "Execute the script $COMPIERE_HOME/RUN_Setup."  decide to install the Compiere Application Server [jboss] according to the different version of Unix exempli gratia, Solaris, HP-UX, IRIX, Linux -rhel, suse, debian?

      jboss_init_redhat.sh below?
      _______________________________________________________________________

      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/local/jdk/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 $JBOSS_HOST"}

      #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"

      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

      function procrunning() {
         procid=0
         JBOSSSCRIPT=$(echo $JBOSSSH | awk '{print $1}' | sed 's/\//\\\//g')
         for procid in `/sbin/pidof -x "$JBOSSSCRIPT"`; do
             ps -fp $procid | grep "${JBOSSSH% *}" > /dev/null && pid=$procid
         done
      }

      stop() {
          pid=0
          procrunning
          if [ $pid = '0' ]; then
              echo -n -e "\nNo JBossas is currently running\n"
              exit 1
          fi

          RETVAL=1

          # If process is still running

          # First, try to kill it nicely
          for id in `ps --ppid $pid | awk '{print $1}' | grep -v "^PID$"`; do
             if [ -z "$SUBIT" ]; then
                 kill -15 $id
             else
                 $SUBIT "kill -15 $id"
             fi
          done

          sleep=0
          while [ $sleep -lt 120 -a $RETVAL -eq 1 ]; do
              echo -n -e "\nwaiting for processes to stop";
              sleep 10
              sleep=`expr $sleep + 10`
              pid=0
              procrunning
              if [ $pid == '0' ]; then
                  RETVAL=0
              fi
          done

          # Still not dead... kill it

          count=0
          pid=0
          procrunning

          if [ $RETVAL != 0 ] ; then
              echo -e "\nTimeout: Shutdown command was sent, but process is still running with PID $pid"
              exit 1
          fi

          echo
          exit 0
      }

      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)
          stop
          ;;
      restart)
          $0 stop
          $0 start
          ;;
      *)
          echo "usage: $0 (start|stop|restart|help)"
      esac

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks