-
1. Re: Wildfly 8.1.0 doesn't allow to access jar files from war context
ctomc Jun 5, 2014 2:15 PM (in response to fuzao)Just add this config to your web.xml
<servlet>
<servlet-name>default</servlet-name>
<servlet-class>io.undertow.servlet.handlers.DefaultServlet</servlet-class>
<init-param>
<param-name>allowed-extensions</param-name>
<param-value>js, css, png, jpg, gif, html, htm, txt, pdf, jpeg, xml, zip</param-value>
</init-param>
<init-param>
<param-name>disallowed-extensions</param-name>
<param-value>class, jar, war</param-value>
</init-param>
</servlet>and modify allowed / disallowed extensions anyway you want
-
2. Re: Wildfly 8.1.0 doesn't allow to access jar files from war context
fuzao Jun 5, 2014 4:38 PM (in response to ctomc)That works for me for thanx.
Nevertheless I have to say that's not a good solution, since it hooks applications with undertow project. If one wants to change application change, web.xml needs to me modified.
Is there any possibility to configure this in standalone.xml into undertow subsystem?
-
3. Re: Wildfly 8.1.0 doesn't allow to access jar files from war context
ctomc Jun 5, 2014 4:48 PM (in response to fuzao)we are working on expose this configuration in subsystem config, and also change what current defaults are.
if you are up for it, can you create jira for it, so we can track it.