Bookmarkable link

Table of contents

Notes on using Wicket with Websphere

Wicket on Websphere 6.1

By default, Websphere 6.1 will not process filters when they are not backed by a servlet or a page. Instead, it returns a 404 error.

To get the WicketFilter to work, you need to add a custom property to the Web container of your application server.

Go into the admin console, and select your server. Choose Web Container Settings, Web Container, Custom Properties. Add a new property called "" and set the value to "true." Save to the master configuration and restart your server.

WicketServlet rather than WicketFilter

Sometimes, you need to use WicketServlet rather than WicketFilter in your web.xml because Spring's ContextLoaderListener doesn't work in WAS 5.

The workaround is nominally to use ContextLoaderServlet, but if you then use a filter such as WicketFilter, it gets loaded before ContextLoaderServlet, which results in an exception from Spring.

Most likely this the configuration you would use under such condition

  • No labels