Worklight 适配器SAX2 driver not found异常
今天在windows server 2003+jdk7.0环境下部署Worklight项目时,发现一个诡异的异常:
通过http适配器解析soap时,解析失败,服务器抛出异常:
org.xml.sax.SAXException: SAX2 driver class org.apache.xerces.parsers.SAXParser not found
java.lang.ClassNotFoundException:org.apache.xerces.parsers.SAXParser
Causedby:org.xml.sax.SAXException:SAX2driverclassorg.apache.xerces.parsers.SAXParsernotfound
java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser研究了半天发现,org.apache.xerces.parsers.SAXParser在jdk7.0里不存在,倒是有个
com.sun.org.apache.xerces.internal.parsers.SAXParser
于是在Eclipse启动配置文件eclipse.ini中加入一行
-Dorg.xml.sax.driver=com.sun.org.apache.xerces.internal.parsers.SAXParser
重启Eclipse,搞定
相关推荐
Kafka 2020-09-18
Wepe0 2020-10-30
杜倩 2020-10-29
windle 2020-10-29
minerd 2020-10-28
mengzuchao 2020-10-22
Junzizhiai 2020-10-10
bxqybxqy 2020-09-30
风之沙城 2020-09-24
kingszelda 2020-09-22
大唐帝国前营 2020-08-18
yixu0 2020-08-17
TangCuYu 2020-08-15
xiaoboliu00 2020-08-15
songshijiazuaa 2020-08-15
xclxcl 2020-08-03
zmzmmf 2020-08-03
newfarhui 2020-08-03
likesyour 2020-08-01