Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-1450

Unable to shutdown with whitespace in path because of javaagent error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.1
    • 1.7.2, 7.0.0-M1
    • None
    • None
    • Linux 3.13.0-39-generic #66-Ubuntu SMP Tue Oct 28 13:30:27 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

    Description

      Tomcat installation path: /opt/tom ee

      Execution error:
      + /opt/jdk1.7.0_60/bin/java -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -javaagent:/opt/tom ee/lib/openejb-javaagent.jar -DCORDYS_HOME=/opt/cordys/defaultInst -Djava.endorsed.dirs=/opt/tom ee/endorsed -classpath /opt/tom ee/bin/bootstrap.jar:/opt/tom ee/bin/tomcat-juli.jar -Dcatalina.base=/opt/tom ee -Dcatalina.home=/opt/tom ee -Djava.io.tmpdir=/opt/tom ee/temp org.apache.catalina.startup.Bootstrap stop
      Error opening zip file or JAR manifest missing : /opt/tom
      Error occurred during initialization of VM
      agent library failed to init: instrument

      Proposed fix: Change in catalina.sh line 238:
      JAVA_OPTS=""-javaagent:$CATALINA_HOME/lib/openejb-javaagent.jar" $JAVA_OPTS"
      To:
      JAVA_OPTS=""-javaagent:\"$CATALINA_HOME/lib/openejb-javaagent.jar\"" $JAVA_OPTS"

      I first logged this ticket on tomcat: https://issues.apache.org/bugzilla/show_bug.cgi?id=57233. But it seems catalina.sh is different for tomcat and tomee with same tomcat version. Maybe good to check if these are kept in sync in the right way.

      Attachments

        Issue Links

          Activity

            People

              romain.manni-bucau Romain Manni-Bucau
              dkwakkel Donald Kwakkel
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: