3 Replies Latest reply on Apr 26, 2013 5:49 AM by jaikiran pai

    Importing resources not possible in global-modules?

    Saravanan Muthusamy Newbie

      Hi,

      we are migrating our application from AS 5.1.0 to 7.1.1 and all our deployers are sar modules. While configuring the global-modules (with spring modules) we dont find a way to import the resources ((xsd schemas) from spring module. I only see the classes are resolved when my sar module gets deployed, but xsd was not resolved. Is there a way to import the spring xsd resources as global module?

       

      here is the error

       

      Caused by: org.xml.sax.SAXParseException; lineNumber: 10; columnNumber: 110; cvc-elt.1: Cannot find the declaration of element 'beans'.

          at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)

       

      Defining a boss-deployment-structure.xml in my sar module with below contents solve issue, but we have hundreds of sar modules where i can not add this file in every sar file(module).

      <?xml version="1.0" encoding="UTF-8"?>
      <jboss-deployment-structure>
          <deployment>
              <dependencies>
                  <module name="org.springframework" export="true">
                      <imports>
                          <include path="META-INF**" />
                          <include path="org**" />
                      </imports>
                  </module>  
                  <module name="......"/>
              </dependencies>
          </deployment>
      </jboss-deployment-structure>
      

       

      Thanks.