1 Reply Latest reply on Jan 22, 2003 12:49 PM by odrec

    javax.naming.NameNotFoundException: comp not bound

    odrec

      I'm using JBoss 2.4.4 with JBuilder 5.

      I have sucessfully deployed my EJB but I keep getting this exception everutime I try to make a lookup to "java:comp/env/ejb/whatever".

      Please let me know what's going wrong.

        • 1. Re: javax.naming.NameNotFoundException: comp not bound
          odrec

          I already fixed this problem by setting the jndi.properties file to the following:

          java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
          java.naming.provider.url=jnp://localhost:1099
          java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
          java.naming.provider.url=localhost:1099

          I don't know if that's the right way to do it, but it's working, at least locally.