4 Replies Latest reply on Feb 10, 2015 7:08 AM by Venkateswara Rao

    Not able to load spring modules using wildfly 8.2

    Venkateswara Rao Newbie

      Hi ,

       

      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

        • 1. Re: Not able to load spring modules using wildfly 8.2
          Tomaz Cerar Master

          can you post contents of {WILDFLY_HOME}/\modules\org\springframework\spring\main directory?

          • 2. Re: Not able to load spring modules using wildfly 8.2
            Venkateswara Rao Newbie

            Directory of E:\JBossDeployments\wildfly-8.2.0.Final\modules\org\springframewor

            k\spring\main

             

             

            02/10/2015  06:59 AM    <DIR>          .

            02/10/2015  06:59 AM    <DIR>          ..

            05/27/2014  12:28 PM             4,467 aopalliance-1.0.jar

            01/14/2015  01:42 PM         1,862,339 aspectjweaver-1.8.4.jar

            02/09/2015  12:53 PM             1,430 modules.xml

            01/14/2015  01:42 PM           359,096 spring-aop-4.1.4.RELEASE.jar

            01/20/2015  06:36 AM            56,852 spring-aspects-4.1.4.RELEASE.jar

            01/14/2015  01:43 PM           708,310 spring-beans-4.1.4.RELEASE.jar

            01/14/2015  01:43 PM         1,026,074 spring-context-4.1.4.RELEASE.jar

            01/14/2015  01:42 PM           178,104 spring-context-support-4.1.4.RELEASE.jar

            01/14/2015  01:42 PM         1,006,987 spring-core-4.1.4.RELEASE.jar

            01/14/2015  01:43 PM           258,806 spring-expression-4.1.4.RELEASE.jar

            01/14/2015  01:43 PM           426,703 spring-jdbc-4.1.4.RELEASE.jar

            01/20/2015  06:36 AM           376,319 spring-orm-4.1.4.RELEASE.jar

            01/14/2015  01:43 PM           252,516 spring-tx-4.1.4.RELEASE.jar

            01/14/2015  01:43 PM           714,441 spring-web-4.1.4.RELEASE.jar

            01/14/2015  01:43 PM           781,749 spring-webmvc-4.1.4.RELEASE.jar

                          15 File(s)      8,014,193 bytes

                           2 Dir(s)  380,227,903,488 bytes free

            • 3. Re: Not able to load spring modules using wildfly 8.2
              Tomaz Cerar Master

              you have descriptor file named wrong. it should be module.xml not modules.xml

              just rename it and it should work.

              • 4. Re: Not able to load spring modules using wildfly 8.2
                Venkateswara Rao Newbie

                Thanks Tomaz to point out my typo in the file name definition, it fixed error, but caught me with another error, could you advice on the same?

                 

                11:21:14,071 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC0000

                01: Failed to start service jboss.deployment.unit."business_plans_jb60.war".INST

                ALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."busi

                ness_plans_jb60.war".INSTALL: JBAS018733: Failed to process phase INSTALL of dep

                loyment "business_plans_jb60.war"

                        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(Deplo

                ymentUnitPhaseService.java:166) [wildfly-server-8.2.0.Final.jar:8.2.0.Final]

                        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(Se

                rviceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

                        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceCont

                rollerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

                        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.

                java:1145) [rt.jar:1.7.0_60]

                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor

                .java:615) [rt.jar:1.7.0_60]

                        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_60]

                Caused by: java.lang.IllegalArgumentException: Empty name segment is not allowed

                for security-domain

                        at org.jboss.msc.service.ServiceName.of(ServiceName.java:90) [jboss-msc-

                1.2.2.Final.jar:1.2.2.Final]

                        at org.jboss.msc.service.ServiceName.append(ServiceName.java:117) [jboss

                -msc-1.2.2.Final.jar:1.2.2.Final]

                        at org.wildfly.extension.undertow.deployment.UndertowDeploymentProcessor

                .processDeployment(UndertowDeploymentProcessor.java:252)

                        at org.wildfly.extension.undertow.deployment.UndertowDeploymentProcessor

                .deploy(UndertowDeploymentProcessor.java:117)

                        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(Deplo

                ymentUnitPhaseService.java:159) [wildfly-server-8.2.0.Final.jar:8.2.0.Final]

                        ... 5 more