2 Replies Latest reply on Dec 1, 2003 3:31 AM by nrkonjeti

    javax.naming.NameNotFoundException

    nrkonjeti Newbie

      am getting the following exception.

      javax.naming.NameNotFoundException: MGUDataSource not bound

      ,
      I am using following code in my jsp program,, i am not getting, how did i get the error. please help me.


      Context ic = new InitialContext();
      DataSource ds = (DataSource) ic.lookup("java:comp/env/MGUDataSource");
      Connection con = ds.getConnection();


      thanks in advance.

      regards
      nr konjeti