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

tomcat-digest missing tomcat-api.jar at CLASSPATH

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • JWS 5.0_RHEL DR2
    • JWS 3.1.0 GA, JWS 3.1.0 SP1 ER1, JWS 5.0_RHEL DR1
    • rpm, tomcat
    • None
    • 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

      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
      
      

        1. JWS-770.patch
          0.4 kB
          Coty Sutherland

              rhn-support-csutherl Coty Sutherland
              jonderka@redhat.com Jan Onderka
              Jan Onderka Jan Onderka
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: