简体   繁体   English

将CXF自上而下的Web服务部署到Weblogic 12.2.1时出错

[英]Error while deploying CXF top down web service to Weblogic 12.2.1

It is a simple top down CXF web service created using cxf-codegen-plugin but the following error occurs on deployment of war/ear files to Weblogic 12.2.1 server: 它是使用cxf-codegen-plugin创建的简单的自上而下的CXF Web服务,但是在将war / ear文件部署到Weblogic 12.2.1服务器时发生以下错误:

Servlet: "cxf" failed to preload on startup in Web application: "SampleInfo.war".
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cxf' defined in class path resource [META-INF/cxf/cxf.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.cxf.bus.spring.SpringBus]: **Constructor threw exception; nested exception is org.apache.cxf.bus.extension.ExtensionException: Could not load extension class org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl.**
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:997)

Caused By: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.apache.cxf.bus.spring.SpringBus]: Constructor threw exception; nested exception is org.apache.cxf.bus.extension.ExtensionException: **Could not load extension class org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl.**

**Caused By: org.apache.cxf.bus.extension.ExtensionException: Could not load extension class org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl.**

Caused By: java.lang.IncompatibleClassChangeError: Implementing class
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at weblogic.utils.classloaders.GenericClassLoader.defineClassInternal(GenericClassLoader.java:1065)
at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:998)
Truncated. see log file for complete stacktrace
**The dependencies under pom.xml are as under:**

cxf-rt-frontend-jaxws Version 3.1.4
cxf-rt-transports-http Version 3.1.4
cxf-xjc-runtime Version 3.0.5
spring-web Version 4.1.4.RELEASE

neethi.jar和cxf-rt-ws-policy.jar存在一些冲突,当我从war文件中删除cxf jar时,这些冲突得以解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM