在使用jdk1.5+struct2和tomcat5.0开发时遇到了,搞了半天,换成tomcat5.5以上的版本则正常,就是tomcat5.0版本就报
严重: Error filterStart
2009-2-4 11:56:58 org.apache.catalina.core.StandardContext start
严重: Context startup failed due to previous errors
由于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其实是同一个类。
解决办法:
1. 将xml-apis.jar移出endorsed文件夹。
2. 用xalan.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.
阅读(305) | 评论(0) | 转发(0) |