问题描述
我使用的是 Weblogic 12c.我正在尝试在 Weblogic 中部署 myApplication.war.部署时出现以下错误.
I am using Weblogic 12c. I m trying to deploy myApplication.war in Weblogic.While deploying i get bellow error.
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.但不是在 weblgic-12c 中.
The same myApplication.war I am able to deploy in weblogic-10,Jboss and Tomcat. But not in weblgic-12c.
我用谷歌搜索,发现我需要包含 xercesImpl.jar
的依赖项.我包括了,但是,这有帮助.我仍然面临同样的问题.
I googled and found that i need to include dependency for xercesImpl.jar
. I included that but, That dint help. still I am facing the same issue.
我尝试包含一些其他依赖项,这些是.
I tried including some other dependency, those are.
<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>
上面的依赖帮助.任何解决应用程序故障的建议,任何链接.
the above dependency dint help. Any suggestion for trouble shooting the application,any link.
这似乎是 weblogic-12c 非常常见的问题.什么是根异常的原因?
推荐答案
在 WebLogic.xml 中添加:
In WebLogic.xml add:
<container-descriptor>
<prefer-web-inf-classes>false</prefer-web-inf-classes>
</container-descriptor>
这篇关于java.util.ServiceConfigurationError: javax.xml.stream.XMLInputFactory: Provider com.ctc.wstx.stax.WstxInputFactory 不是子类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!