0 Replies Latest reply on Feb 16, 2017 8:58 AM by g.shashikala_9

    WFLYEE0042: Failed to construct component instance

    g.shashikala_9

      Hi All,

      I am getting  WFLYEE0042: Failed to construct component instance while sending a message in wildfly 10.1.0 Final.

      In server log "failed to resolve resource uk.co.tui.ejb.webservice.Cyrus7WebServiceImpl/connFact"

      ConnectionFactory is NULL.

       

      In my WebServiceImpl class

      /** The conn fact. */

         @Resource(lookup = "java:/ConnectionFactory")

         private static ConnectionFactory  connFact;

       

      @PostConstruct

         public void init()

         {

            try

            {

               Connection conn = connFact.createConnection();

               session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);

            }

      catch (JMSException ex)

            {}  

         }

       

      When i am trying to print the connFact in my log i am getting NULL.

      Please find the attached standalone-full.xml configuration file.

       

      Thanks,

      Shashi