java 无法找到请求的工厂 com.ctc.wstx.stax.WstxInputFactory
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6327262/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Requested factory com.ctc.wstx.stax.WstxInputFactory cannot be located
提问by Raj
I am build an Oracle Agile PLM CustomAction Px.
我正在构建一个 Oracle Agile PLM CustomAction Px。
I called a webservice inside the Px to process some data.
我在 Px 内部调用了一个 web 服务来处理一些数据。
After i deployed, it gave "Class not found exception" for javax.xml.ws.Service
我部署后,它给出了“找不到类的异常” javax.xml.ws.Service
so i copied jaxws-api-2.1-1.jar
in \Agile\Agile931\integration\sdk\extensions
folder.
所以我复制jaxws-api-2.1-1.jar
到\Agile\Agile931\integration\sdk\extensions
文件夹中。
After this this error was gone.
在此之后,此错误消失了。
Similarly i copied some other jars to remove "Class not found exception" for other classes.
同样,我复制了一些其他 jar 以删除其他类的“未找到类异常”。
But now i dont know how to remove this error:
但现在我不知道如何消除这个错误:
Requested factory com.ctc.wstx.stax.WstxInputFactory cannot be located. Classloader =Agile.root:0.0.0
无法找到请求的工厂 com.ctc.wstx.stax.WstxInputFactory。类加载器 =Agile.root:0.0.0
回答by Reimeus
If you're using Maven you can add the dependency
如果您使用的是 Maven,则可以添加依赖项
<dependency>
<groupId>com.fasterxml.woodstox</groupId>
<artifactId>woodstox-core</artifactId>
<version>5.0.2</version>
</dependency>