You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2020/02/04 16:00:05 UTC

[Bug 64116] New: Incorrect expanstion of JAVA_OPTS in tool-wrapper.sh when JAVA_OPT is empty

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.penkler@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 64116] Incorrect expanstion of JAVA_OPTS in tool-wrapper.sh when JAVA_OPT is empty

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64116

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
See https://bz.apache.org/bugzilla/show_bug.cgi?id=63815#c9

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org