2 Replies Latest reply on Jul 17, 2002 10:05 PM by Keshore

    UserTransaction lookup failed on client side

    Keshore Newbie

      The following code
      ------------------------------------
      Properties jndi_properties = new Properties();
      jndi_properties.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
      jndi_properties.put(Context.PROVIDER_URL, "localhost:1142");
      jndi_properties.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
      ctx_ = new InitialContext(jndi_properties);
      ctx_.lookup("UserTransaction");
      -----------------------------

      throws FileNotFoundException while looking for these files

      jboss-3.0.0\config\security.properties
      jboss-3.0.0\config\ejb.properties
      ---

      Is my config missing something ? I am using jboss3.0.0 bundle with tomcat.