https://issues.apache.org/bugzilla/show_bug.cgi?id=56003

            Bug ID: 56003
           Summary: tool-wrapper.bat cannot report failures. because
                    ExceptionUtils class is not on classpath
           Product: Tomcat 8
           Version: 8.0.0-RC10
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: knst.koli...@gmail.com

If I do something that results in an error, e.g. using Java 7u45 and running

> tool-wrapper.bat foo

it fails with 

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/tomcat/util/ExceptionUtils
        at org.apache.catalina.startup.Tool.main(Tool.java:204)
Caused by: java.lang.ClassNotFoundException:
org.apache.tomcat.util.ExceptionUtils
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        ... 1 more

The cause is that org.apache.catalina.startup.Tool depends on ExceptionUtils
class that is not present in bootstrap.jar.

When I do something successfully, e.g. run

> digest.bat -a md5 helloworld

it completes successfully.


Alternatively, we can add lib/tomcat-util.jar to the classpath created by
tool-wrapper{.bat|.sh} script, or add the ExceptionUtils class to
bootstrap.jar.

Tool class also depends on org.apache.catalina.Globals, but that only pulls in
several constant strings and does not cause problems at runtime.

-- 
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

Reply via email to