Wildy 10.1.0 doesn't work for some jsp:include.
sepgs2004 Jun 8, 2017 3:08 PMLet us say the file (cycleList.jsp) is in this path:
C:\develop\wildfly-10.1.0.Final\standalone\deployments\myapp.ear\myWeb.war\jsp\pages\fields
EAR file deploy successfully
I am able to access many pages of the application good
In one JSP page, I have code like below.
<jsp:include page="/jsp/pages/fields/cycleList.jsp" flush="true" />
Application does not load this JSP. It silently fails (to load).
This was working in JBoss 7.1.1
On the browser, if I put http://localhost:8080/myapp/, it goes to the index page
However, if i access http://localhost:8080/myapp/jsp/pages/fields/cycleList.jsp, it say access "HTTP 403 forbidden".
This could mean that, from the browser, jboss is able to see the folder
but why not <jsp:include...>
contents of my application.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC
"-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
"http://java.sun.com/dtd/application_1_3.dtd">
<application>
<display-name>myapp</display-name>
<description>Parent project for artifacts.</description>
<module>
<web>
<web-uri>myWeb.war</web-uri>
<context-root>myapp</context-root>
</web>
</module>
</application>
I do not have anything mentioned for context-root in jboss-web.xml
When wildfly starts, I see this message below in the log file
10:55:54,306 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 81) WFLYUT0021: Registered web context: /myapp
If it helps for this to know the following in the log including the version of the so called undertow, this is what I see...
10:55:26,345 INFO [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0003: Undertow 1.4.0.Final starting
10:55:26,528 INFO [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0006: Undertow HTTP listener default listening on 0.0.0.0:8080
10:55:54,446 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://0.0.0.0:9990/management
10:55:54,447 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://0.0.0.0:9990
10:55:54,447 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 10.1.0.Final (WildFly Core 2.2.0.Final) started in 31299ms - Started 1818 of 2090 services (456 services are lazy, passive or on-demand)
Could you please guide me?
Message was edited by: Gnanasekaran Sakthivel - because the title could mislead people.