https://bz.apache.org/bugzilla/show_bug.cgi?id=64116
Bug ID: 64116 Summary: Incorrect expanstion of JAVA_OPTS in tool-wrapper.sh when JAVA_OPT is empty Product: Tomcat 9 Version: 9.0.29 Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P2 Component: Catalina Assignee: dev@tomcat.apache.org Reporter: alexandre.penk...@gmail.com Target Milestone: ----- A call for digest.sh results in the following error: Error: Could not find or load main class -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager This comes from digest.sh (line 145 onwards): JAVA_OPTS="$JAVA_OPTS -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager" exec "$_RUNJAVA" "$JAVA_OPTS" $TOOL_OPTS \ -D$ENDORSED_PROP="$JAVA_ENDORSED_DIRS" \ -classpath "$CLASSPATH" \ -Dcatalina.home="$CATALINA_HOME" \ org.apache.catalina.startup.Tool "$@" If JAVA_OPTS is unset (which it is our case as verified through bash -x) the commandline becomes: + JAVA_OPTS=' -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager' + exec /opt/java/jdk8/bin/java ' -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager' -Dignore.endorsed.dirs= -classpath /logiciels/tomcat/tomcat-9.0/bin/bootstrap.jar:/logiciels/tomcat/tomcat-9.0/bin/tomcat-juli.jar:/logiciels/tomcat/tomcat-9.0/lib/servlet-api.jar:/logiciels/tomcat/tomcat-9.0/lib/tomcat-util.jar -Dcatalina.home=/logiciels/tomcat/tomcat-9.0 org.apache.catalina.startup.Tool -server org.apache.catalina.realm.RealmBase Error: Could not find or load main class -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager This bug seems to have been introduced through the fix for bug: 63815 Currently I am using a workaround by setting some bogus option to JAVA_OPTS before running the script -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org