0 Replies Latest reply on Jan 9, 2014 8:57 AM by michael-s

    HostBundleClassLoader used with WAB bundle does not find resource in WEB-INF/classes

    michael-s

      We use WildFly 8 Beta1 with jbosgi-installer-2.1.0. When our wab is deployed it uses Spring 3.0.5 to load an xml file with this method:

      org.springframework.core.io.ClassPathResource.getInputStream()
      ...
      this.classLoader.getResourceAsStream(this.path);
      
      
      

      In this cases it uses a path relative to WEB-INF/classes in the wab archive and throws a FileNotFoundException.

      The code works in normal (non osgi) war and when the xml file is moved to a jar in WEB-INF/lib. It also works as bundle in JBoss EAP 6.2.

      In the debugger I see that this class loader is used:

      HostBundleClassLoader for Module "deployment.my.wab:main" from Service Module Loader

      Is this a bug in the HostBundleClassLoader or intended behaviour?

       

      Michael