-
1. Re: Wildfly 10 exploded deployment not finding classes
ctomc Feb 9, 2016 3:40 PM (in response to wadmin78)so jsps are packed outside war?
-
2. Re: Wildfly 10 exploded deployment not finding classes
wadmin78 Feb 9, 2016 3:48 PM (in response to wadmin78)Thanks for the reply. Yes, the jsps are outside of the APP.war, but inside the /APP directory.
-
3. Re: Wildfly 10 exploded deployment not finding classes
jaikiran Feb 10, 2016 10:50 PM (in response to wadmin78)wadmin78 wrote:
Thanks for the reply. Yes, the jsps are outside of the APP.war, but inside the /APP directory.
This is the first time I'm seeing such deployment and I'm not even sure how the JSP will be accessible in such cases since it's not bound to a web context (unless of course your deployment has some other configurations that haven't been posted here). Anyway, what's the reason for putting those jsps outside of the .war instead of within the .war?
-
4. Re: Wildfly 10 exploded deployment not finding classes
wadmin78 Feb 11, 2016 9:59 AM (in response to wadmin78)In the existing legacy implementation the jsps are in this same structure outside the WEB-INF but inside the APP directory tree. We know there is different opinions on exposing jsp URLs, but this is how the implementation is currently structured. Best case would be to migrate in a similar structure if possible.
With regards to the file hierarchy and placement of the jsps , from what we can tell, having the jsp outside of WEB-INF is consistent with the servlet 3.1 specifications for directory structure in section 10.5, and the example provided in 10.5.1 (JSR-000340 Java Servlet 3.1 Final Release for Evaluation )
10.5.1 example in servlet 3.1 doc:
/index.html
/howto.jsp
/feedback.jsp
/images/banner.gif
/images/jumping.gif
/WEB-INF/web.xml
/WEB-INF/lib/jspbean.jar
/WEB-INF/lib/catalog.jar
!/METAINF/resources/catalog/moreOffers/books.html
/WEB-INF/classes/com/mycorp/servlets/MyServlet.class
/WEB-INF/classes/com/mycorp/util/MyUtils.class
Some additional set-up information,
standalone.xml
<deployments>
<deployment name="APP.war" runtime-name="APP.war">
<fs-exploded path="/user/xxxx/APP"/>
</deployment>
</deployments>
jboss-web.xml:
<jboss-web>
<context-root>/</context-root>
</jboss-web>
no web.xml (seems to not be required per servlet 3.1)
Certainly open to input either way
Thanks.. John