Uploaded image for project: 'JBoss Web Server'
  1. JBoss Web Server
  2. JWS-1133

tomcat8-digest missing class on CLASSPATH

XMLWordPrintable

    • 3
    • Documentation (Ref Guide, User Guide, etc.), Release Notes, Compatibility/Configuration, User Experience
    • +
    • Not Yet Documented
    • Hide

      add to the script /usr/bin/tomcat8-digest part with:

      CLASSPATH="${CLASSPATH}:${CATALINA_HOME}/lib/tomcat-api.jar"
      

      between

      CLASSPATH="${CLASSPATH}:${CATALINA_HOME}/bin/tomcat-juli.jar"
      export CLASSPATH
      
      Show
      add to the script /usr/bin/tomcat8-digest part with: CLASSPATH= "${CLASSPATH}:${CATALINA_HOME}/lib/tomcat-api.jar" between CLASSPATH= "${CLASSPATH}:${CATALINA_HOME}/bin/tomcat-juli.jar" export CLASSPATH
    • Hide

      install JWS 3.1 SP1 tomcat8
      run: tomcat8-digest -a SHA-256 Foo
      observe exception

      Show
      install JWS 3.1 SP1 tomcat8 run: tomcat8-digest -a SHA-256 Foo observe exception

      Tomcat digest doesn't work after RPM installation of JWS 3.1 tomcat 8

      tomcat8-digest -a SHA-256 Foo
      Jul 12, 2017 10:49:56 AM org.apache.catalina.startup.Tool main
      SEVERE: Exception locating main() method
      java.lang.NoClassDefFoundError: org/apache/tomcat/ContextBind
      	at java.lang.ClassLoader.defineClass1(Native Method)
      	at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
      	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
      	at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
      	at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      	at java.lang.Class.getDeclaredMethods0(Native Method)
      	at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
      	at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
      	at java.lang.Class.getMethod0(Class.java:3018)
      	at java.lang.Class.getMethod(Class.java:1784)
      	at org.apache.catalina.startup.Tool.main(Tool.java:216)
      Caused by: java.lang.ClassNotFoundException: org.apache.tomcat.ContextBind
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      	... 18 more
      
      

      Tomcat 7 digest works as intended. The original issue JWS-770 was fixed on JWS 5; but never backported to JWS 3.1.0.

              dphilips@redhat.com Daniel Philips (Inactive)
              mczernek@redhat.com Marek Czernek (Inactive)
              Jan Onderka Jan Onderka
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: