tomcat 9.0.29, Debian 8, openjdk 1.8.0_232-b09

Trying to run digest.sh :

$ cd /opt/apache-tomcat/9.0.29/bin
$ ./digest.sh
Error: Could not find or load main class
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
$ CATALINA_HOME=/opt/apache-tomcat-9.0.29 ./digest.sh
Error: Could not find or load main class
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager


Looks like it is confusing java opts with the main class somehow.
Digging through the shell scripts and comparing to previous versions I
have floating around I found this :

$ diff tool-wrapper.sh /opt/apache-tomcat-9.0.19/bin/tool-wrapper.sh
149c149
< exec "$_RUNJAVA" "$JAVA_OPTS" $TOOL_OPTS \
---
> exec "$_RUNJAVA" $JAVA_OPTS $TOOL_OPTS \

If I unquote JAVA_OPTS it works properly :

$ ./digest.sh
Usage: RealmBase [-a <algorithm>] [-e <encoding>] [-i <iterations>]
[-s <salt-length>] [-k <key-length>] [-h <handler-class-name>]
<credentials>

I don't know enough about the scripts though to know whether the
unquoting is breaking anything else. It didn't seem to affect
start/stop via catalina.sh however.

File on bugzilla?

Chris

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to