英文:
java.lang.NoClassDefFoundError: org/apache/wicket/util/convert/converter/ZeroPaddingIntegerConverter
问题
以下是翻译好的内容:
我的应用在使用Wicket 7.6.0时运行良好。但是在从Wicket 7.6迁移到8.5后,我现在遇到以下异常。
Caused by: java.lang.NoClassDefFoundError: org/apache/wicket/util/convert/converter/ZeroPaddingIntegerConverter
at org.apache.wicket.extensions.yui.calendar.DateTimeField.<clinit>(DateTimeField.java:119)
Caused by: java.lang.ClassNotFoundException: org.apache.wicket.util.convert.converter.ZeroPaddingIntegerConverter
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1358)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1180)
... 77 more
在我的代码中没有使用过这个类 "ZeroPaddingIntegerConverter",但仍然因为这个类而出现错误。
:
在Wicket 8.x版本中,ZeroPaddingIntegerConverter类已被弃用。
英文:
My application was running fine with Wicket 7.6.0. But now I am facing below exception after migration from Wicket 7.6 to 8.5.
Caused by: java.lang.NoClassDefFoundError: org/apache/wicket/util/convert/converter/ZeroPaddingIntegerConverter
at org.apache.wicket.extensions.yui.calendar.DateTimeField.<clinit>(DateTimeField.java:119)
Caused by: java.lang.ClassNotFoundException: org.apache.wicket.util.convert.converter.ZeroPaddingIntegerConverter
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1358)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1180)
... 77 more
In my code nowhere used this class "ZeroPaddingIntegerConverter" but still getting this error for this class.
:
ZeroPaddingIntegerConverter class has been deprecated in Wicket 8.x version.
答案1
得分: 3
wicket-datetime模块已在Wicket 8中被移除,并迁移到[WicketStuff][1]。在您的代码中,您可能正在混合使用旧的wicket-datetime模块(7.6.0)与Wicket 8.5.0。只需移除旧模块,并使用WicketStuff依赖替换:
<dependency>
<groupId>org.wicketstuff</groupId>
<artifactId>wicket-datetime</artifactId>
<version>8.5.0</version>
</dependency>
[1]: https://github.com/wicketstuff/core/tree/master/wicket-datetime-parent
英文:
wicket-datetime module has been removed with Wicket 8 and moved to WicketStuff. In your code you are probably mixing the old wicket-datetime module (7.6.0) with Wicket 8.5. Just remove the old module and replace it with WicketStuff dependency:
<dependency>
<groupId>org.wicketstuff</groupId>
<artifactId>wicket-datetime</artifactId>
<version>8.5.0</version>
</dependency>
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论