I believe I found the problem.

It appears Wicket does not really pass non-Wicket requests back to a
default handler, but handles them by itself in fallback() by using
getResourceAsStream() and in this case, for directories, WebSphere
returns a listing regardless of its own directoryBrowsingEnabled
setting.

On Wed, Aug 28, 2013 at 7:23 PM, Sven Meier <s...@meiers.net> wrote:
> Wicket expects the path to end in a wildcard.
>
> Note that using WicketFilter instead of WicketServlet is recommended.
>
> Sven
>
>
> On 08/28/2013 05:07 PM, alessio wrote:
>>
>> Thanks, so basically the /* mapping should not interfere with
>> non-Wicket requests?
>>
>> In other words, static content as well as potential directory listings
>> (respectively related error messages if disabled) will always be
>> passed on and served by the underlying application server (be it
>> WebSphere or Tomcat or .....), correct?
>>
>>
>> Would you know why the StringIndexOutOfBoundsException occurs when I
>> map the servlet to / without the wildcard/asterisk?
>>
>> I tried upgrading from 1.5.3 to 1.5.10 but still get the same exception
>>
>> java.lang.StringIndexOutOfBoundsException
>> java.lang.String.substring(String.java:1238)
>> org.apache.wicket.util.file.WebXmlFile.getFilterPath(WebXmlFile.java:249)
>> org.apache.wicket.util.file.WebXmlFile.getFilterPath(WebXmlFile.java:88)
>>
>> org.apache.wicket.util.file.WebXmlFile.getUniqueFilterPath(WebXmlFile.java:67)
>>
>> org.apache.wicket.protocol.http.WicketFilter.getFilterPathFromWebXml(WicketFilter.java:452)
>> org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:360)
>> org.apache.wicket.protocol.http.WicketServlet.init(WicketServlet.java:271)
>> javax.servlet.GenericServlet.init(GenericServlet.java:160)
>>
>>
>>
>>
>>
>> On Wed, Aug 28, 2013 at 3:53 PM, Sven Meier <s...@meiers.net> wrote:
>>>>
>>>> Wicket passes such requests back to the default handler
>>>
>>>
>>> Yes, see WicketServlet#fallback()
>>>
>>>
>>>> whether Wicket actually returns directory listings at all?
>>>
>>>
>>> No, it doesn't.
>>>
>>> Regards
>>> Sven
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to