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


然后,google一查,找到人家的回答.
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.


我猜想应该是xml解析的类包有冲突,然后我把"
/common/endorsed "下的文件干掉,重新启动.一切OK!
呵呵,所以找问题一定要认真仔细,全面的考虑.
posted on 2006-04-27 14:11
Harryson 阅读(502)
评论(0) 编辑 收藏 所属分类:
AJAX