6 Replies Latest reply on Dec 19, 2002 5:03 PM by Patrick Lezy

    javax.naming.NameNotFoundException

    Dave Palmer Newbie

      Yes, before you flame me, I did look at the multitude of posts that covered this... but I haven't come across one in my searching that provided a solution to the problem I am having.

      I have a JNDI name: jdbc/phpa/Users
      I know its there, because when I go into the handy-dandy jmx_console, and then do a JNDIView, I see this:

      +- jdbc (class: org.jnp.interfaces.NamingContext)
      | +- phpa (class: org.jnp.interfaces.NamingContext)
      | | +- Users (class: org.jboss.resource.adapter.jdbc.local.LocalDataSource)

      why on earth would I get this exception:

      javax.naming.NameNotFoundException: jdbc not bound

      Basically, I have a stateless session bean, and in the ejbCreate() method, I do a:

      javax.sql.DataSource ds = (javax.sql.DataSource) ic.lookup("jdbc/phpa/Users");

      Any help, or whatever sure would be appreciated

      Thanks!
      ./dave