3 Replies Latest reply on Dec 29, 2016 6:07 AM by ricardo matos

    Module com.deployment:main is not found in local module loader @16bdb503 (roots: /opt/jboss/jboss7.1.1/modules)

    ibtissem aissa Newbie

      Hi,

      I would like to make a reference to external jar deploymentConfig.jar. I put it under JAVA_HOME/modules, and reference it in jboss-deployment-structure.xml (see it below). but I have this exception. What's wrong?

       

      exception

       

      10:00:50,469 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.module.service."deployment.MegaCor.ear".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.MegaCor.ear".main: Failed to load module: deployment.MegaCor.ear:main

                at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:91) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [rt.jar:1.6.0_41]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [rt.jar:1.6.0_41]

                at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_41]

      Caused by: org.jboss.modules.ModuleNotFoundException: Module com.deployment:main is not found in local module loader @16bdb503 (roots: /opt/jboss/jboss7.1.1/modules)

                at org.jboss.modules.LocalModuleLoader.findModule(LocalModuleLoader.java:126)

                at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:275)

                at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:222)

                at org.jboss.modules.LocalModuleLoader.preloadModule(LocalModuleLoader.java:94)

                at org.jboss.modules.ModuleLoader.preloadExportedModule(ModuleLoader.java:233)

                at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:246)

                at org.jboss.as.server.moduleservice.ServiceModuleLoader.preloadModule(ServiceModuleLoader.java:160) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

                at org.jboss.modules.Module.addPaths(Module.java:841)

                at org.jboss.modules.Module.link(Module.java:1181)

                at org.jboss.modules.Module.relinkIfNecessary(Module.java:1207)

                at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:208)

                at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:70) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

                ... 5 more

       

       

      jboss-deployment-structure.xml :

       

      <?xml version="1.0" encoding="UTF-8" standalone="no"?>

      <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1">

                <ear-subdeployments-isolated>false</ear-subdeployments-isolated>

                <deployment>

                          <dependencies>

                                    <module name="org.apache.ant"/>

                                    <module name="com.wmq" />

                                    <module name="com.palmyrajdbc" />

                                    <module name="com.deployment" />

                          </dependencies>

                          <exclusions>

                                    <module name="org.apache.log4j"/>

                          </exclusions>

                </deployment>

                <sub-deployment name="MegaCor.war">

                          <dependencies>

                                    <module name="org.apache.ant"/>

                                    <module name="com.palmyrajdbc" />

                                    <module name="com.wmq" />

                                    <module name="com.deployment" />

                          </dependencies>

                          <exclusions>

                                    <module name="org.apache.log4j"/>

                          </exclusions>

                </sub-deployment>

                <sub-deployment name="service.jar">

                          <dependencies>

                                    <module name="org.apache.ant"/>

                                    <module name="com.wmq" />

                                    <module name="com.palmyrajdbc" />

                                    <module name="com.deployment" />

                          </dependencies>

                          <exclusions>

                                    <module name="org.apache.log4j"/>

                          </exclusions>

                </sub-deployment>

      </jboss-deployment-structure>