Using @Resource causes error during deployment on JBoss EAP 6.0.1

Solution Verified - Updated -

Issue

We have created the EJB (3.1) on JBoss EAP 6.0.1 and after including the following configuration:

  @Resource(mappedName = "ConnectionFactory")
  private static QueueConnectionFactory connectionFactory;

We are getting the following info message during deployment:

16:26:46,325 INFO  [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report
JBAS014775:    New missing/unsatisfied dependencies:
      service jboss.naming.context.java.comp.eMandadoWS-ejb.eMandadoWS-ejb.RoboService.env.ConnectionFactory (missing) dependents: [service jboss.naming.context.java.comp.eMandadoWS-ejb.eMandadoWS-ejb.RoboService.env."br.jus.trf1.bnmp.negocio.RoboServiceBean".connectionFactory]

ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: JBoss EAP 6.0.0.GA (AS 7.1.2.Final-redhat-1) started (with errors) in 12611ms - Started 136 of 276 services (3 services failed or missing dependencies, 136 services are passive or on-demand

Is there anything wrong with my configuration ?

Environment

  • JBoss Enterprise Application Platform (EAP) 6.0.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In