From JEE6 we no longer need a deployment descriptor (web.xml). So how we will proceed to declare the necessary configurations of wicket?
Solution: Create an empty class that inherits from WicketFilter and annotated with the necessary config.
import javax.servlet.annotation.WebFilter; import javax.servlet.annotation.WebInitParam; import org.apache.wicket.protocol.http.WicketFilter; @WebFilter(value = "/*", initParams = { @WebInitParam(name = "applicationClassName", value = "tn.blog.dev.MyApplication"), @WebInitParam(name="wicket.configuration", value="deployment")}) public class MyFilter extends WicketFilter{ }
Note: You can add as many parameters as you want.