`

Weblogic下部署CXF WebService jar冲突问题

 
阅读更多
1、问题描述
Hi,

I am newbie for web service Need your help.

I am having well developed webservice project with apache cxf 2.2.3 and working fine on Weblogic server 10.3

But After migration from 10.3 to 10.3.4 Facing below problem.

While calling call back service of third party it is giving warning messages like

12 Apr, 2011 5:42:36 PM weblogic.wsee.jaxws.framework.policy.advertisementimpl.AdvertisementHelperImpl registerExtension
WARNING: Registering oracle.j2ee.ws.wsdl.extensions.addressing.AddressingExtensionRegistry extension failed; java.lang.NoSuchMethodException: oracle.j2ee.ws.wsdl.extensions.addressing.AddressingExtensionRegistry*.registerSerializersAndTypes()*12 Apr, 2011 5:42:36 PM weblogic.wsee.jaxws.spi.WLSServiceDelegate addWsdlDefinitionFeature
SEVERE: Failed to create WsdlDefinitionFeature for wsdl location: http://serverName:port/WSDLURL, error: com.sun.xml.ws.wsdl.parser.InaccessibleWSDLException, message: 2 counts of InaccessibleWSDLException.

I tried Below solutions

1. I added com.oracle.ws.orawsdl_1.3.0.0.jar file in web service application provided the required clssess to resolve the issue. Now getting below exceptions

But getting Exception related org.apache.cxf.wsdl.WSDLManager as it is referenced from my beans.xml import some xml file from cxf 2.2.3.jar and due to
above jar, the WSDL4J.jar is not getting deployed and throwing getElementType() menthod not found exception while creating bean class for Webservice.

2. Now I just rename this jar file so that I can expose WSDL, But getting below exception after calling call back servic

12 Apr, 2011 5:42:36 PM weblogic.wsee.jaxws.framework.policy.advertisementimpl.AdvertisementHelperImpl registerExtension
WARNING: Registering oracle.j2ee.ws.wsdl.extensions.addressing.AddressingExtensionRegistry extension failed; java.lang.NoSuchMethodException: oracle.j2ee.ws.wsdl.extensions.addressing.AddressingExtensionRegistry.registerSerializersAndTypes*(com.ibm.wsdl.extensions.PopulatedExtensionRegistry)*12 Apr, 2011 5:42:36 PM weblogic.wsee.jaxws.spi.WLSServiceDelegate addWsdlDefinitionFeature
SEVERE: Failed to create WsdlDefinitionFeature for wsdl location: http://serverName:port/WSDLURL, error: com.sun.xml.ws.wsdl.parser.InaccessibleWSDLException, message: 2 counts of InaccessibleWSDLException.

After investingation I found that in cxf 2.2.3.jar there are some classes which are also present in com.oracle.ws.orawsdl_1.3.0.0.jar.

now in this case deployer is able to find out the call but signature is getting mismatch, because com.ibm.wsdl.extensions.PopulatedExtensionRegistry is referred from cxf2.2.3.jar file.
I am having below jar files in my WEB-INT/lib, If you want to suugest me to remove jar files, please suggest.

abdera-core-0.4.0-incubating.jar
abdera-extensions-json-0.4.0-incubating.jar
abdera-extensions-main-0.4.0-incubating.jar
abdera-i18n-0.4.0-incubating.jar
abdera-parser-0.4.0-incubating.jar
ant-1.6.5.jar
antlr-2.7.7.jar
aopalliance-1.0.jar
asm-2.2.3.jar
axiom-api-1.2.7.jar
axiom-impl-1.2.7.jar
axis.jar
bcel.jar
bcprov-jdk15-1.43.jar
commons-beanutils.jar
commons-codec-1.3.jar
commons-collections-3.1.jar
commons-collections.jar
commons-digester.jar
commons-discovery.jar
commons-httpclient-3.1.jar
commons-httpclient.jar
commons-lang-2.4.jar
commons-logging-1.1.1.jar
commons-logging.jar
commons-pool-1.3.jar
cxf-2.2.3.jar
cxf-manifest.jar
cxf-xjc-bug671-2.2.3.jar
FastInfoset-1.2.7.jar
geronimo-activation_1.1_spec-1.0.2.jar
geronimo-annotation_1.0_spec-1.1.1.jar
geronimo-javamail_1.4_spec-1.6.jar
geronimo-jaxws_2.1_spec-1.0.jar
geronimo-jms_1.1_spec-1.1.1.jar
geronimo-stax-api_1.0_spec-1.0.1.jar
geronimo-ws-metadata_2.0_spec-1.1.2.jar
jax-qname.jar
jaxb-api-2.1.jar
jaxb-impl-2.1.12.jar
jaxb-xjc-2.1.12.jar
jaxen-1.1.jar
jaxrpc-api.jar
jdom.jar
jettison-1.1.jar
jmi.jar
jra-1.0-alpha-4.jar
js-1.7R1.jar
jsr311-api-1.0.jar
neethi-2.0.4.jar
oro-2.0.8.jar
saaj-api-1.3.jar
saaj-api.jar
saaj-impl-1.3.2.jar
sam.jar
serializer-2.7.1.jar
slf4j-api-1.5.8.jar
slf4j-jdk14-1.5.8.jar
SoapHandlerService.jar
Spring-beans-2.5.5.jar
spring-context-2.5.5.jar
spring-context-support-2.5.5.jar
spring-core-2.5.5.jar
spring-jms-2.5.5.jar
spring-tx-2.5.5.jar
spring-web-2.5.5.jar
velocity-1.5.jar
wsdl4j-1.6.2.jar
wsdl4j.jar
wss4j-1.5.8.jar
wstx-asl-3.2.8.jar
xalan-2.7.1.jar
xercesImpl.jar
xml-resolver-1.2.jar
xmlbeans-2.4.0.jar
XmlSchema-1.4.5.jar
xmlsec-1.4.3.jar

Thanks,


2、解决方法:
Oh jee

I think you can leave out all the geronimo classes, i.e.,

geronimo-activation_1.1_spec-1.0.2.jar
geronimo-annotation_1.0_spec-1.1.1.jar
geronimo-javamail_1.4_spec-1.6.jar
geronimo-jaxws_2.1_spec-1.0.jar
geronimo-jms_1.1_spec-1.1.1.jar
geronimo-stax-api_1.0_spec-1.0.1.jar
geronimo-ws-metadata_2.0_spec-1.1.2.jar

Also the jax related ones

jax-qname.jar
jaxb-api-2.1.jar
jaxb-impl-2.1.12.jar
jaxb-xjc-2.1.12.jar
jaxen-1.1.jar
jaxrpc-api.jar

do not know what the function of these is

jdom.jar
jettison-1.1.jar
jmi.jar
jra-1.0-alpha-4.jar
js-1.7R1.jar
jsr311-api-1.0.jar

saaj is already present in Java runtime

saaj-api-1.3.jar
saaj-api.jar
saaj-impl-1.3.2.jar

There is also some other xml related stuff

xercesImpl.jar
xml-resolver-1.2.jar
xmlbeans-2.4.0.jar
XmlSchema-1.4.5.jar
xmlsec-1.4.3.jar

There are probably other jars as well, which are not relavent to your application (web service)
分享到:
评论

相关推荐

    Weblogic92+CXF+XDoclet+Spring轻松搞定webservice 例子

    这个示例通过整合Weblogic92、CXF、XDoclet和Spring,演示了如何高效地创建和部署Web服务,同时利用XDoclet自动化的代码生成功能简化了开发流程。开发者可以在此基础上学习如何在实际项目中运用这些技术和工具。

    cxf冲突_0001

    通过以上步骤,大多数在WebLogic上部署CXF服务时遇到的问题都能得到解决。在实际操作中,应确保所有JAR包版本与WebLogic服务器的兼容性,并遵循WebLogic的部署最佳实践,例如使用正确的类加载策略和系统属性设置,以...

    spring整合webservice需要jar包

    本文将深入探讨Spring整合WebService所需的关键知识点,以及如何配置相关的jar包。 首先,让我们了解一下Spring框架。Spring是一个开源的Java平台,它为开发企业级应用提供了全面的基础设施。它支持依赖注入(DI)...

    WebService_CXF学习

    ### WebService_CXF 学习知识点详解 #### 一、WebService 概述 - **定义与作用**:WebService 是一种让程序能够透明地调用互联网上其他程序的技术,无需关心其实现细节。只要 WebService 公开了服务接口,远程...

    CXF+spring+jdk1.5开发webService

    #### 四、解决部署问题 - 当部署到 WebLogic 9.2 时,可能会遇到启动异常。 - 可以通过在实现类中设置系统变量,或者在 WebLogic 的启动脚本中添加特定的 JAR 文件来解决。 - 示例中提到了 `wstx-asl-3.2.2.jar`,这...

    通过CXF构建和发布webservice工程

    它具有高度的灵活性,可以在多种应用服务器上部署,包括Tomcat、JBoss、Jetty以及WebLogic。 在开始使用CXF之前,你需要从官方网站下载并解压Apache CXF的最新版本。解压缩后,你会看到一个bin目录,其中包含了一些...

    WebService_CXF学习.doc

    ### WebService与CXF基础知识详解 #### 一、WebService简介 **WebService** 是一种通过网络提供的服务,允许不同系统之间进行交互。它采用标准的Internet协议(如HTTP、XML、SOAP等),使得不同语言编写的程序能够...

    CXF框架开发WebService概述及代码

    CXF框架的部署十分灵活,既可在轻量级容器如Tomcat或Spring支持的容器中运行,也可整合到JBI容器如ServiceMix、OpenESB或Petals中,甚至在J2EE应用服务器上部署,如Geronimo、JOnAS、JBoss、WebLogic及WebSphere。...

    WebService-CXF学习.doc

    这使得CXF具有高度的灵活性,能够在轻量级容器(如Tomcat)到全功能的J2EE应用服务器(如Geronimo、JOnAS、JBoss、WebLogic和WebSphere)等各种环境中部署。 为了满足不同编程需求,CXF提供了全面的API支持,包括...

    WEBLOGIC EJB 实现

    在部署时,需要将JAR文件放置在指定的部署目录下,比如user_projects\domains\testDomain\autodeploy。WEBLOGIC提供了一个自动部署的功能,可以自动识别部署目录中的新文件,并完成部署。 部署工程后,可能需要在...

    Soap webService 需要的 资源包 jar文件

    8. **部署和运行**:在服务器上部署SOAP服务通常涉及将WAR文件(Web应用程序归档)部署到应用服务器,如Tomcat、JBoss或WebLogic。服务端的jar文件应包含在类路径中,以确保服务正常运行。 9. **测试工具**:为了...

    cxf 开发web services apache 官方文档

    - 将 CXF 相关的 `.jar` 文件复制到项目的 `WEB-INF/lib` 目录下,并确保这些 `.jar` 文件被添加到项目的 Java Build Path 中。 2. **接口定义**: - 创建一个接口 `ISurveyService` 并使用 `@WebService` 注解...

    在WAS环境下如何配置WebService资源[整理].pdf

    WAS (Web Application Server)**:Web应用服务器是用于部署、运行Web应用程序的服务器软件,常见的有IBM WebSphere、Oracle WebLogic等。本文主要讨论的是IBM WebSphere。 **2. WebService资源**:WebService是一...

    JWS服务开发使用指南.pdf

    通过添加CXF库到项目的类路径,可以在Tomcat中发布和消费Web服务,同时解决自动生成WSDL中参数和返回值的命名问题。 ### 4. 部署和测试 发布服务后,可以通过WSDL文件地址进行测试,例如`...

    jaxws-api-2.1-1

    在实际应用中,JAX-WS通常与Java EE服务器(如Tomcat、JBoss或WebLogic)一起使用,或者在Java SE环境中通过Apache CXF、Metro等实现库来提供和使用Web服务。开发者可以利用JAX-WS的强大功能,轻松地构建符合SOA...

Global site tag (gtag.js) - Google Analytics