1 Reply Latest reply on Jul 5, 2003 11:24 AM by vynastya

    java.lang.NoClassDefFoundError: org/jboss/tm/TransactionProp

    gillou

      I'h had this error afert a ctx.lookup("xxxx");
      I'm trying to use DataSource from an ejb.

        • 1. Re: java.lang.NoClassDefFoundError: org/jboss/tm/Transaction
          vynastya

          I get this error too using the same command - ctx.lookup("xxx");

          and have no idea how to get rid of it.

          Did you have any luck getting rid of it, if so how?

          Can anyone else help.

          I'm guessing i'm missing something from my classpath, but can't find which one.

          Here is my code anyway:
          ******************************************

          Properties props = new Properties();

          props.setProperty "java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");

          props.setProperty "java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces");

          props.setProperty "java.naming.provider.url","182.168.0.1");

          InitialContext ctx = new InitialContext(props);

          Object obj = ctx.lookup("Hello");
          **************************************

          It breaks at the last line of code above.

          Thanks.