这几日把webservice和POI 操作部署到WebLogic上,问题重重,有各种冲突。

部署到tomcat上没有问题

版本:

jdk:6

tomcat:6

weblogic:10.3.3

cxf:2.6

poi:3.9

冲突1:

org.apache.cxf.binding.soap.SoapFault: Cannot create a secure XMLInputFactory

在WEB-INF文件夹下,加上weblogic.xml

<?xml version="1.0" encoding="UTF-8" ?>
  <weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/weblogic-web-app"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-web-app http://www.bea.com/ns/weblogic/weblogic-web-app/1.0/weblogic-web-  app.xsd">
    <container-descriptor>
      <index-directory-enabled>true</index-directory-enabled>
      <prefer-web-inf-classes>true</prefer-web-inf-classes>
    </container-descriptor>
</weblogic-web-app>

冲突2:

java.lang.ClassCastException: weblogic.xml.jaxp.RegistryDocumentBuilderFactory at javax.xml.parsers.DocumentBuilderFactory

jar包冲突导致,网上的资料大都说是xml-apis 冲突,从war包里删除掉xml-apis,这个网址上也说的很清楚

http://forum.spring.io/forum/spring-projects/container/13517-java-lang-classcastexception-weblogic-xml-jaxp-registrydocumentbuilderfactory

冲突3:

java.lang.LinkageError: loader constraint violation: loader (instance of weblogic/utils/classloaders/ChangeAwareClassLoader)
previously initiated loading for a different type with name "javax/xml/namespace/QName"

也是jar包与WebLogic冲突,这次冲突的是stax的 stax-api,删除

冲突4:

java.lang.LinkageError: loader constraint violation: when resolving interface method "org.w3c.dom.Node.setUserData(Ljava/lang/String;Ljava/lang/Object;Lorg/w3c/dom/UserDataHandler;)Ljava/lang/Object;" the class loader (instance of weblogic/utils/classloaders/ChangeAwareClassLoader) of the current class, org/apache/cxf/staxutils/StaxUtils, and the class loader (instance of ) for resolved class, org/w3c/dom/Node, have different Class objects for the type erDataHandler;)

包冲突,将xmlbeans包删除,解决问题

最新文章

  1. PE Checksum Algorithm的较简实现
  2. 手机支持USB功能、驱动文件对应关系
  3. 关于seajs模块化的搭建
  4. ASP.NET MVC必知必会知识点总结(二)
  5. 【初探移动前端开发03】jQuery Mobile(上)
  6. ubantu安装sogou输入法
  7. Java反射机制实例解析
  8. nodejs链接mongodb数据库
  9. SignalR实时推送
  10. iOS 后台运行 类型
  11. php访问数据库思维导图
  12. 使用throws抛出异常
  13. Java中PreparedStatement和Statement的用法区别(转)
  14. 转:assert()函数用法总结
  15. Linux入门基础 #9:管道及重定向
  16. 打开Voice Over时,CATextLayer的string对象兼容NSString和NSAttributedString导致的Crash(一现象)
  17. Spring+Hibernate实现动态SessionFactory切换(改进版)
  18. IDEA 上 Tigase8.0 源代码编译运行
  19. npm设置和查看仓库源
  20. Sublime Text 插件之HTML-CSS-JS Prettify—格式化HTML CSS JS与显示函数列表

热门文章

  1. 如何在小程序实现图片lazy-load懒加载效果
  2. Problem 2121 神庙逃亡(FZU)
  3. 潜伏者(codevs 1171)
  4. 没有上司的舞会(hdu 1520)
  5. 【收藏】下载Chrome商店插件的方法,万恶的gwd
  6. 同步OR异步?WebFlux开发真的比Servlet开发要快?顺便再科普下CompletableFuture
  7. SUSE linux使用zypper 安装软件-比yum更好用
  8. 一份关于webpack2和模块打包的新手指南(二)
  9. 某考试 T1 arg
  10. loj6157 A^B Problem (并查集)