java - why different XPathFactory implementation used?
问题描述
My java web application works in local development environment, but fails in SIT environment.
local development environment:JDK7 + Jetty
JAXP: Looking up system property 'javax.xml.xpath.XPathFactory:http://java.sun.com/jaxp/xpath/dom'
JAXP: The property is undefined.
JAXP: found null in $java.home/jaxp.properties
JAXP: attempting to use the platform default W3C DOM XPath lib
JAXP: factory 'com.sun.org.apache.xpath.internal.jaxp.XPathFactoryImpl' was found for http://java.sun.com/jaxp/xpath/dom
JAXP: using thread context class loader (WebAppClassLoader=iFinBMS@5501d1c8) for search
SIT environment:JDK7+WebLogic10.3.6
JAXP: Looking up system property 'javax.xml.xpath.XPathFactory:http://java.sun.com/jaxp/xpath/dom'
JAXP: The property is undefined.
JAXP: found null in $java.home/jaxp.properties
JAXP: no META-INF/services/javax.xml.xpath.XPathFactory file was found
JAXP: attempting to use the platform default W3C DOM XPath lib
JAXP: instanciating org.apache.xpath.jaxp.XPathFactoryImpl
JAXP: failed to instanciate org.apache.xpath.jaxp.XPathFactoryImpl
java.lang.ClassNotFoundException: org.apache.xpath.jaxp.XPathFactoryImpl
why JAXP try to use com.sun.org.apache.xpath.internal.jaxp.XPathFactoryImpl
in local environment, but org.apache.xpath.jaxp.XPathFactoryImpl
in sit environment, what's causing this difference?
解决方案
推荐阅读
- yii - 漂亮的 url 没有在 Yii2 中重定向
- java - java.lang.ClassNotFoundException,命令行制作问题和 bash 脚本
- python - 性能监控工具 vs 进程状态 (ps) 命令
- python - 查找列表中的所有键簇
- java - 如何使用 ffmpeg 在 java 程序中获取视频的持续时间?
- database - 在 Oracle 数据库中创建一种新类型的对象
- javascript - qTip2 - 在更改工具提示的内容后调用函数
- java - CannotCreateTransactionException: com.microsoft.sqlserver.jdbc.SQLServerException 登录错误
- ms-access - 登录后打开特定的导航选项卡
- python - Django REST Framework:序列化程序中的文件路径列表