Wicket 从 1.4.9 迁移到 7.9.0 后 Wiquery 1.0.2 jar 抛出错误

After Wicket migration from 1.4.9 to 7.9.0 Wiquery 1.0.2 jar throwing error

我已将 Wicket 从 1.4.9 迁移到 7.9.0。在这些 maven 清理和安装成功之后,在 tomcat 中部署时抛出 error.Please 下面有人帮助我。 wiquery 1.0.2 jar是否支持wicket 7.9.0.

SEVERE: Exception starting filter wicket.dpt
java.lang.NoSuchMethodError: org.apache.wicket.Application.setMetaData(Lorg/apache/wicket/MetaDataKey;Ljava/lang/Object;)V
    at org.odlabs.wiquery.core.commons.WiQueryInstantiationListener.<init>(WiQueryInstantiationListener.java:69)
    at org.odlabs.wiquery.core.commons.WiQueryInitializer.init(WiQueryInitializer.java:53)
    at org.apache.wicket.Application.initInitializers(Application.java:734)
    at org.apache.wicket.Application.initializeComponents(Application.java:642)
    at org.apache.wicket.Application.initApplication(Application.java:952)
    at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:429)
    at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:353)
    at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:285)
    at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:266)
    at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
    at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4747)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5389)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1410)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1400)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)

您也需要升级 Wiquery:

org.wicketstuff:wiquery 7.x