org.jdom.Document is not available so the jdom converter will not load

2009-8-16 10:18:39 org.directwebremoting.util.CommonsLoggingOutput info
信息: DWR Version 2.0.5 starting.
2009-8-16 10:18:39 org.directwebremoting.util.CommonsLoggingOutput info
信息: - Servlet Engine: Apache Tomcat/6.0.10
2009-8-16 10:18:39 org.directwebremoting.util.CommonsLoggingOutput info
信息: - Java Version:   1.6.0_02
2009-8-16 10:18:39 org.directwebremoting.util.CommonsLoggingOutput info
信息: - Java Vendor:    Sun Microsystems Inc.
2009-8-16 10:18:40 org.directwebremoting.util.CommonsLoggingOutput info
信息: Probably not an issue: org.jdom.Document is not available so the jdom converter will not load. This is only an problem if you wanted to use it.
2009-8-16 10:18:40 org.directwebremoting.util.CommonsLoggingOutput info
信息: Probably not an issue: org.jdom.Element is not available so the jdom converter will not load. This is only an problem if you wanted to use it.

 

 

 

问题解决方案:在网上下了个xalan.jar 导入工程 虽然信息没消失 但是dwr 却可以用了、、、

 

原因:(转的)

    网上很容易找到一篇关于fckeditor的java文件上传扩展的帖子。但是,实践的时候经常会有人遇到servlet error的报错。如果有log,或正在debug,可以看到报错信息:java.lang.NoClassDefFoundError: org/apache/xml/serializer/TreeWalker
    at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:821)
    at com.fredck.FCKeditor.connector.ConnectorServlet.doGet(ConnectorServlet.java:151)
找不到TreeWalker这个类。

   原本这个类是包含在xalan.jar中的,但是xalan-j2.7.0版的发布包中,将serializer包中的类单独打包成serializer.jar,不再包含在xalan.jar中,所以才会即使添加了xalan.jar也无法找到该类,添加后即可解决问题。

网上的相关资料:

> You need to include serializer.jar file also.  This file includes the
> serializer.  In the Xalan Java 2.7 release, serializer code is included in
> this jar file.  The release 2.6 has serializer code included in the
> xalan.jar file.

:我的总结是:一般来说fckeditor出现问题首先web.xml里面是否配置正确,然后看是目录否权限问题

第三可能是xalan.jar不存在。


解决方法:到 http://apache.justdn.org/xml/xalan-j/binaries/下载 xalan-j_2_7_0-bin-2jars.zip,解压后把 xalan.jar,serializer.jar拷贝到应用的lib目录下就可以解决了。

注意需要serializer.jar文件

还有xalan.jar的没有也有可能影响dwr的ajax无法使用问题

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值