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

tomcat-vault should not require RPM users to copy libraries around to configure it

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • None
    • rpm, tomcat, tomcat-vault
    • None
    • Hide

      Create a symlink to the library manually:

      $ ln -s /usr/share/java/tomcat-vault-1.0.8.Final-redhat-2-jar-with-dependencies.jar /usr/share/tomcat8/lib/tomcat-vault.jar
      
      Show
      Create a symlink to the library manually: $ ln -s /usr/share/java/tomcat-vault-1.0.8.Final-redhat-2-jar-with-dependencies.jar /usr/share/tomcat8/lib/tomcat-vault.jar
    • Hide

      1) Install tomcat and tomcat-vault RPMs
      2) Configure tomcat-vault

      $ tail -n1 /etc/tomcat8/catalina.properties 
      org.apache.tomcat.util.digester.PROPERTY_SOURCE=org.apache.tomcat.vault.util.PropertySourceVault
      

      3) Try and start tomcat using the vault digester and observe the following CNFE in the tomcat log:

      30-Jun-2017 09:57:03.650 SEVERE [main] org.apache.tomcat.util.digester.Digester.<clinit> Unable to load property source[org.apache.tomcat.vault.util.PropertySourceVault].
       java.lang.ClassNotFoundException: org.apache.tomcat.vault.util.PropertySourceVault
              at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
              at java.lang.Class.forName0(Native Method)
              at java.lang.Class.forName(Class.java:348)
              at org.apache.tomcat.util.digester.Digester.<clinit>(Digester.java:107)
              at org.apache.catalina.startup.Catalina.createStartDigester(Catalina.java:268)
              at org.apache.catalina.startup.Catalina.load(Catalina.java:487)
              at org.apache.catalina.startup.Catalina.load(Catalina.java:603)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:310)
              at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:484)
      
      Show
      1) Install tomcat and tomcat-vault RPMs 2) Configure tomcat-vault $ tail -n1 /etc/tomcat8/catalina.properties org.apache.tomcat.util.digester.PROPERTY_SOURCE=org.apache.tomcat.vault.util.PropertySourceVault 3) Try and start tomcat using the vault digester and observe the following CNFE in the tomcat log: 30-Jun-2017 09:57:03.650 SEVERE [main] org.apache.tomcat.util.digester.Digester.<clinit> Unable to load property source[org.apache.tomcat.vault.util.PropertySourceVault]. java.lang.ClassNotFoundException: org.apache.tomcat.vault.util.PropertySourceVault at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at org.apache.tomcat.util.digester.Digester.<clinit>(Digester.java:107) at org.apache.catalina.startup.Catalina.createStartDigester(Catalina.java:268) at org.apache.catalina.startup.Catalina.load(Catalina.java:487) at org.apache.catalina.startup.Catalina.load(Catalina.java:603) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:310) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:484)

      When installing the tomcat and tomcat-vault RPMs, users presently have to copy the tomcat-vault jar into the tomcat lib directory. That should not be a manual step in the RPM installation. We should include a symlink to it like we do for ecj and other dependencies so that users can simply install the RPM and configure tomcat to use the vault.

              rhn-support-csutherl Coty Sutherland
              rhn-support-csutherl Coty Sutherland
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: