0 Replies Latest reply on Jul 25, 2002 1:02 PM by jlmartinez

    JAVA_OPTS in run.bat /run.sh

    jlmartinez

      I'm adding debugger options or -D properties to java execution and an exception appears.

      With JBoss3.0.0 + winNT no problem
      With JBoss3.0.0 + linux -- exception
      With jboss-3.0.1RC1 + WinNT/Linux --exception

      the line added in run.bat is:
      set JAVA_OPTS=%JAVA_OPTS% -Dproject.name=atenea .....

      or in run.sh

      JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n -Dprogram.name=$PROGNAME

      The exception is:
      10:51:18,129 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.x
      ml
      10:51:18,129 INFO [AbstractDeploymentScanner$ScannerThread] Running
      10:51:18,259 ERROR [MainDeployer] could not start deployment: file:/C:/Java/jboss-3.0.1RC1
      /server/atenea/conf/jboss-service.xml
      java.lang.NoSuchMethodError: org.apache.log4j.Category.getDefaultHierarchy()Lorg/apache/lo
      g4j/Hierarchy;
      at org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:608)

      Some idea of this problem ?

      Thank you.