While migrating both JAX-RS and JAX-WS web services from WebLogic 12.1 to 12.2 I've come across an issue during deployment. The error "java.util.ServiceConfigurationError: javax.xml.stream.XMLInputFactory: Provider com.ctc.wstx.stax.WstxInputFactory not a subtype"
kept on coming up. The particular service in question wasn't using StAX but we've played around with changing various providers during this upgrade so I thought that was the root cause. It wasn't.
Here's a redacted version of the error message seen during deployment...
Turned out the issue was to do with class loading
and specifically what weblogic.xml
contained. Because these services were using Oracle Coherence from WebLogic 12.1
they were providing a tangosol-coherence-override.xml
file as part of the WAR package. This required the prefer-web-inf-classes
element in weblogic.xml
to be set to true
. This caused the StAX exception to be thrown.
resolved the issue...
So either something in the WLS class loader structure changed between 12.1 and 12.2 or some other dependencies changed, I've not tried to track it down too hard. What about Coherence and the override file? Well it looks like due to these changes in WLS 12.2 that certain services are not able to make use of this feature any more. I'll have a separate article on that and a couple of workarounds to deal with it too.
Hope you found this post useful...
...so please read on! I love writing articles that provide beneficial information,
tips and examples to my readers. All information on my blog is provided free of
charge and I encourage you to share it as you wish. There is a small favour I ask in return however -
engage in comments below, provide feedback, and if you see mistakes let me know.
If you want to show additional support and help me pay for web hosting and
domain name registration,
donations, no matter how small, are always welcome!
Use of any information contained in this blog post/article is subject to this disclaimer
Other posts you may like...