Solution for secure-processing org.xml.sax.SAXNotRecognizedException causing java.lang.IllegalStateException running inside Tomcat

前端 未结 3 455
别那么骄傲
别那么骄傲 2021-01-12 07:27

I\'m facing this exception when receiving an Xml and trying to parse it. The code responsible for that is well tested when running as an standalone application. However I\'m

相关标签:
3条回答
  • 2021-01-12 08:06

    Well, this worked for me: Added below to my tomcat configuration arguments: -Djavax.xml.parsers.SAXParserFactory="com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl"

    0 讨论(0)
  • 2021-01-12 08:07

    I know this is an old question. But just updating it if it is of any help to others.. We had a similar issue recently while upgradig to java 8 with JBOSS 3.2.6. The cause of the issue was an old xercesImpl.jar. We upgraded to xercesImol-2.9.1.jar and the issue was resolved.

    0 讨论(0)
  • I had faced similar issue, this issue occurs when there is big difference in versions of xerces jar and xercesImpl jar. To solve this, I used xerces-2.9.0 and xercesImpl-2.9.1 and the issue gone.

    0 讨论(0)
提交回复
热议问题