问题描述
- Weblogic发布SSH报错. Tomcat正常
- Weblogic发布SSH报错. Tomcat正常
2015-01-22 15:43:24 ERROR[org.springframework.web.context.ContextLoader.initWebApplicationContext():319] - Context initi
alization failed
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 19 in XML document from file [D:oracleMidd
lewareuser_projectsdomainsbase_domainconfigconfig.xml] is invalid; nested exception is org.xml.sax.SAXParseExceptio
n: cvc-elt.4.2: Cannot resolve 'pas:system-password-validatorType' to a type definition for element 'sec:password-valida
tor'.
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.j
ava:396)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.jav
a:334)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.jav
a:302)
具体详情见:
http://note.youdao.com/share/?id=1aa278e7babdf0536c67dab94a1935ef&type=note
解决方案
很多程序和标签在TOMCAT运行都是OK的,但是放在WEBLOGIC上面,它是不支持的,所以会报错。