博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
webservice wsdl axis2报错 Provider com.bea.xml.stream.MXParserFactory not found
阅读量:4993 次
发布时间:2019-06-12

本文共 2864 字,大约阅读时间需要 9 分钟。

错误信息:

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.apache.axiom.om.util.StAXUtils$7.run(StAXUtils.java:504)    at java.security.AccessController.doPrivileged(Native Method)    at org.apache.axiom.om.util.StAXUtils.newXMLInputFactory(StAXUtils.java:494)    at org.apache.axiom.om.util.StAXUtils.getXMLInputFactory_perClassLoader(StAXUtils.java:565)    at org.apache.axiom.om.util.StAXUtils.getXMLInputFactory(StAXUtils.java:171)    at org.apache.axiom.om.util.StAXUtils.getXMLInputFactory(StAXUtils.java:136)    at org.apache.axiom.om.util.StAXUtils.createXMLStreamReader(StAXUtils.java:223)    at org.apache.axiom.om.impl.llom.factory.AbstractOMMetaFactory.createXMLStreamReader(AbstractOMMetaFactory.java:53)    at org.apache.axiom.om.impl.llom.factory.AbstractOMMetaFactory.createOMBuilder(AbstractOMMetaFactory.java:95)    at org.apache.axiom.om.OMXMLBuilderFactory.createOMBuilder(OMXMLBuilderFactory.java:153)    at org.apache.axiom.om.OMXMLBuilderFactory.createOMBuilder(OMXMLBuilderFactory.java:133)    at org.apache.axiom.om.OMXMLBuilderFactory.createOMBuilder(OMXMLBuilderFactory.java:104)    at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:590)    at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:575)    at org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:97)    at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:90)    at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:857)    at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:116)    at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)    at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:210)    at org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:151)    at org.apache.axis2.client.ServiceClient.
(ServiceClient.java:144) at org.apache.axis2.client.ServiceClient.
(ServiceClient.java:251) at org.apache.axis2.rpc.client.RPCServiceClient.
(RPCServiceClient.java:48) at com.neusoft.ermsuite.css.sv.svac.svrequest.bo.test.main(test.java:17)

 

 

问题背景:

java main 中调用webservice wsdl

 

问题原因:

缺少jar包wstx-asl.jar

stax-api.jar

解决:
导入jar包

wstx-asl.jar,如果导入后仍然报错,请导入stax-api.jar

 

转载于:https://www.cnblogs.com/chenv/p/5856503.html

你可能感兴趣的文章
现代计算机接口实验 (三)8255实验
查看>>
spring——获取ClassLoader
查看>>
javascript函数
查看>>
luogu4093 序列 (cdq分治优化dp)
查看>>
BZOJ 2588: Spoj 10628. Count on a tree( LCA + 主席树 )
查看>>
从零开始学算法(一)
查看>>
d3d 纹理坐标1:1对应到屏幕坐标.
查看>>
SQL Server优化器特性-隐式谓词
查看>>
国内不谈Java--硅谷有感
查看>>
hdu3371
查看>>
zoj1456 Minimum Transport Cost
查看>>
悬挂else引发的问题
查看>>
js题集29--部分题目在线答题链接地址
查看>>
PCLint 帮助中关于如何获得gcc/g++编译宏定义和头文件搜索目录的方法说明
查看>>
依赖注入模式
查看>>
Backbone.js之Todo源码浅析
查看>>
传统软件企业之殇
查看>>
[bzoj4491]我也不知道题目名字是什么
查看>>
CSS pusle雷达动画实现
查看>>
【问题解决方案】之 Word 公式编辑器 使用小tips
查看>>