问题描述
tomcat5下启动错误,tomcat6正常;求解严重:WSP0025:com.sun.xml.ws.policy.spi.PolicyAssertionValidator:WSP0028:Serviceprovidercom.sun.xml.ws.rm.jaxws.util.RMPolicyValidatorcouldnotbeinstantiatedjava.lang.ClassCastExceptionatjava.lang.Class.cast(UnknownSource)atcom.sun.xml.ws.policy.privateutil.ServiceFinder$LazyIterator.next(ServiceFinder.java:378)atcom.sun.xml.ws.policy.privateutil.ServiceFinder.toArray(ServiceFinder.java:228)atcom.sun.xml.ws.policy.privateutil.PolicyUtils$ServiceProvider.load(PolicyUtils.java:445)atcom.sun.xml.ws.policy.AssertionValidationProcessor.<clinit>(AssertionValidationProcessor.java:55)atcom.sun.xml.ws.policy.jaxws.WSDLPolicyMapWrapper.validateServerSidePolicies(WSDLPolicyMapWrapper.java:146)atcom.sun.xml.ws.policy.jaxws.PolicyWSDLParserExtension.postFinished(PolicyWSDLParserExtension.java:1053)atcom.sun.xml.ws.wsdl.parser.DelegatingParserExtension.postFinished(DelegatingParserExtension.java:187)atcom.sun.xml.ws.wsdl.pa
解决方案
解决方案二:
PolicyAssertionValidator类容器不识别
解决方案三:
这种问题是包冲突呢!还是什么情况导致的呢!
解决方案四:
PolicyAssertionValidator是jdk1.6.0.0.022以后才会有的,以前是没有这个的
解决方案五:
我遇到同样的问题,确实是包冲突造成的。在myeclipse下webproject建立webservice,没引入额外的包,myeclipsetomcat可以启动部署的webservice,但是导入额外的一系列jaxws包会报这种错误;同样的webproject部署在另外安装的tomcat上,需要导入一系列jaxws的jar包;