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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 15:23:53  来源:igfitidea点击:

Requested factory com.ctc.wstx.stax.WstxInputFactory cannot be located

javaweb-servicesoracle-agile-plm

提问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.jarin \Agile\Agile931\integration\sdk\extensionsfolder.

所以我复制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>

回答by skaffman

com.ctc.wstx.staxrefers to the Woodstox StAX parser. You can download that here, and add it to your classpath.

com.ctc.wstx.stax指的是 Woodstox StAX 解析器。您可以在此处下载,并将其添加到您的类路径中。