Caused by: java.lang.ClassCastException: weblogic.xml.jaxp.RegistryXMLReader
Typically such problems happen when there are several versions of the same class in class path while those versions are loaded by different class loaders. One version of DocumentBuilderFactory was loaded by system class loader, other by class loader of your enterprise application. When you are calling the XML parser the parent's version of the class is used. When you are casting yours private version is utilized. These versions are incompatible that causes ClassCastException.
| 0 down vote | I wanted make a slight addition to the previous answers to this question, in the event that anyone else is in the same situation I was. I had the same problem on our WebLogic 9.2 server due to my use of CXF 2.2.3. In addition to the removal of the xml-apis.jar mentioned previously, I also had to remove a xmlParserAPIs library. |
總結
以上是生活随笔為你收集整理的Caused by: java.lang.ClassCastException: weblogic.xml.jaxp.RegistryXMLReader的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 用双网卡做代理服务器设置具体步骤
- 下一篇: 宽带路由器主要功能