0 Replies Latest reply on Nov 28, 2013 6:33 AM by wojtek k

    wildfly-8.x WAR classpath question

    wojtek k Newbie

      Hello!

       

      We have WAR structure:

       

      /WEB-INF/classes/testServlet

      /WEB-INF/lib/some_library.jar

      /META-INF/test.properties   <-- this test.properties shouldn't be visible to classpath

       

      I'm curious why WildFly adds /META-INF to classpath in WAR.

      Servlet 3.0 says that resources from /META-INF are only accessible using ServletContext.getResource() and not ClassLoader.getResource().

      GF-4.0 and TC-6.0 don't put /META-INF in classpath.

       

      After short discussion on IRC I know that is intentional behaviour (because of ServiceLoader) but for me it is wrong (we cannot put jars in META-INF).

       

      I'm saying only about WAR because WildFly don't put root /META-INF if I'm deploying EAR (and other servers too).

       

      Any ideas or comments ?