1 Reply Latest reply on Jul 10, 2014 1:09 PM by Frank Henry

    AS7.2->WF8.1 Singleton Beans usually not found

    Frank Henry Novice

      We plan to upgrade from AS7.2 to WildFly 8.1 because we were facing some problems.

      I pretty much did a delete&copy update, except for the standalone.xml which I manually had to merge as there were many changes done.

      Everything pretty much went fine, except for my Singleton beans, that are usually not found by those trying to inject them. though it did work once! They were working fine in 7.2.

      The one time it worked, everything worked!

       

      To the set-up: I have one MDB that listens to a topic and 'saves' the messages into a Singleton. Then I have a servlet that interfaces this singleton to show the contents.

      When starting the server, the error below pops up.

       

      Anyone have a clue?

       

      Update:

      Seems to be related to the Servlet. Up until now I was simply using the 'usual' injection method:

      @EJB

      public void setCommandChannelHistory(CommandChannelHistory channelHistory) {

      this.channelHistory = channelHistory;

      }

      So I presume something changed with the resource injection or I missed a config somewhere.... or?

       

      14:45:40,622 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.deployment.unit."bcm-server-core.ear".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."bcm-server-core.ear".WeldStartService: Failed to start service

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_03]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_03]

          at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_03]

      Caused by: org.jboss.msc.service.ServiceNotFoundException: Service service jboss.deployment.subunit."bcm-server-core.ear"."messaging-history.jar".component.CommandChannelHistoryBean.VIEW."my.company.messaginghistory.commandchannel.CommandChannelHistory".LOCAL not found

          at org.jboss.msc.service.ServiceContainerImpl.getRequiredService(ServiceContainerImpl.java:668) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

          at org.jboss.as.weld.services.bootstrap.WeldEjbInjectionServices.getComponentView(WeldEjbInjectionServices.java:149)

          at org.jboss.as.weld.services.bootstrap.WeldEjbInjectionServices.handleServiceLookup(WeldEjbInjectionServices.java:124)

          at org.jboss.as.weld.services.bootstrap.WeldEjbInjectionServices.registerEjbInjectionPoint(WeldEjbInjectionServices.java:106)

          at org.jboss.weld.injection.ResourceInjectionFactory$EjbResourceInjectionProcessor.getResourceReferenceFactory(ResourceInjectionFactory.java:243)

          at org.jboss.weld.injection.ResourceInjectionFactory$EjbResourceInjectionProcessor.getResourceReferenceFactory(ResourceInjectionFactory.java:238)

          at org.jboss.weld.injection.ResourceInjectionFactory$ResourceInjectionProcessor.createSetterResourceInjection(ResourceInjectionFactory.java:219)

          at org.jboss.weld.injection.ResourceInjectionFactory$ResourceInjectionProcessor.createResourceInjections(ResourceInjectionFactory.java:190)

          at org.jboss.weld.injection.ResourceInjectionFactory.discoverType(ResourceInjectionFactory.java:405)

          at org.jboss.weld.injection.ResourceInjectionFactory.getResourceInjections(ResourceInjectionFactory.java:92)

          at org.jboss.weld.injection.producer.ResourceInjector.<init>(ResourceInjector.java:52)

          at org.jboss.weld.injection.producer.BeanInjectionTarget.initInjector(BeanInjectionTarget.java:55)

          at org.jboss.weld.injection.producer.BasicInjectionTarget.<init>(BasicInjectionTarget.java:68)

          at org.jboss.weld.injection.producer.BeanInjectionTarget.<init>(BeanInjectionTarget.java:49)

          at org.jboss.weld.manager.InjectionTargetFactoryImpl.chooseInjectionTarget(InjectionTargetFactoryImpl.java:126)

          at org.jboss.weld.manager.InjectionTargetFactoryImpl.createInjectionTarget(InjectionTargetFactoryImpl.java:88)

          at org.jboss.weld.bean.ManagedBean.<init>(ManagedBean.java:91)

          at org.jboss.weld.bean.ManagedBean.of(ManagedBean.java:71)

          at org.jboss.weld.bootstrap.AbstractBeanDeployer.createManagedBean(AbstractBeanDeployer.java:264)

          at org.jboss.weld.bootstrap.BeanDeployer.createClassBean(BeanDeployer.java:248)

          at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$2.doWork(ConcurrentBeanDeployer.java:74)

          at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$2.doWork(ConcurrentBeanDeployer.java:72)

          at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:60)

          at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:53)

          at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) [rt.jar:1.7.0_03]

          at java.util.concurrent.FutureTask.run(Unknown Source) [rt.jar:1.7.0_03]

          ... 3 more