weblogic 部署報錯

loader constraint violation: when resolving overridden method "org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Lorg/xml/sax/InputSource;)Lorg/w3c/dom/Document;" the class loader (instance of weblogic/utils/classloaders/ChangeAwareClassLoader) of the current class, org/apache/xerces/jaxp/DocumentBuilderImpl, and its superclass loader (instance of <bootloader>), have different Class objects for the type org/xml/sax/InputSource used in the signaturejava



這個問題解決了,主要是由於spring 的版本比較低,解析spring的xml文件的時候報錯。換成spring3.2的jar包就行了。還有一個報錯的地方是由於web.xml頭部採用的標準錯了,換成web

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> ,這樣就沒問題了
spring