2 Replies Latest reply on Jul 8, 2002 4:04 AM by Joel Vogt

    configuring jboss client

    Terry Newbie

      I've been getting a runtime exception when attempting to get the object ref from JNDI.

      Code:
      Object ref = jndiContext.lookup("HelloEjb");

      Runtime Exception:
      java.lang.NoClassDefFoundError: Ljavax/transacti

      I'm importing the ejb's home and remote interfaces in my client and putting in the jnp_client.jar and jboss_client.jar in my classpath.

      I set my JNDI properties as such:

      Properties p = new Properties();
      p.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory" );
      p.put("java.naming.provider.url", "jnp://localhost:1099" );
      p.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces" );

      // Get a naming context
      InitialContext jndiContext = new InitialContext( p );

      The ejbs are deployed to the default deploy folder, successfully.

      What other configurations need to be done?

      I've been following the online documentation closely w/out success.

      Is their any configuration to JBoss itself that needs to be done before an Ejb can be called from an Ejb client?