problem running digest.sh

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

problem running digest.sh

Chris Cheshire-2
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: problem running digest.sh

Mark Thomas-2
On 02/12/2019 21:07, Chris Cheshire wrote:

<snip/>

> File on bugzilla?

No need. It is https://bz.apache.org/bugzilla/show_bug.cgi?id=63815

It is fixed as far as we can until the jdg issue is fixed.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: problem running digest.sh

Chris Cheshire-2


> On Dec 2, 2019, at 4:21 PM, Mark Thomas <[hidden email]> wrote:
>
> On 02/12/2019 21:07, Chris Cheshire wrote:
>
> <snip/>
>
>> File on bugzilla?
>
> No need. It is https://bz.apache.org/bugzilla/show_bug.cgi?id=63815
>
> It is fixed as far as we can until the jdg issue is fixed.
>
> Mark


My search-fu is not very good, I didn’t find anything when I looked first.

Cheers :)
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]