关于XFire,解析XML遇到的问题

 

What if it doesn't work?

The most common error is an XML parser error. It has nothing to do with DWR, and is due to your installation of Tomcat having Xerces installed when it shouldn't or not installed when it should.

  • JDK 1.3 didn't come with an XML parser, so you will need xercesImpl.jar and xml-apis.jar for that case.
  • JDK 1.4.0 and JDK 1.4.1 did come with an XML parser but it was buggy so you may need to override the default by putting xercesImpl.jar into the tomcat\common\endorsed directory.
  • JDK 1.4.2 and JDK 5 come with a fully working XML parser and you shouldn't need one at all.
按照他们的说法,JDK 1.4.2 and JDK 5根本就不要改什么东西就可以的呀?但为了保险起见,还是将tomcat\common\endorsed下的xercesImpl.jar 和xml-apis.jar换成了最新版的。
再次启动,还是报一样错误。没办法。仔细分析一下错误信息,有这么一句话:
Provider org.apache.xalan.processor.TransformerFactoryImpl not found
也就是这个类所在包找不到,经过一番努力,终于知道org.apache.xalan.processor.TransformerFactoryImpl 是在xnlan.jar里面。于是将xalan.jar拷贝到webapps\dwr\WEB-INF\lib下。
重新启动tomcat
终于搞定!
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值