Not able to load spring modules using wildfly 8.2
vthota Feb 10, 2015 2:30 AMHi ,
I am trying to define spring module using following folder
{WILDFLY_HOME}/\modules\org\springframework\spring\main
with following descriptor
<module xmlns="urn:jboss:module:1.0" name="org.springframework.spring" slot="main">
<resources>
<resource-root path="aopalliance-1.0.jar"/>
<!-- <resource-root path="aspectjrt-1.7.4.jar"/>
<resource-root path="aspectjtools-1.7.4.jar"/> -->
<resource-root path="aspectjweaver-1.8.4.jar"/>
<!--<resource-root path="org.aspectj.matcher-1.7.4.jar"/>-->
<resource-root path="spring-aop-4.1.4.RELEASE.jar"/>
<resource-root path="spring-aspects-4.1.4.RELEASE.jar"/>
<resource-root path="spring-beans-4.1.4.RELEASE.jar"/>
<resource-root path="spring-context-4.1.4.RELEASE.jar"/>
<resource-root path="spring-context-support-4.1.4.RELEASE.jar"/>
<resource-root path="spring-core-4.1.4.RELEASE.jar"/>
<resource-root path="spring-expression-4.1.4.RELEASE.jar"/>
<resource-root path="spring-jdbc-4.1.4.RELEASE.jar"/>
<resource-root path="spring-orm-4.1.4.RELEASE.jar"/>
<!-- <resource-root path="spring-oxm-4.1.4.RELEASE.jar"/> -->
<resource-root path="spring-tx-4.1.4.RELEASE.jar"/>
<resource-root path="spring-web-4.1.4.RELEASE.jar"/>
<resource-root path="spring-webmvc-4.1.4.RELEASE.jar"/>
<!-- <resource-root path="spring-webmvc-portlet-4.1.4.RELEASE.jar"/> -->
</resources>
<dependencies>
<module name="javax.api"/>
<module name="javax.servlet.api"/>
<module name="org.apache.commons.logging"/>
</dependencies>
</module>
but I am getting following exception when deplolying the war file using deploy command from CLI
07:07:45,251 ERROR [org.jboss.as.server] (management-handler-thread - 6) JBAS015
870: Deploy of deployment "xxxxx.war" was rolled back with the fol
lowing failure message:
{"JBAS014671: Failed services" => {"jboss.module.service.\"deployment.xxxx_xxx.war\".main" => "org.jboss.msc.service.StartException in service jboss.
module.service.\"deployment.xxxxx.war\".main: JBAS018759: Failed t
o load module: deployment.xxxxxxxxx.war:main
Caused by: org.jboss.modules.ModuleNotFoundException: org.springframework.sp
ring:main"}}
07:07:45,834 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) JBA
S015877: Stopped deployment xxxxxx.war (runtime-name: xxxxxxx.war) in 584ms
07:07:45,834 INFO [org.jboss.as.controller] (management-handler-thread - 6) JBA
S014774: Service status report
JBAS014775: New missing/unsatisfied dependencies:
service jboss.module.service."deployment.xxxxxxx.war".main (mi
ssing) dependents: [service jboss.deployment.unit."xxxxxxxxxx.war".FIRS
T_MODULE_USE]
JBAS014777: Services which failed to start: service jboss.module.service.
"deployment.xxxxxxxxx.war".main