This content has been marked as final. Show 2 replies
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" version="3.1"> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> </web-app>
The jsp inside the jar is located on first.jar/META-INF/resources/first/index.jsp and it contains:
<% response.sendRedirect("first.jsf"); %>
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