2 Replies Latest reply on Dec 24, 2013 9:43 AM by fiorenzo pizza

    wildfly 8cr1 doesn't respect welcome-file-list for resources inside jar files

    fiorenzo pizza Newbie



      i created a simple war application with one jar (first.jar) inside WEB-INF/lib folder, this jar has inside some web resources (jsp/jsf files).


      <?xml version="1.0" encoding="UTF-8"?>
      <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"


      The jsp inside the jar is located on first.jar/META-INF/resources/first/index.jsp and it contains:




      it should redirect on fist.jsf located on the same folder (META-INF/resources/first/first.xhtml).


      If i call directly the jsp using http://wildfly8-twiliofaces1.rhcloud.com/first/first.jsp

      it works correctly and redirect on first.jsf.


      But if i call the folder path:


      i receive "Error".


      The welcome-file-list mechanism does correctly with folders on the root of war.


      My source code is: https://github.com/fiorenzino/wildfly8-welcome-file-list


      thank's en advance