java.lang.SecurityException: org.xml.sax.SAXNotRecognizedException: Feature: http://apache.org/xml/features/allow-java-encodings

后端 未结 2 1342
旧时难觅i
旧时难觅i 2021-01-20 12:50

I have a tomcat web application written in Struts. It runs well in Linux with Tomcat 7 and Java 7. When I migrated it to Windows 10 under Tom

2条回答
  •  [愿得一人]
    2021-01-20 13:26

    add the following properties to TOMCAT_HOME/conf/catalina.properties:

    • javax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
    • javax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
    • javax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
    • javax.xml.datatype.DatatypeFactory=com.sun.org.apache.xerces.internal.jaxp.datatype.DatatypeFactoryImpl

    source

提交回复
热议问题