admin管理员组文章数量:1356895
I'm trying to update my application from javax/java8
to jakarta/java17
. In the process I also updated the jaxb
packages.
My build.gradle
has, among else, these dependencies:
implementation 'jakarta.xml.bind:jakarta.xml.bind-api:4.0.2'
implementation '.glassfish.jaxb:jaxb-runtime:4.0.5'
implementation '.jvnet.jaxb:jaxb-plugins-runtime:4.0.8'
implementation '.jvnet.jaxb:jaxb-plugins-tools:4.0.8'
implementation '.jvnet.jaxb:jaxb-plugins:4.0.8'
They're all at their latest version.
When initializing the application I'm getting this error:
Caused by: java.lang.NoClassDefFoundError: /jvnet/jaxb/lang/Equals
Caused by: java.lang.ClassNotFoundException: .jvnet.jaxb.lang.Equals
Why is .jvnet.jaxb.lang.Equals
not found when I include all the dependencies?
I'm trying to update my application from javax/java8
to jakarta/java17
. In the process I also updated the jaxb
packages.
My build.gradle
has, among else, these dependencies:
implementation 'jakarta.xml.bind:jakarta.xml.bind-api:4.0.2'
implementation '.glassfish.jaxb:jaxb-runtime:4.0.5'
implementation '.jvnet.jaxb:jaxb-plugins-runtime:4.0.8'
implementation '.jvnet.jaxb:jaxb-plugins-tools:4.0.8'
implementation '.jvnet.jaxb:jaxb-plugins:4.0.8'
They're all at their latest version.
When initializing the application I'm getting this error:
Caused by: java.lang.NoClassDefFoundError: /jvnet/jaxb/lang/Equals
Caused by: java.lang.ClassNotFoundException: .jvnet.jaxb.lang.Equals
Why is .jvnet.jaxb.lang.Equals
not found when I include all the dependencies?
1 Answer
Reset to default 0You shouldn't include the following since they are designed for JAXB2.3 and not JAXB4
implementation '.jvnet.jaxb:jaxb2-basics:2.0.14'
implementation '.jvnet.jaxb:jaxb2-basics-runtime:2.0.14'
The class .jvnet.jaxb.lang.Equals
is in .jvnet.jaxb:jaxb-plugins-runtime
module. Could you try again without the modules above ?
EDIT
You should also make sure that the following is one of your project dependency too :
implementation '.jvnet.jaxb:jaxb-plugins-runtime:4.0.8'
本文标签:
版权声明:本文标题:xsd - Getting `java.lang.ClassNotFoundException: org.jvnet.jaxb.lang.Equals` after upgrading to jakarta and Java 17 - Stack Over 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744037833a2580106.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论