struts2配置问题

来源:互联网 发布:javascript入门经典 编辑:程序博客网 时间:2024/04/30 19:15

 配置struts2时,出现org.apache.xalan.processor.TransformerFactoryImpl not found错误
原因:jdk1.5 与 tomcat5.0之间的关于 TransformerFactoryImpl 类的冲突造成的
解决办法:
  网上找到的:下载“xalan系列jar包”,下载地址:http://www.apache.org/dyn/closer.cgi/xml/xalan-j,
然后将tomcat中目录下:/tomcat/common/endorsed/(xercesImpl.jar和xml-apis.jar)删掉,然后将下载的xalan系列jar包(包括serializer.jar、xalan.jar、xercesImpl.jar、xml-apis.jar、xsltc.jar)拷贝到/tomcat/common/endorsed目录
 自己解决的办法:
    将Tomcat换成6.0,问题解决。