我正在使用Weblogic 12c。我试图在Weblogic中部署myApplication.war。在部署过程中,我会出现以下错误。
An error occurred during activation of changes, please see the log for details.
Message icon - Error java.util.ServiceConfigurationError: javax.xml.stream.XMLInputFactory: Provider com.ctc.wstx.stax.WstxInputFactory not a subtype
Message icon - Error javax.xml.stream.XMLInputFactory: Provider com.ctc.wstx.stax.WstxInputFactory not a subtype 我能够在weblogic-10、Jboss和Tomcat中部署相同的myApplication.war。但不是在温布里克-12C。
我搜索了一下,发现我需要包含xercesImpl.jar的依赖项。我也包括了,但是,这种力量是有帮助的。但我仍然面临着同样的问题。
我试过包括一些其他的依赖,它们是。
<dependency>
<groupId>com.fasterxml.woodstox</groupId>
<artifactId>woodstox-core</artifactId>
<version>5.0.2</version>
</dependency>
<dependency>
<groupId>org.codehaus.woodstox</groupId>
<artifactId>woodstox-core-asl</artifactId>
<version>4.4.1</version>
</dependency>
<dependency>
<groupId>org.codehaus.woodstox</groupId>
<artifactId>stax2-api</artifactId>
<version>3.1.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.codehaus.woodstox</groupId>
<artifactId>woodstox-core-lgpl</artifactId>
<version>4.4.1</version>
<scope>compile</scope>
</dependency>以上依赖项的帮助。任何解决应用程序问题的建议,任何链接。
这似乎是weblogic-12c中非常常见的问题。异常的根本原因是什么?
发布于 2018-02-08 09:31:46
我在ear pom.xml中只添加了一个依赖项。这是我在WLS 12.2.1.3中的工作。
<dependency>
<groupId>com.fasterxml.woodstox</groupId>
<artifactId>woodstox-core</artifactId>
<version>5.0.2</version>
</dependency>另一个lib被排除在外,例如org.codehaus.woodstox、stax-api。
发布于 2018-07-18 14:30:57
在WebLogic.xml中添加:
<container-descriptor>
<prefer-web-inf-classes>false</prefer-web-inf-classes>
</container-descriptor>https://stackoverflow.com/questions/42153342
复制相似问题