当前位置: 代码迷 >> J2EE >> .spring配置时,cvc-complex-type.2.4.c:异常?
  详细解决方案

.spring配置时,cvc-complex-type.2.4.c:异常?

热度:81   发布时间:2016-04-22 02:09:49.0
在线等...spring配置时,cvc-complex-type.2.4.c:错误???
Java code
  信息: Loading Spring root WebApplicationContext2010-04-10 09:33:05,808  INFO (org.springframework.core.CollectionFactory:76) - JDK 1.4+ collections available2010-04-10 09:33:05,824  INFO (org.springframework.core.CollectionFactory:80) - Commons Collections 3.x available2010-04-10 09:33:05,918  INFO (org.springframework.beans.factory.xml.XmlBeanDefinitionReader:347) - Loading XML bean definitions from file [D:\share\tomcat6.0\webapps\IEshopping\WEB-INF\classes\applicationContext-action.xml]2010-04-10 09:33:06,198  INFO (org.springframework.beans.factory.xml.XmlBeanDefinitionReader:347) - Loading XML bean definitions from file [D:\share\tomcat6.0\webapps\IEshopping\WEB-INF\classes\applicationContext-common.xml]2010-04-10 09:33:06,245 ERROR (org.springframework.web.context.ContextLoader:205) - Context initialization failedorg.springframework.beans.factory.BeanDefinitionStoreException: Line 31 in XML document from file [D:\share\tomcat6.0\webapps\IEshopping\WEB-INF\classes\applicationContext-common.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'tx:attributes'.Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'tx:attributes'.    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:410)    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3165)    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1898)    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:685)    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400)    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2747)    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)    at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:225)    at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)    at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:77)    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:405)    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:357)    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:126)    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)    at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:123)    at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:91)    at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:94)    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:294)    at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
  相关解决方案