在JBoss服務器啓動時,我得到這個錯誤,配置問題:找不到春天NamespaceHandler XML模式命名空間[http://www.springframework.org/schema/tx]
19:44:59,307 ERROR [STDERR] 23813 [main] ERROR org.springframework.web.context.ContextLoader - Context initialization failed
19:44:59,307 ERROR [STDERR] org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/tx]
Offending resource: ServletContext resource [/WEB-INF/applicationContext.xml]
19:44:59,307 ERROR [STDERR] at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
19:44:59,307 ERROR [STDERR] at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
19:44:59,307 ERROR [STDERR] at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:80)
19:44:59,307 ERROR [STDERR] at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:281)
19:44:59,307 ERROR [STDERR] at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1294)
19:44:59,307 ERROR [STDERR] at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1287)
19:44:59,307 ERROR [STDERR] at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135)
這該怎麼我的application.xml中的樣子,
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
我使用彈簧2.5.6 ...上的錯誤有任何建議..
你如何部署你的web應用服務器? – Luciano 2012-08-08 14:29:44
Luciano我正在處理我的.ear文件並將其粘貼到\ jboss-5.1.0.GA-jdk6 \ jboss-5.1.0.GA \ server \ default \ deploy文件夾,然後從eclipse啓動maven服務器。 – 2012-08-08 14:33:15
「然後從eclipse啓動maven服務器「?你到底意味着什麼? – 2012-08-08 14:43:19