Bug 57233 - unable to shutdown with whitespace in path because of javaagent error
Summary: unable to shutdown with whitespace in path because of javaagent error
Status: RESOLVED INVALID
Alias: None
Product: Tomcat 7
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 7.0.55
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-18 08:13 UTC by Donald
Modified: 2014-11-20 20:18 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Donald 2014-11-18 08:13:05 UTC
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 following line:
  JAVA_OPTS=""-javaagent:$CATALINA_HOME/lib/openejb-javaagent.jar" $JAVA_OPTS"
To:
  JAVA_OPTS=""-javaagent:\"$CATALINA_HOME/lib/openejb-javaagent.jar\"" $JAVA_OPTS"



Similair to https://issues.apache.org/bugzilla/show_bug.cgi?id=55336
Comment 1 Konstantin Kolinko 2014-11-18 18:52:58 UTC
There is no such line in catalina.sh of Tomcat 7.0.55.

"openejb-javaagent.jar" may be from http://openejb.apache.org/

Ask on their users' mailing list.
Comment 2 Donald 2014-11-20 20:18:01 UTC
Strange, seems to be a bug in the TomEE 1.7.1 version which uses the same tomcat version 7.0.55. Created a bug report there: https://issues.apache.org/jira/browse/TOMEE-1450. Thanks for your quick reply.