4 Replies Latest reply on Aug 27, 2003 2:17 AM by amitsaini76

    javax.naming.NameNotFoundException: env not bound

    amitsaini76

      Hi all Jboss Experts,
      After deploying simple Stateless Iam not able to look it up.

      Iam creating a simple statless and deploying it on jboss-3.2.1_tomcat-4.1.24 server. while deploying it shows deploying msg which is as follows
      17:31:16,359 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss
      -3.2.1_tomcat-4.1.24/server/default/deploy/stateless.jar
      17:31:16,375 INFO [MainDeployer] Deployed package: file:/C:/jboss-3.2.1_tomcat-
      4.1.24/server/default/deploy/stateless.jar

      My jboss.xml is

      false
      <enterprise-beans>

      <ejb-name>Logger</ejb-name>
      <jndi-name>LoggerHome</jndi-name>

      </enterprise-beans>


      and CLIENT code is
      Properties prop=new Properties();
      prop.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
      prop.put(Context.PROVIDER_URL,"localhost:1099");

      Context lContext = new InitialContext(prop);
      ErrorLoggerHome lHome = (ErrorLoggerHome)PortableRemoteObject.narrow(lContext.lookup("LoggerHome"),ErrorLoggerHome.class);

      Please Help
      Amit Saini