初学DWR就出现问题了?

   听说ajax今年会很火,所以也就了解了解,顺便也实际一下.据说DWR是ajax的一个很好框架,也比较简单,对平时用的一些东西进行了封装,所以我们用起来就方便.
   我也就想尝试一下,学习学习一下.可万万没想到一开始就碰壳了.总是提示"servlet.init()"出错,我都是按照文档一步步的,怎么会这样呢?真是没想明白,在群中问了很少有人回答,有一位"邢红瑞"的同学到时给了我提示,他问我要更详细的错误信息.哦,是呀我应该仔细看看Tomcat下的日志文件,打开了今天的日志原来还有一个重要的错误:
     
None.gif 342192658  [http - 8080 - Processor3] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[ / Ajax]  -  StandardWrapper.Throwable
None.gifjavax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found
None.gifat javax.xml.transform.TransformerFactory.newInstance(Unknown Source)
None.gif
None.gif

     然后,google一查,找到人家的回答.
None.gif It is due to an issue with the xml - apis.jar that Tomcat includes in the common / endorsed directory (which is also in the tomcat classpath by  default ). This jar conflicts with the javax call attempted seen in the stack trace. I renamed xml - apis.jar to .bak and restarted, which solved the problem, but you could probably also just remove  / common / endorsed from the startup script. I’m not sure  if  Tomcat needs either of the jars in  this  folder  for  its own work, but so far things seem to work fine. 
None.gif
None.gif
  我猜想应该是xml解析的类包有冲突,然后我把" / common / endorsed "下的文件干掉,重新启动.一切OK!
  
呵呵,所以找问题一定要认真仔细,全面的考虑.
  
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值