NoContentException 的 NoClassDefFoundError
我有一个使用 Jackson 2.4.5 的 Grails 2.5.4 应用程序。我需要将 databind 更新到 2.13.1。
编译组:'com.fasterxml.jackson.jaxrs',名称:'jackson-jaxrs-json-provider',版本:'2.4.5'
compile group: 'com.fasterxml.jackson.jaxrs', name: 'jackson-jaxrs-base', version: '2.4.5'
只需将其更改为 2.13.1 就会出现错误,表明我需要包括其他东西。我添加了数据绑定(这是我需要升级的特定部分),现在它看起来像这样:
compile group: 'com.fasterxml.jackson.jaxrs', name: 'jackson-jaxrs-json-provider' ,版本:'2.13.1' 编译组:'com.fasterxml.jackson.jaxrs',名称:'jackson-jaxrs-base',版本:'2.13.1'
编译组:'com.fasterxml.jackson。 core', name: 'jackson-databind', version: '2.13.1'
但现在当我尝试构建它时,出现错误由于缺少依赖项 NoContentException
,JacksonJaxbJsonProvider
出现 NoClassDefFoundError
。我搜索了一下,显然 NoContentException
只是 Java 的一部分,所以我不确定“缺失”是什么意思。
我发现这个线程说 2.8.5 中已进行了修复,但是,显然这在这里没有帮助。我还尝试了线程底部附近的 javax.ws.rs-api 2.0.1 位,但这也没有改变任何内容。
I have a Grails 2.5.4 application using Jackson 2.4.5. I have a requirement to update databind to 2.13.1.
compile group: 'com.fasterxml.jackson.jaxrs', name: 'jackson-jaxrs-json-provider', version: '2.4.5'
compile group: 'com.fasterxml.jackson.jaxrs', name: 'jackson-jaxrs-base', version: '2.4.5'
Simply changing it to 2.13.1 gave me an error indicating I need to include something else. I added data-bind (that's the specific part I need to upgrade) so that now it looks like this:
compile group: 'com.fasterxml.jackson.jaxrs', name: 'jackson-jaxrs-json-provider', version: '2.13.1'
compile group: 'com.fasterxml.jackson.jaxrs', name: 'jackson-jaxrs-base', version: '2.13.1'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.13.1'
But now when I try to build it, I get the error NoClassDefFoundError
for JacksonJaxbJsonProvider
due to missing dependency NoContentException
. I searched, and apparently NoContentException
is simply a part Java, so I'm not sure what it means by "missing".
I found this thread that says a fix was put in 2.8.5, but, clearly that's not helping here. I also tried the javax.ws.rs-api 2.0.1
bit near the bottom of the thread, but that didn't change anything either.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论