3 Replies Latest reply on Nov 28, 2012 4:58 AM by Nicklas Karlsson

    Getting an error when deploying project with jboss7

    Vishnu r Newbie

      11:54:11,839 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.module.service."deployment.starrate.ear".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.starrate.ear".main: Failed to load module: deployment.starrate.ear: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_13]

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

              at java.lang.Thread.run(Thread.java:619) [:1.6.0_13]

      Caused by: org.jboss.modules.ModuleNotFoundException: Module com.sun.jersey:main is not found

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

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

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

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

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

              at org.jboss.modules.Module.linkImports(Module.java:1039)

              at org.jboss.modules.Module.relink(Module.java:1151)

              at org.jboss.modules.ModuleLoader.relink(ModuleLoader.java:400)

              at org.jboss.as.server.moduleservice.ServiceModuleLoader.relinkModule(ServiceModuleLoader.java:204)

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

              ... 5 more

       

       

      11:54:11,839 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.module.service."deployment.starrate.ear.starratedao.jar".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.starrate.ear.starratedao.jar".main: Failed to load module: deployment.starrate.ear.starratedao.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_13]

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

              at java.lang.Thread.run(Thread.java:619) [:1.6.0_13]

      Caused by: org.jboss.modules.ModuleNotFoundException: com.sun.jersey:main

              at org.jboss.modules.ModuleLoader$FutureModule.getModule(ModuleLoader.java:445)

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

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

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

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

              at org.jboss.modules.Module.linkImports(Module.java:1039)

              at org.jboss.modules.Module.relink(Module.java:1151)

              at org.jboss.modules.ModuleLoader.relink(ModuleLoader.java:400)

              at org.jboss.as.server.moduleservice.ServiceModuleLoader.relinkModule(ServiceModuleLoader.java:204)

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

              ... 5 more

       

       

      11:54:11,839 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.module.service."deployment.starrate.ear.starraterws.war".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.starrate.ear.starraterws.war".main: Failed to load module: deployment.starrate.ear.starraterws.war: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_13]

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

              at java.lang.Thread.run(Thread.java:619) [:1.6.0_13]

      Caused by: org.jboss.modules.ModuleNotFoundException: com.sun.jersey:main

              at org.jboss.modules.ModuleLoader$FutureModule.getModule(ModuleLoader.java:445)

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

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

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

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

              at org.jboss.modules.Module.linkImports(Module.java:1039)

              at org.jboss.modules.Module.relink(Module.java:1151)

              at org.jboss.modules.ModuleLoader.relink(ModuleLoader.java:400)

              at org.jboss.as.server.moduleservice.ServiceModuleLoader.relinkModule(ServiceModuleLoader.java:204)

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

              ... 5 more

       

       

      11:54:11,839 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC00001: Failed to start service jboss.module.service."deployment.starrate.ear.starratedas.jar".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.starrate.ear.starratedas.jar".main: Failed to load module: deployment.starrate.ear.starratedas.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_13]

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

              at java.lang.Thread.run(Thread.java:619) [:1.6.0_13]

      Caused by: org.jboss.modules.ModuleNotFoundException: com.sun.jersey:main

              at org.jboss.modules.ModuleLoader$FutureModule.getModule(ModuleLoader.java:445)

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

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

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

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

              at org.jboss.modules.Module.linkImports(Module.java:1039)

              at org.jboss.modules.Module.relink(Module.java:1151)

              at org.jboss.modules.ModuleLoader.relink(ModuleLoader.java:400)

              at org.jboss.as.server.moduleservice.ServiceModuleLoader.relinkModule(ServiceModuleLoader.java:204)

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

              ... 5 more

        • 1. Re: Getting an error when deploying project with jboss7
          Nicklas Karlsson Master

          You have referred a module that can't be found in the AS (com.sun.jersey)

          • 2. Re: Getting an error when deploying project with jboss7
            Vishnu r Newbie

            got when deploy rest ws

             

            ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.subunit."st.ear"."strws.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."st.ear"."strws.war".POST_MODULE: Failed to process phase POST_MODULE of subdeployment "strws.war" of deployment "st.ear"

                    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)

                    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_13]

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

                    at java.lang.Thread.run(Thread.java:619) [:1.6.0_13]

            Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Only one JAX-RS Application Class allowed. com.sun.jersey.api.core.ApplicationAdapter com.sun.jersey.api.core.DefaultResourceConfig com.sun.jersey.api.core.WebAppResourceConfig com.sun.jersey.api.core.ResourceConfig com.sun.jersey.server.impl.application.DeferredResourceConfig com.sun.jersey.api.core.ClasspathResourceConfig com.sun.jersey.api.core.PackagesResourceConfig com.sun.jersey.api.core.ClassNamesResourceConfig com.sun.jersey.api.core.ScanningResourceConfig

                    at org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.scan(JaxrsScanningProcessor.java:232)

                    at org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.deploy(JaxrsScanningProcessor.java:114)

                    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)

            • 3. Re: Getting an error when deploying project with jboss7
              Nicklas Karlsson Master

              Duplicate JAX-RS are picked up, you can't have both active (RestEasy and Jersey), if you don't have any special reason for using Jersey, you could drop all Jersey references and it should "just work". If you want to use Jersey, there are web.xml parameters and jboss-deployment-structure constructs that can be used for excluding RestEasy scanning (google around for the exception you got)