Classpath Issue with xmlparserV2.jar in WAS 8.5.5

前端 未结 2 1465
野性不改
野性不改 2021-01-26 06:40

I had a severe issue in WAS 8.5.5. I have included the xmlparserV2.jar in JVM classpath as per my requirement. I have restarted the WAS and server start to fail

2条回答
  •  青春惊慌失措
    2021-01-26 07:18

    The JAR file includes a META-INF\services directory which includes files that will override the XML processors being used by your server.

    From Java SE javadoc

    Use the Services API (as detailed in the JAR specification), if available, to determine the classname. The Services API will look for a classname in the file META-INF/services/javax.xml.parsers.SAXParserFactory in jars available to the runtime.

    I used 7-zip to delete the files from the META-INF\services and used that JAR instead. My XML Object parsing works now and everything else is un-effected.

提交回复
热议问题