本文介绍了weblogic 11g部署错误,违反加载程序约束:解决字段"DATETIME"时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将maven jersey rest services依赖项添加到我的项目中.它运作良好,但是如果我尝试部署weblogic 11g,则会收到此错误

i add my project the maven jersey rest services dependency. It's working well, but if I try to deploy weblogic 11g i got this error

[HTTP:101216] Servlet:启动Web应用程序"PstnIptalv1.war"时无法预加载"jersey-serlvet". java.lang.LinkageError:违反加载器约束:解析字段"DATETIME"时,引用类的类加载器(weblogic/utils/classloaders/ChangeAwareClassLoader的实例)

[HTTP:101216]Servlet: "jersey-serlvet" failed to preload on startup in Web application: "PstnIptalv1.war". java.lang.LinkageError: loader constraint violation: when resolving field "DATETIME" the class loader (instance of weblogic/utils/classloaders/ChangeAwareClassLoader) of the referring class,

推荐答案

请确保您的weblogic.xml文件中包含preferred-web-inf,否则可能与weblogic为您提供的类冲突

Make sure you have prefer-web-inf in you weblogic.xml file Otherwise it might conflict with a class weblogic is providing for you

<container-descriptor>
    <prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>

这篇关于weblogic 11g部署错误,违反加载程序约束:解决字段"DATETIME"时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-17 10:17
查看更多