Sigurd Thorsson [
http://community.jboss.org/people/sigthor] created the discussion
"JBoss AS 7 - trouble with Spring application deploying"
To view the discussion, visit:
http://community.jboss.org/message/629808#629808
--------------------------------------------------------------
I try to deploy Spring application on JBoss AS 7, but unfortunately this error occures
while deploying:
ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/pasmatri]] (MSC
service thread 1-3) Servlet /pasmatri threw load() exception:
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration
problem: Unable to locate Spring NamespaceHandler for XML schema namespace [
http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee]
Spring jars are placed in module directory under org/springframework/main slot. The
content of module.xml:
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.0"
name="org.springframework">
<resources>
<resource-root path="aopalliance-1.0.jar"/>
<resource-root
path="org.springframework.aop-3.0.6.RELEASE.jar"/>
<resource-root
path="org.springframework.asm-3.0.6.RELEASE.jar"/>
<resource-root
path="org.springframework.aspects-3.0.6.RELEASE.jar"/>
<resource-root
path="org.springframework.beans-3.0.6.RELEASE.jar"/>
<resource-root
path="org.springframework.context-3.0.6.RELEASE.jar"/>
<resource-root
path="org.springframework.core-3.0.6.RELEASE.jar"/>
<resource-root
path="org.springframework.expression-3.0.6.RELEASE.jar"/>
<resource-root
path="org.springframework.jdbc-3.0.6.RELEASE.jar"/>
<resource-root
path="org.springframework.orm-3.0.6.RELEASE.jar"/>
<resource-root
path="org.springframework.transaction-3.0.6.RELEASE.jar"/>
<resource-root path="org.springframework.test-3.0.6.RELEASE.jar"/>
<resource-root
path="org.springframework.web-3.0.6.RELEASE.jar"/>
<resource-root
path="org.springframework.web.servlet-3.0.6.RELEASE.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
<module name="javax.jms.api"/>
<module name="javax.annotation.api"/>
<module name="org.apache.commons.logging"/>
<module name="javax.servlet.api"/>
</dependencies>
</module>
Within WAR that external dependency is defined in MANIFEST.MF:
Manifest-Version: 1.0
Dependencies: org.jdom, org.apache.log4j, org.apache.commons.logging, org.hibernate,
org.springframework
In case of placing spring jars into WEB-INF/lib all works ok, but as jboss module it
doesn't work.
The content of spring-context.xml
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/629808#629808]
Start a new discussion in JBoss AS7 Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]