1.异常:
Exception in thread "main" javax.xml.ws.WebServiceException: Provider com.sun.xml.ws.spi.ProviderImpl not found
at javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:38)
at javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:133)
at javax.xml.ws.spi.Provider.provider(Provider.java:83)
at javax.xml.ws.Service.<init>(Service.java:56)
at com.common.IDispatchControl.<init>(IDispatchControl.java:52)
at com.common.NewConvergenceQuery.reqService(NewConvergenceQuery.java:41)
at com.common.NewConvergenceQuery.payRsp(NewConvergenceQuery.java:33)
at com.common.NewConvergenceQuery.main(NewConvergenceQuery.java:132)
Caused by: java.lang.ClassNotFoundException: com.sun.xml.ws.spi.ProviderImpl
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:34)
... 7 more
2.jdk 从 1.6 升到 1.7 后此问题解决。这个问题可能是jdk版本影响的,试着升一下jdk版本。
新建日期: 2018.02.01
修改日期: 2020.05.13
版本: V1.1
修改内容: 新建;新增版本信息;