1 Reply Latest reply on May 28, 2013 2:23 AM by Nicklas Karlsson

    How to deploy Spring 3.1.4 as Module in JBOSS AS 7.1.1 ?

    Thomas Setiabudi Expert

      Hi,

       

      Does anyone know how to properly deploy Spring 3.1.4 as Module in JBOSS AS 7.1.1?

       

      What I have done so far:

      1. Created folder at \jboss-as-7.1.1.Final\modules\org\springframework\3.1.4.RELEASE\

      2. inside the folder I have copied all the jars and create a module.xml file

      the module.xml file content is

       

      <?xml version="1.0" encoding="UTF-8"?>
      <module xmlns="urn:jboss:module:1.1" name="org.springframework" slot="3.1.4.RELEASE">
                <resources>
                          <resource-root path="spring-aop-3.1.4.RELEASE.jar"/>
                          <resource-root path="spring-asm-3.1.4.RELEASE.jar"/>
                          <resource-root path="spring-beans-3.1.4.RELEASE.jar"/>
                          <resource-root path="spring-context-3.1.4.RELEASE.jar"/>
                          <resource-root path="spring-context-support-3.1.4.RELEASE.jar"/>
                          <resource-root path="spring-core-3.1.4.RELEASE.jar"/>
                          <resource-root path="spring-expression-3.1.4.RELEASE.jar"/>
                          <resource-root path="spring-jdbc-3.1.4.RELEASE.jar"/>
                          <resource-root path="spring-orm-3.1.4.RELEASE.jar"/>
                          <resource-root path="spring-tx-3.1.4.RELEASE.jar"/>
                          <resource-root path="spring-web-3.1.4.RELEASE.jar"/>
                          <resource-root path="spring-webmvc-3.1.4.RELEASE.jar"/>
                          <!-- Insert resources here -->
                </resources>
                <dependencies>
                          <module name="aopalliance.aopalliance"/>
                          <module name="javax.api"/>
                          <module name="javax.servlet.api"/>
                          <module name="javax.transaction.api"/>
                          <module name="org.apache.commons.logging"/>
                </dependencies>
      </module>
      
      

       

      3. In my Web Application (WAR) I have put this jboss-deployment-structure.xml inside the WEB-INF directory:

      <?xml version="1.0" encoding="UTF-8"?>
      <jboss-deployment-structure>
                <deployment>
                          <dependencies>
                                    <module name="org.springframework" slot="3.1.4.RELEASE" />
                                    <module name="org.springframework.data" />
      
                                    <module name="org.codehaus.jackson.jackson-mapper-asl" slot="1.9.11" />
                                    <module name="org.codehaus.jackson.jackson-core-asl" slot="1.9.11" />
                          </dependencies>
                          <exclusions>
                                    <module name="org.apache.log4j" />
                                    <module name="org.slf4j" />
                                    <module name="org.slf4j.impl" />
                          </exclusions>
                </deployment>
      </jboss-deployment-structure>
      
      

       

       

      And I got this error:

       

      09:12:29,042 WARN  [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (MSC service thread 1-7) Ignored XML validation warning: org.xml.sax.SAXParseException; lineNumber: 10; columnNumber: 120; schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/beans/spring-beans-3.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
                at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:196)
                at org.apache.xerces.util.ErrorHandlerWrapper.warning(ErrorHandlerWrapper.java:97)
                at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386)
                at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:322)
                at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:281)
                at org.apache.xerces.impl.xs.traversers.XSDHandler.reportSchemaWarning(XSDHandler.java:2529)
                at org.apache.xerces.impl.xs.traversers.XSDHandler.getSchemaDocument(XSDHandler.java:1834)
                at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:521)
                at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:554)
                at org.apache.xerces.impl.xs.XMLSchemaValidator.findSchemaGrammar(XMLSchemaValidator.java:2526)
                at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1813)
                at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:724)
                at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:283)
                at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(XMLNSDocumentScannerImpl.java:733)
                at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1754)
                at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:324)
                at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:845)
                at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:768)
                at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:108)
                at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:230)
                at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:285)
                at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75) [spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388) [spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) [spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) [spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174) [spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209) [spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180) [spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125) [spring-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94) [spring-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:131) [spring-context-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:530) [spring-context-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:444) [spring-context-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:388) [spring-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:293) [spring-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) [spring-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]
                at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]
                at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_11]
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_11]
                at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_11]
      
      
      09:12:29,073 ERROR [org.springframework.web.context.ContextLoader] (MSC service thread 1-7) Context initialization failed: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 10 in XML document from ServletContext resource [/WEB-INF/spring/application-infrastructure.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 10; columnNumber: 120; cvc-elt.1: Cannot find the declaration of element 'beans'.
                at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396) [spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) [spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) [spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174) [spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209) [spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180) [spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125) [spring-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94) [spring-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:131) [spring-context-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:530) [spring-context-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:444) [spring-context-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:388) [spring-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:293) [spring-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) [spring-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]
                at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]
                at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_11]
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_11]
                at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_11]
      Caused by: org.xml.sax.SAXParseException; lineNumber: 10; columnNumber: 120; cvc-elt.1: Cannot find the declaration of element 'beans'.
                at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:196)
                at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:132)
                at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:390)
                at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:322)
                at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:281)
                at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1982)
                at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:724)
                at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:283)
                at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(XMLNSDocumentScannerImpl.java:733)
                at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1754)
                at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:324)
                at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:845)
                at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:768)
                at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:108)
                at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:230)
                at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:285)
                at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75) [spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388) [spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                ... 21 more
      
      
      09:12:29,088 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/taskmanagement]] (MSC service thread 1-7) Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 10 in XML document from ServletContext resource [/WEB-INF/spring/application-infrastructure.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 10; columnNumber: 120; cvc-elt.1: Cannot find the declaration of element 'beans'.
                at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396) [spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) [spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) [spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174) [spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209) [spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180) [spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125) [spring-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94) [spring-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:131) [spring-context-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:530) [spring-context-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:444) [spring-context-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:388) [spring-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:293) [spring-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) [spring-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]
                at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]
                at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_11]
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_11]
                at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_11]
      Caused by: org.xml.sax.SAXParseException; lineNumber: 10; columnNumber: 120; cvc-elt.1: Cannot find the declaration of element 'beans'.
                at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:196)
                at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:132)
                at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:390)
                at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:322)
                at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:281)
                at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1982)
                at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:724)
                at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:283)
                at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(XMLNSDocumentScannerImpl.java:733)
                at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1754)
                at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:324)
                at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:845)
                at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:768)
                at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:108)
                at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:230)
                at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:285)
                at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75) [spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388) [spring-beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                ... 21 more
      
      
      09:12:29,151 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/taskmanagement]] (MSC service thread 1-7) Initializing log4j from [C:\JavaServer\jboss-as-7.1.1.Final\standalone\tmp\vfs\tempd0f2c23b8d0db7c3\content-5e5e6c7f87eccb7a\WEB-INF\logging\log4j.xml]
      09:12:29,151 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/taskmanagement]] (MSC service thread 1-7) Exception sending context initialized event to listener instance of class org.springframework.web.util.Log4jConfigListener: java.lang.NoClassDefFoundError: org/apache/log4j/xml/DOMConfigurator
                at org.springframework.util.Log4jConfigurer.initLogging(Log4jConfigurer.java:69) [spring-core-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.web.util.Log4jWebConfigurer.initLogging(Log4jWebConfigurer.java:151) [spring-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.springframework.web.util.Log4jConfigListener.contextInitialized(Log4jConfigListener.java:45) [spring-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
                at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]
                at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]
                at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_11]
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_11]
                at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_11]
      Caused by: java.lang.ClassNotFoundException: org.apache.log4j.xml.DOMConfigurator from [Module "org.springframework:3.1.4.RELEASE" from local module loader @26c69727 (roots: C:\JavaServer\jboss-as-7.1.1.Final\modules)]
                at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
                at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
                at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
                at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
                ... 11 more
      
      

       

       

      What might be the solution for this?

       

      Any help is appreciated.. thank you..

       

       

      Regards,

      Thomas Setiabudi