3 Replies Latest reply on Oct 5, 2011 10:47 AM by jaikiran

    Deployment fails: qFactory and queue missing

    the_earnest

      Hi,

       

      I'm trying to deploy an ear on the AS 7.0.2, but it fails due to these reasons:

       

      {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Services with missing/unavailable dependencies" => ["jboss.naming.context.java.comp.tmfs-ear.\"tmfs-feed-services-0.0.1-SNAPSHOT\".FeedUpdateStarter.env.\"foo.bar.tmfs.core.session.feed.FeedUpdateStarter\".qFactory missing [ jboss.naming.context.java.comp.tmfs-ear.\"tmfs-feed-services-0.0.1-SNAPSHOT\".FeedUpdateStarter.env.jms.AISQueueCF ]","jboss.naming.context.java.comp.tmfs-ear.\"tmfs-feed-services-0.0.1-SNAPSHOT\".FeedUpdateStarter.env.\"foo.bar.tmfs.core.session.feed.FeedUpdateStarter\".queue missing [ jboss.naming.context.java.comp.tmfs-ear.\"tmfs-feed-services-0.0.1-SNAPSHOT\".FeedUpdateStarter.env.jms.SubscriptionsQueue ]"]}}}

       

      I already created the queues below, but it still fails.

       

      add-jms-queue --name=SubscriptionsQueue

      add-jms-queue --name=AISQueueCF

      add-jms-queue --name=java:jboss/jms/SubscriptionsQueue

      add-jms-queue --name=java:jboss/jms/AISQueueCF

       

      Can anyone tell me what to do to make it work?

       

      thanx

        • 1. Re: Deployment fails: qFactory and queue missing
          jaikiran

          What does the @Resource injection code look like?

          1 of 1 people found this helpful
          • 2. Re: Deployment fails: qFactory and queue missing
            the_earnest

            import javax.jms.Queue;
            import javax.jms.QueueConnectionFactory;

             

            ...

            @EJB(name="java:global/ejb/FeedUpdateStarter", beanInterface=FeedUpdateStarterLocal.class)

            public class FeedUpdateStarter implements FeedUpdateStarterLocal {

             

            ...

            @Resource(mappedName = "jms/AISQueueCF")
            private QueueConnectionFactory qFactory;
            @Resource(mappedName = "jms/SubscriptionsQueue")
            private Queue queue;

            ...

            • 3. Re: Deployment fails: qFactory and queue missing
              jaikiran

              Ernst Ernst wrote:

               

               

              ...

              @Resource(mappedName = "jms/AISQueueCF")
              private QueueConnectionFactory qFactory;
              @Resource(mappedName = "jms/SubscriptionsQueue")
              private Queue queue;

              ...

               

              That should be:

               

              @Resource(mappedName = "java:jboss/jms/AISQueueCF")
              private QueueConnectionFactory qFactory;
              @Resource(mappedName = "java:jboss/jms/SubscriptionsQueue")
              private Queue queue;