7 Replies Latest reply on Jul 21, 2011 9:00 AM by mcatalin23

    Jboss 7 - depoyment error

    mcatalin23

      I'm trying to test my application on Jboss 7 application server instead of Jboss 6.

      The deplyment is not working in Jboss 7 with my ear file although it is working in Jboss 6.

      I get following Error:

      org.jboss.modules.ModuleLoadException: Circular export path in deployment.<app>.ear.<Project_name>.jar:main

       

      Can anyone help me with this error. What could cause this error message?

       

      The complete error is listed below:

       

      09:15:27,127 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.module.service."deployment.<app>.ear.<Project_name_001>.jar".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.<app>.ear.<Project_name_001>.jar".main: Failed to load module: deployment.<app>.ear.<Project_name_001>.jar:main

               at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:67)

               at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)

               at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)

               at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_23]

               at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_23]

               at java.lang.Thread.run(Thread.java:662) [:1.6.0_23]

      Caused by: org.jboss.modules.ModuleLoadException: Circular export path in deployment.<app>.ear.<Project_name_002>.jar:main

               at org.jboss.modules.Module.linkExports(Module.java:850)

               at org.jboss.modules.Module.linkExports(Module.java:844)

               at org.jboss.modules.Module.linkExportsIfNeeded(Module.java:1146)

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

               at org.jboss.modules.Module.linkExports(Module.java:921)

               at org.jboss.modules.Module.linkExports(Module.java:844)

               at org.jboss.modules.Module.linkExportsIfNeeded(Module.java:1146)

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

               at org.jboss.modules.Module.linkExports(Module.java:921)

               at org.jboss.modules.Module.linkExports(Module.java:844)

               at org.jboss.modules.Module.linkExportsIfNeeded(Module.java:1146)

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

               at org.jboss.modules.Module.linkExports(Module.java:921)

               at org.jboss.modules.Module.linkExports(Module.java:844)

               at org.jboss.modules.Module.linkExportsIfNeeded(Module.java:1146)

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

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

               at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:63)

               ... 5 more

        • 1. Re: Jboss 7 - depoyment error
          dfeufel

          I am facing the same issue. I think the problem is related to Class-Path entries in the contained jar's manifests. I searched for some constellation like jar1 -> jar2 -> jar1 but did not find any obvious problems. I only have dependencies like jar1 -> jar2 -> jar3 and jar4 -> jar2,jar3 but that should possibly, shouldn't it?

          • 2. Re: Jboss 7 - depoyment error
            jaikiran

            Is there a application that you can attach which reproduces this issue? Or any other details?

            • 3. Re: Jboss 7 - depoyment error
              dfeufel

              I attached some test ear. These are the dependencies:

               

              war -> jar1, jar3

              jar1 -> jar2

              jar2 -> jar3

               

              Ok, you might mention, that the dependency to jar3 inside the war is not neccessary, but there is no cycle and imho this should work anyway.

              • 4. Re: Jboss 7 - depoyment error
                gonne

                I can not reproduce this issue with your test.ear, it deploys without errors in JBoss 7.0.0.

                • 5. Re: Jboss 7 - depoyment error
                  jaikiran

                  Deploys fine for me too.

                  • 6. Re: Jboss 7 - depoyment error
                    dfeufel

                    Hmm, after cleaning up my deployments directory the same ear works here, too. I will do some analysis and come back to you.

                    • 7. Re: Jboss 7 - depoyment error
                      mcatalin23

                      My case in the same ear as in the post # 3 with following modification:

                      jar1 -> jar2

                      jar2 -> jar1

                       

                      So I do have circular references into MANIFEST.MF files between jars.

                      But the same ear is working into Jboss 6.

                      The problem is only into Jboss 7. (Getting: Circular export path in ...)

                       

                      What could be the solution for this issue to make my ear to work into Jboss AS 7?

                      Why is it working into Jboss 6 although I have circular refs?