2 Replies Latest reply on Jun 10, 2014 3:56 AM by jaikiran pai

    Exception in Datasource init: java:comp/env

    Ketan Parihar Newbie

      HI,

       

      I am trying to do lookup using my InitialContext object which looks like this. initialContext = (Context) initialContext.lookup("java:comp/env");

      But i am getting an NameNotFoundException. The jndi name in my datasource file is "java :/<app-name>" and res-ref is jdbc/<app-name> in jboss-web.xml and web.xml.

      I am using Jboss EAP 6.2

      Could you help me resolving the issue.

      Thanks in advance.