1 Reply Latest reply on Apr 10, 2003 7:58 PM by vincen8147

    linux service config: /tomcat/conf/jboss-service.xml could n

    vincen8147 Newbie

      Hi all,

      I recently installed jboss-3.0.6_tomcat-4.1.18 on my redhat 7.0 system. I'm able to start things fine by using the run.sh script. BUT... when I try to start it using the go.sh script described in the setup guide i get the exception which is below.

      The path for the file exists up to the tomcat directory. within the tomcat directory there is only a 'log' directory.

      I don't think it is a permission issue cause I'm running as root.

      Any pointers on what this file is? and perhaps why it would work via the run.sh and not the go.sh?

      16:03:37,348 ERROR [Server] start failed
      org.jboss.deployment.DeploymentException: url file:/usr/jboss/jboss-3.0.6_tomcat-4.1.18/server/tomcat/conf/jboss-service.xml could not be opened, does it exist?
      at org.jboss.deployment.DeploymentInfo.(DeploymentInfo.java:165)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:590)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:575)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:325)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:222)
      at org.jboss.Main.boot(Main.java:148)
      at org.jboss.Main$1.run(Main.java:381)
      at java.lang.Thread.run(Thread.java:536)
      org.jboss.deployment.DeploymentException: url file:/usr/jboss/jboss-3.0.6_tomcat-4.1.18/server/tomcat/conf/jboss-service.xml could not be opened, does it exist?
      at org.jboss.deployment.DeploymentInfo.(DeploymentInfo.java:165)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:590)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:575)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:325)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:222)
      at org.jboss.Main.boot(Main.java:148)
      at org.jboss.Main$1.run(Main.java:381)
      at java.lang.Thread.run(Thread.java:536)

      here is my go.sh file too...

      #!/bin/sh
      #
      # go.sh
      # Shell script to start and stop integrated Tomcat/jBoss
      export JBOSS_HOME=/usr/jboss/jboss-3.0.6_tomcat-4.1.18
      export JAVA_HOME=/usr/java
      JAVACMD=$JAVA_HOME/bin/java
      # Minimal jar file to get JBoss started.
      CLASSPATH=$CLASSPATH:$JBOSS_HOME/bin/run.jar
      # Add the tools.jar file so that Tomcat can find the
      # Java compiler.
      CLASSPATH="$CLASSPATH:$JAVA_HOME/lib/tools.jar"

      if [ "$1" = "start" ] ; then
      shift
      #####$JAVACMD $JBOSS_OPTS -classpath $CLASSPATH org.jboss.Main -c tomcat > /dev/null 2>&1 &
      $JAVACMD $JBOSS_OPTS -classpath $CLASSPATH org.jboss.Main -c tomcat &
      echo $! > /var/run/jboss.pid
      elif [ "$1" = "stop" ] ; then
      shift
      kill -15 `cat /var/run/jboss.pid`
      rm -rf /var/run/jboss.pid
      elif [ "$1" = "run" ] ; then
      shift
      $JAVACMD $JBOSS_OPTS -classpath $CLASSPATH org.jboss.Main -c tomcat "$@"
      else
      echo "Usage:"
      echo "jboss (start|run|stop)"
      echo " start - start jboss in the background"
      echo " run - start jboss in the foreground"
      echo " stop - stop jboss"
      exit 0
      fi