1 Reply Latest reply on May 15, 2017 1:31 PM by andey

    Problem loading spring context

    ramavs2

      We are facing an issue loading spring context with modules. Our project structure has a main war(a.war) with all the dependencies bundled in WEB-INF/lib. We have a separate jar(b.jar) which has camel & cxf integrations and one spring context xml.  b.jar is dependent on a jar inside a.war.  And a.war loads all the spring context files and while loading we want to load the spring context file from b.jar as well.

       

      Tried adding jboss-deployment-structure.xml with b.jar as dependency but it ends up with expecting the classes from a.war.  If we remove this then application is starting but the spring-context inside b.jar is not loaded and getting No bean definiton exception.