我试图在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
答案 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。