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

相关文章
相关标签/搜索