Exception in thread "main" javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.MXParserFactory not found
 at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:72)
 at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176)
 at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92)
 at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
 at org.codehaus.xfire.util.STAXUtils.<clinit>(STAXUtils.java:48)
 at org.codehaus.xfire.transport.http.HttpChannel.writeWithoutAttachments(HttpChannel.java:54)
 at org.codehaus.xfire.transport.http.CommonsHttpMessageSender.getByteArrayRequestEntity(CommonsHttpMessageSender.java:422)
 at org.codehaus.xfire.transport.http.CommonsHttpMessageSender.send(CommonsHttpMessageSender.java:360)
 at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:123)
 at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
 at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
 at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
 at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)
 at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)
 at org.codehaus.xfire.client.Client.invoke(Client.java:336)
 at org.codehaus.xfire.client.Client.invoke(Client.java:368)
 at com.zzidc.vps.webservices.VPSWebServices.invokeVPS(VPSWebServices.java:53)
 at com.zzidc.util.VPSUtils.main(VPSUtils.java:105)

 
类路径中的包没有StAX 接口的实现
解决方案:
添加缺少的stax-1.2.0.jar包
下载stax-1.2.0.jar包 下载地址: http://mirrors.ibiblio.org/pub/mirrors/maven2/stax/stax/1.2.0/stax-1.2.0.jar

了解更多请移步路人甲技术交流 http://www.walkerjava.com 期待您的加入