在weblogic上部署webservice时出错:无法转换为com.sun.xml.ws.spi.db.DatabindingProvider

时间:2015-03-30 22:01:52

标签: java web-services weblogic12c

我试图在weblogic中部署网络服务,但我收到以下错误:

    weblogic.management.DeploymentException: com.sun.xml.ws.transport.http.servlet.WSServletException: WSSERVLET11: Fallo al analizar el descriptor en tiempo de ejecución: com.sun.xml.ws.util.ServiceConfigurationError: com.sun.xml.ws.spi.db.DatabindingProvider: Provider weblogic.wsee.databinding.internal.wlsjaxrpc.JaxRpcProvider is specified in jar:file:/C:/Oracle/Middleware/Oracle_Home/oracle_common/modules/com.oracle.webservices.wls.wls-ws-metainf-services-impl_12.1.3.jar!/META-INF/services/com.sun.xml.ws.spi.db.DatabindingProviderbut could not be instantiated: java.lang.ClassCastException: Cannot cast weblogic.wsee.databinding.internal.wlsjaxrpc.JaxRpcProvider to com.sun.xml.ws.spi.db.DatabindingProvider

com.sun.xml.ws.transport.http.servlet.WSServletException: WSSERVLET11: Fallo al analizar el descriptor en tiempo de ejecución: com.sun.xml.ws.util.ServiceConfigurationError: com.sun.xml.ws.spi.db.DatabindingProvider: Provider weblogic.wsee.databinding.internal.wlsjaxrpc.JaxRpcProvider is specified in jar:file:/C:/Oracle/Middleware/Oracle_Home/oracle_common/modules/com.oracle.webservices.wls.wls-ws-metainf-services-impl_12.1.3.jar!/META-INF/services/com.sun.xml.ws.spi.db.DatabindingProviderbut could not be instantiated: java.lang.ClassCastException: Cannot cast weblogic.wsee.databinding.internal.wlsjaxrpc.JaxRpcProvider to com.sun.xml.ws.spi.db.DatabindingProvider

我做错了什么?我在我的网络服务中使用了jaxws-rt java web-services weblogic

1 个答案:

答案 0 :(得分:1)

您遇到了类冲突的问题,您在部署中发布的类以及WebLogic提供的类,正如错误消息告诉您的那样:

Cannot cast weblogic.wsee.databinding.internal.wlsjaxrpc.JaxRpcProvider to com.sun.xml.ws.spi.db.DatabindingProvider

web.xml中设置过滤器,告诉您的应用prefer its own resources