随笔 - 2  文章 - 6  trackbacks - 0
<2008年9月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

常用链接

留言簿(1)

随笔档案

文章档案

搜索

  •  

最新评论

阅读排行榜

评论排行榜

昨天做了个struts2的小例子,在tomcat启动时候总是出现“严重: Error filterStart”的错误,在折腾了一晚上才发现,struts2是基于java5的。。。。。。
郁闷啊。。。。。。。

posted on 2007-04-02 23:47 weikj 阅读(7708) 评论(6)  编辑  收藏

FeedBack:
# re: 关于struts2的Error filterStart 2007-06-22 15:35 andvar
原因不是这样的,所有lib包含进来后才会出现问题 只包含最少的jar包就可以了  回复  更多评论
  
# re: 关于struts2的Error filterStart[未登录] 2007-07-07 17:02 
可以回答吗?  回复  更多评论
  
# re: 关于struts2的Error filterStart[未登录] 2007-07-07 17:06 50851354
刚好我经历周折后解决了:
当classpath中包含的包和struts-blanks示列里WEB-INF\lib\下的包里的类出现重复时会出这样的错。
也许这只是很多原因中之一,主要是别忘了去看tomcat\log\下的文件查看输出异常——我就是后面才想起去看  回复  更多评论
  
# re: 关于struts2的Error filterStart 2008-09-05 11:21 sasa
由于jdk1.5 与 tomcat5.0之间的关于 TransformerFactoryImpl 类的冲突造成的。
tomcat-5.0.28\common\endorsed下有两个jar包:xercesImpl.jar和xml-apis.jar,其中的类 javax.xml.transform.TransformerFactory 与jdk1.5中的类org.apache.xalan.processor.TransformerFactoryImpl其实是同一个类。
in tomcat java is called with the following argument:
-Djava.endorsed.dirs="X:\my_app\Portal\tomcat\common\endorsed"
In this directory you find two jar files: xercesImpl.jar and xml-apis.jar needed by tomcat and that must be loaded before all xmsl stuff present in the jdk (1.4 naming problem). And in the file xml-apis.jar the TransformerFactoryImpl is set to "org.apache.xalan.processor.TransformerFactoryImpl".

解决办法:
1. 将xml-apis.jar移出endorsed文件夹。
2. 用xalan系列jar包替换原来的xercesImpl.jar和xml-apis.jar。
xalan系列jar包:serializer.jar、xalan.jar、xercesImpl.jar和xml-apis.jar。
3. For other application, just check this file or dom3-xml-apis.jar in your class path.


  回复  更多评论
  
# re: 关于struts2的Error filterStart 2008-11-27 16:52 yin
我的JDK和TOMCAT都是1.6也不行,这是怎么回事啊,要加的包都有,也出现这个问题  回复  更多评论
  
# re: 关于struts2的Error filterStart 2009-04-01 16:50 网友
非常感谢,在网上搜了半天关于这种错误的原因。。总算在这里找到了答案!!  回复  更多评论
  

只有注册用户登录后才能发表评论。


网站导航: