Classpath Issue with xmlparserV2.jar in WAS 8.5.5

前端 未结 2 1440
野性不改
野性不改 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:02

    Is this issue got resolved?

    Becuase I am aslo facing same kind of issue. First getting - java.sql.SQLException: java.lang.NoClassDefFoundError: oracle.xml.parser.v2.XMLParseException to resolve this issue if we add xmlparserv2.jar in JDBC class path then application running fine but my JVM got crush (not bale to login cosole). Server is behaving properly after removing this jar from classpath.

    0 讨论(0)
  • 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.

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