加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

webservice出异常provider org.apache.xalan.processor.Transfor

发布时间:2020-12-17 02:39:02 所属栏目:安全 来源:网络整理
导读:刚学习web service按照myeclipse的帮助文档配置,出现标题异常,经过网上得查询得知原因。 ? 错误原因: 认为是由于jdk1.5 与 tomcat5.0之间的关于 TransformerFactoryImpl 类的冲突造成的。 tomcat-5.0.28/common/endorsed下有两个jar包:xercesImpl.jar和x

刚学习web service按照myeclipse的帮助文档配置,出现标题异常,经过网上得查询得知原因。

?

错误原因: 认为是由于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. 如果你不会这样做,就使用1.4的JDK和tomcat5.0 或者JDK1.5 tomcat5.5 这2种类型才是匹配的

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读