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.
相关推荐
这个示例通过整合Weblogic92、CXF、XDoclet和Spring,演示了如何高效地创建和部署Web服务,同时利用XDoclet自动化的代码生成功能简化了开发流程。开发者可以在此基础上学习如何在实际项目中运用这些技术和工具。
通过以上步骤,大多数在WebLogic上部署CXF服务时遇到的问题都能得到解决。在实际操作中,应确保所有JAR包版本与WebLogic服务器的兼容性,并遵循WebLogic的部署最佳实践,例如使用正确的类加载策略和系统属性设置,以...
本文将深入探讨Spring整合WebService所需的关键知识点,以及如何配置相关的jar包。 首先,让我们了解一下Spring框架。Spring是一个开源的Java平台,它为开发企业级应用提供了全面的基础设施。它支持依赖注入(DI)...
### WebService_CXF 学习知识点详解 #### 一、WebService 概述 - **定义与作用**:WebService 是一种让程序能够透明地调用互联网上其他程序的技术,无需关心其实现细节。只要 WebService 公开了服务接口,远程...
#### 四、解决部署问题 - 当部署到 WebLogic 9.2 时,可能会遇到启动异常。 - 可以通过在实现类中设置系统变量,或者在 WebLogic 的启动脚本中添加特定的 JAR 文件来解决。 - 示例中提到了 `wstx-asl-3.2.2.jar`,这...
它具有高度的灵活性,可以在多种应用服务器上部署,包括Tomcat、JBoss、Jetty以及WebLogic。 在开始使用CXF之前,你需要从官方网站下载并解压Apache CXF的最新版本。解压缩后,你会看到一个bin目录,其中包含了一些...
### WebService与CXF基础知识详解 #### 一、WebService简介 **WebService** 是一种通过网络提供的服务,允许不同系统之间进行交互。它采用标准的Internet协议(如HTTP、XML、SOAP等),使得不同语言编写的程序能够...
CXF框架的部署十分灵活,既可在轻量级容器如Tomcat或Spring支持的容器中运行,也可整合到JBI容器如ServiceMix、OpenESB或Petals中,甚至在J2EE应用服务器上部署,如Geronimo、JOnAS、JBoss、WebLogic及WebSphere。...
这使得CXF具有高度的灵活性,能够在轻量级容器(如Tomcat)到全功能的J2EE应用服务器(如Geronimo、JOnAS、JBoss、WebLogic和WebSphere)等各种环境中部署。 为了满足不同编程需求,CXF提供了全面的API支持,包括...
在部署时,需要将JAR文件放置在指定的部署目录下,比如user_projects\domains\testDomain\autodeploy。WEBLOGIC提供了一个自动部署的功能,可以自动识别部署目录中的新文件,并完成部署。 部署工程后,可能需要在...
8. **部署和运行**:在服务器上部署SOAP服务通常涉及将WAR文件(Web应用程序归档)部署到应用服务器,如Tomcat、JBoss或WebLogic。服务端的jar文件应包含在类路径中,以确保服务正常运行。 9. **测试工具**:为了...
- 将 CXF 相关的 `.jar` 文件复制到项目的 `WEB-INF/lib` 目录下,并确保这些 `.jar` 文件被添加到项目的 Java Build Path 中。 2. **接口定义**: - 创建一个接口 `ISurveyService` 并使用 `@WebService` 注解...
WAS (Web Application Server)**:Web应用服务器是用于部署、运行Web应用程序的服务器软件,常见的有IBM WebSphere、Oracle WebLogic等。本文主要讨论的是IBM WebSphere。 **2. WebService资源**:WebService是一...
通过添加CXF库到项目的类路径,可以在Tomcat中发布和消费Web服务,同时解决自动生成WSDL中参数和返回值的命名问题。 ### 4. 部署和测试 发布服务后,可以通过WSDL文件地址进行测试,例如`...
在实际应用中,JAX-WS通常与Java EE服务器(如Tomcat、JBoss或WebLogic)一起使用,或者在Java SE环境中通过Apache CXF、Metro等实现库来提供和使用Web服务。开发者可以利用JAX-WS的强大功能,轻松地构建符合SOA...