4 Replies Latest reply on Aug 26, 2014 12:25 AM by Inoshika Gamage

    Problem with weld and Jboss 7

    Romulo Lana Newbie

      When I tried to deploy a EAR in Jboss 7, the following error ocorried:

       

      17:48:31,755 INFO  [org.jboss.weld] (MSC service thread 1-1) Stopping weld service

      17:48:31,771 ERROR [org.jboss.weld.Bootstrap] (MSC service thread 1-1) Exception(s) thrown during observer of BeforeShutdown

      17:48:31,771 ERROR [org.jboss.weld.Bootstrap] (MSC service thread 1-1) : java.lang.IllegalStateException: Singleton not set for ModuleClassLoader for Module "deployment.gescom.ear:main" from Service Module Loader

       

      Does someone have any idea why this error happens?

       

      Thanks in advance,

       

      Rômulo Cordeiro Lana  

      Systems Analyst - Public  Prosecutor of the State of Minas Gerais

      IT Superintendent - Information  Systems - System Architecture

      Tel.: (+55 31) 33308340 -  romulolana@mp.mg.gov.br

       

       

      Complete Log:

       

      17:48:31,739 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 1) Deployment of "gescom.ear" was rolled back with failure message {"Services with missing/unavailable dependencies" => ["jboss.naming.context.java.comp.gescom.\"gescom-core-0.0.1-SNAPSHOT\".ComarcaBC.env.\"br.gov.mg.mp.gescom.business.comarca.ComarcaBC\".historicoEntranciaBC missing [ jboss.naming.context.java.comp.gescom.\"gescom-core-0.0.1-SNAPSHOT\".ComarcaBC.env.\"br.gov.mg.mp.gescom.domain.comarca.HistoricoEntrancia\" ]","jboss.naming.context.java.comp.gescom.\"gescom-core-0.0.1-SNAPSHOT\".UnidadeOrigemBC.env.\"br.gov.mg.mp.gescom.business.unidade.UnidadeOrigemBC\".formaOrigemBC missing [ jboss.naming.context.java.comp.gescom.\"gescom-core-0.0.1-SNAPSHOT\".UnidadeOrigemBC.env.\"br.gov.mg.mp.gescom.domain.unidade.FormaOrigem\" ]","jboss.naming.context.java.comp.gescom.\"gescom-core-0.0.1-SNAPSHOT\".ComarcaBC.env.\"br.gov.mg.mp.gescom.business.comarca.ComarcaBC\".unidadeBC missing [ jboss.naming.context.java.comp.gescom.\"gescom-core-0.0.1-SNAPSHOT\".ComarcaBC.env.\"br.gov.mg.mp.gescom.domain.unidade.Unidade\" ]","jboss.naming.context.java.comp.gescom.\"gescom-core-0.0.1-SNAPSHOT\".UnidadeBC.env.\"br.gov.mg.mp.gescom.business.unidade.UnidadeBC\".unidadeOrigemBC missing [ jboss.naming.context.java.comp.gescom.\"gescom-core-0.0.1-SNAPSHOT\".UnidadeBC.env.\"br.gov.mg.mp.gescom.domain.unidade.UnidadeOrigem\" ]","jboss.naming.context.java.comp.gescom.\"gescom-core-0.0.1-SNAPSHOT\".UnidadeBC.env.\"br.gov.mg.mp.gescom.business.unidade.UnidadeBC\".formaOrigemBC missing [ jboss.naming.context.java.comp.gescom.\"gescom-core-0.0.1-SNAPSHOT\".UnidadeBC.env.\"br.gov.mg.mp.gescom.domain.unidade.FormaOrigem\" ]","jboss.naming.context.java.comp.gescom.\"gescom-core-0.0.1-SNAPSHOT\".ComarcaBC.env.\"br.gov.mg.mp.gescom.business.comarca.ComarcaBC\".cidadeBC missing [ jboss.naming.context.java.comp.gescom.\"gescom-core-0.0.1-SNAPSHOT\".ComarcaBC.env.\"br.gov.mg.mp.endtel.domain.Cidade\" ]","jboss.naming.context.java.comp.gescom.\"gescom-core-0.0.1-SNAPSHOT\".UnidadeBC.env.\"br.gov.mg.mp.gescom.business.unidade.UnidadeBC\".instalacaoUnidadeBC missing [ jboss.naming.context.java.comp.gescom.\"gescom-core-0.0.1-SNAPSHOT\".UnidadeBC.env.\"br.gov.mg.mp.gescom.domain.unidade.InstalacaoUnidade\" ]","jboss.naming.context.java.comp.gescom.\"gescom-core-0.0.1-SNAPSHOT\".InstalacaoUnidadeBC.env.\"br.gov.mg.mp.gescom.business.unidade.InstalacaoUnidadeBC\".unidadeBC missing [ jboss.naming.context.java.comp.gescom.\"gescom-core-0.0.1-SNAPSHOT\".InstalacaoUnidadeBC.env.\"br.gov.mg.mp.gescom.domain.unidade.Unidade\" ]","jboss.naming.context.java.comp.gescom.\"gescom-core-0.0.1-SNAPSHOT\".UnidadeBC.env.\"br.gov.mg.mp.gescom.business.unidade.UnidadeBC\".transformacaoUnidadeBC missing [ jboss.naming.context.java.comp.gescom.\"gescom-core-0.0.1-SNAPSHOT\".UnidadeBC.env.\"br.gov.mg.mp.gescom.domain.unidade.TransformacaoUnidade\" ]","jboss.naming.context.java.comp.gescom.\"gescom-core-0.0.1-SNAPSHOT\".ComarcaBC.env.\"br.gov.mg.mp.gescom.business.comarca.ComarcaBC\".promotoriaBC missing [ jboss.naming.context.java.comp.gescom.\"gescom-core-0.0.1-SNAPSHOT\".ComarcaBC.env.\"br.gov.mg.mp.gescom.domain.comarca.Promotria\" ]","jboss.naming.context.java.comp.gescom.\"gescom-core-0.0.1-SNAPSHOT\".HistoricoEntranciaBC.env.\"br.gov.mg.mp.gescom.business.comarca.HistoricoEntranciaBC\".origemInformacaoBC missing [ jboss.naming.context.java.comp.gescom.\"gescom-core-0.0.1-SNAPSHOT\".HistoricoEntranciaBC.env.\"br.gov.mg.mp.gescom.domain.comarca.OrigemInformacao\" ]","jboss.naming.context.java.comp.gescom.\"gescom-core-0.0.1-SNAPSHOT\".ComarcaBC.env.\"br.gov.mg.mp.gescom.business.comarca.ComarcaBC\".vagaPromotoriaBC missing [ jboss.naming.context.java.comp.gescom.\"gescom-core-0.0.1-SNAPSHOT\".ComarcaBC.env.\"br.gov.mg.mp.gescom.domain.procuradoria.VagaPromotoria\" ]","jboss.naming.context.java.comp.gescom.\"gescom-core-0.0.1-SNAPSHOT\".UnidadeBC.env.\"br.gov.mg.mp.gescom.business.unidade.UnidadeBC\".organizacaoMpBC missing [ jboss.naming.context.java.comp.gescom.\"gescom-core-0.0.1-SNAPSHOT\".UnidadeBC.env.\"br.gov.mg.mp.gescom.domain.unidade.OrganizacaoMp\" ]","jboss.naming.context.java.comp.gescom.\"gescom-core-0.0.1-SNAPSHOT\".ComarcaBC.env.\"br.gov.mg.mp.gescom.business.comarca.ComarcaBC\".instalacaoUnidadeBC missing [ jboss.naming.context.java.comp.gescom.\"gescom-core-0.0.1-SNAPSHOT\".ComarcaBC.env.\"br.gov.mg.mp.gescom.domain.unidade.InstalacaoUnidade\" ]"]}

      17:48:31,755 INFO  [org.jboss.weld] (MSC service thread 1-1) Stopping weld service

      17:48:31,771 ERROR [org.jboss.weld.Bootstrap] (MSC service thread 1-1) Exception(s) thrown during observer of BeforeShutdown

      17:48:31,771 ERROR [org.jboss.weld.Bootstrap] (MSC service thread 1-1) : java.lang.IllegalStateException: Singleton not set for ModuleClassLoader for Module "deployment.gescom.ear:main" from Service Module Loader

      at org.jboss.as.weld.services.ModuleGroupSingletonProvider$TCCLSingleton.get(ModuleGroupSingletonProvider.java:73) [jboss-as-weld-7.0.2.Final.jar:7.0.2.Final]

      at org.jboss.weld.context.AbstractSharedContext.getBeanStore(AbstractSharedContext.java:54) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]

      at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:94) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]

      at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:693) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]

      at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:264) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]

      at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]

      at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:88) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]

      at org.jboss.weld.bootstrap.events.BeforeShutdownImpl.fire(BeforeShutdownImpl.java:62) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]

      at org.jboss.weld.bootstrap.events.BeforeShutdownImpl.fire(BeforeShutdownImpl.java:50) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]

      at org.jboss.weld.bootstrap.WeldBootstrap.shutdown(WeldBootstrap.java:499) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]

      at org.jboss.as.weld.WeldContainer.stop(WeldContainer.java:102) [jboss-as-weld-7.0.2.Final.jar:7.0.2.Final]

      at org.jboss.as.weld.services.WeldService.stop(WeldService.java:103) [jboss-as-weld-7.0.2.Final.jar:7.0.2.Final]

      at org.jboss.msc.service.ServiceControllerImpl$StopTask.stopService(ServiceControllerImpl.java:1909)

      at org.jboss.msc.service.ServiceControllerImpl$StopTask.run(ServiceControllerImpl.java:1872)

      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [:1.7.0]

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [:1.7.0]

      at java.lang.Thread.run(Thread.java:722) [:1.7.0]