0 Replies Latest reply on Jul 29, 2017 4:57 AM by barabaka

    Reference multiple resources by pattern

    barabaka

      I am porting old EAR application from jboss-4.2.2 to Wildfly 10 and I have the following issue:

       

      I have many hibernate config files *.hbm.xml which I used to reference from Spring config using pattern like this:

      <property name="mappingLocations">

          <value>classpath*:org/app/**/*.hbm.xml</value>

      </property>

       

      This feature doesn't seem to work in Wildfly and no resources are found. I assume because of the changed Classloader. The application is EAR application with jars and wars inside. The hbm.xml files are inside one of the jar. Is there any way to reference these resources by pattern? Maybe placing into some other resource, not jar? Or some Wildfly-specific pattern?