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

Error deploying webservice on weblogic: cannot cast to com.sun.xml.ws.spi.db.DatabindingProvider

我正在尝试在 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 网络服务 weblogic

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

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

在您的 web.xml 中设置过滤器以告知您的应用程序 prefer its own resources