i'm trying to use the Wicket Project 'QuickStart' with Netbeans 11 , Java 11, Tomcat 10 , Wicket 9 and Ubuntu 18.04 .
When i install the war package and start it, it throws : 20-May-2020 09:23:37.067 GRAVE [] org.apache.catalina.core.StandardContext.filterStart Exception at start [wicket.quickstart] java.lang.ClassCastException: class org.apache.wicket.protocol.http.WicketFilter cannot be cast to class jakarta.servlet.Filter (org.apache.wicket.protocol.http.WicketFilter is in unnamed module of loader org.apache.catalina.loader.ParallelWebappCl*assLoader")
Has anyone seen this issue before and if it so what can i do to resolve this ?
Thanks a lot for answer(s).
The issue is that Tomcat 10 uses jakarta.**
packages (Jakarta EE 9) while Wicket 9.x is still based on javax.**
packages (Java EE 8).
The solutions are:
javax.**
based application into $TOMCAT10_HOME/webapps-javaee/
folder. It will be automatically migrated to jakarta.**
by Tomcat.Don't use Tomcat 10 yet, it works with the new jakarta packages.
Switch to version 9 instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With