1 Reply Latest reply on Sep 2, 2015 9:51 PM by lionelve

    JBoss module missing dependency

    lionelve

      Hi,

       

      I have a war where I have added a dependency to the xerces static module like so.

       

      <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">
          <deployment>
              <dependencies>
                  <module name="org.apache.xerces" services="import" />
              </dependencies>
          </deployment>
      </jboss-deployment-structure>
      

       

      When deploying the war I get this error.

       

      07:53:20,550  ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/frevvo]] (ServerService Thread Pool -- 203) JBWEB000287: Exception sending context initialized event to listener instance of class com.gauss.forms.servlet.FrevvoContextListener: java.lang.NoClassDefFoundError: org/apache/xml/resolver/CatalogManager

        at org.apache.xerces.util.XMLCatalogResolver.init(XMLCatalogResolver.java:537) [xercesImpl-2.9.1.redhat-5.jar:2.9.1.redhat-5]

        at org.apache.xerces.util.XMLCatalogResolver.<init>(XMLCatalogResolver.java:120) [xercesImpl-2.9.1.redhat-5.jar:2.9.1.redhat-5]

        at org.apache.xerces.util.XMLCatalogResolver.<init>(XMLCatalogResolver.java:108) [xercesImpl-2.9.1.redhat-5.jar:2.9.1.redhat-5]

       

      This missing CatalogManager class lives in the xml-resolver module provided by jboss. However the xerces module does not declare a dependency on it.

       

      
      <module xmlns="urn:jboss:module:1.1" name="org.apache.xerces">
          <resources>
              <resource-root path="xercesImpl-2.9.1.redhat-5.jar"/>
              <!-- Insert resources here -->
          </resources>
          <dependencies>
              <module name="javax.api"/>
              <!-- <module name="org.apache.xml-resolver" /> IF I ADD THIS DEPEDENCY HERE IT WORKS -->
          </dependencies>
      </module>
      

       

      Is this module misconfigured?

       

      JBoss EAP 6.2.0.GA (AS 7.3.0.Final-redhat-14

       

      Thanks.

       

      Lionel.

        • 1. Re: JBoss module missing dependency
          lionelve

          RedHat Support:


          org.apache.xml-resolver is marked as a private api, which means it is not part of JavaEE and not a public JBoss API and could be changed or removed at any time. The recommendation would be to package the resolver jar you want to use in your application.