当前位置:编程学习 > JAVA >>

tamcat发布webservice报错(jaxws)

各位大侠们:tamcat发布webservice报错(jaxws),帮帮忙呢!纠结了好几天的

严重: Exception sending context initialized event to listener instance of class com.sun.xml.ws.transport.http.servlet.WSServletContextListener
com.sun.xml.ws.transport.http.servlet.WSServletException: WSSERVLET11: 无法解析运行时描述符: com.sun.xml.ws.policy.privateutil.ServiceConfigurationError: WSP0025: com.sun.xml.ws.policy.spi.PolicyAssertionValidator: WSP0028: Service provider com.sun.xml.ws.security.impl.policy.SecurityPolicyValidator could not be instantiated
at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.parseAdaptersAndCreateDelegate(WSServletContextListener.java:141)
at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:152)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: com.sun.xml.ws.policy.privateutil.ServiceConfigurationError: WSP0025: com.sun.xml.ws.policy.spi.PolicyAssertionValidator: WSP0028: Service provider com.sun.xml.ws.security.impl.policy.SecurityPolicyValidator could not be instantiated
at com.sun.xml.ws.policy.privateutil.ServiceFinder.fail(ServiceFinder.java:240)
at com.sun.xml.ws.policy.privateutil.ServiceFinder.access$100(ServiceFinder.java:143)
at com.sun.xml.ws.policy.privateutil.ServiceFinder$LazyIterator.next(ServiceFinder.java:386)
at com.sun.xml.ws.policy.privateutil.ServiceFinder.toArray(ServiceFinder.java:232)
at com.sun.xml.ws.policy.privateutil.PolicyUtils$ServiceProvider.load(PolicyUtils.java:455)
at com.sun.xml.ws.policy.AssertionValidationProcessor.<init>(AssertionValidationProcessor.java:85)
at com.sun.xml.ws.api.policy.ValidationProcessor.<init>(ValidationProcessor.java:73)
at com.sun.xml.ws.api.policy.ValidationProcessor.getInstance(ValidationProcessor.java:83)
at com.sun.xml.ws.policy.jaxws.DefaultPolicyResolver.validateServerPolicyMap(DefaultPolicyResolver.java:88)
at com.sun.xml.ws.policy.jaxws.DefaultPolicyResolver.resolve(DefaultPolicyResolver.java:69)
at com.sun.xml.ws.policy.jaxws.PolicyWSDLParserExtension.postFinished(PolicyWSDLParserExtension.java:962)
at com.sun.xml.ws.wsdl.parser.DelegatingParserExtension.postFinished(DelegatingParserExtension.java:191)
at com.sun.xml.ws.wsdl.parser.WSDLParserExtensionFacade.postFinished(WSDLParserExtensionFacade.java:338)
at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:337)
at com.sun.xml.ws.server.EndpointFactory.getWSDLPort(EndpointFactory.java:641)
at com.sun.xml.ws.server.EndpointFactory.create(EndpointFactory.java:239)
at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:145)
at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:569)
at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:552)
at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapters(DeploymentDescriptorParser.java:261)
at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parse(DeploymentDescriptorParser.java:153)
at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.parseAdaptersAndCreateDelegate(WSServletContextListener.java:131)
... 25 more
Caused by: java.lang.ClassCastException
at java.lang.Class.cast(Class.java:2990)
at com.sun.xml.ws.policy.privateutil.ServiceFinder$LazyIterator.next(ServiceFinder.java:382)
... 44 more --------------------编程问答-------------------- jdk版本 1.6.0_23 以上
补充:Java ,  Web 开发
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,