2 Replies Latest reply on Jul 6, 2003 10:40 PM by vynastya

    NoClassDefFound: TransactionPropagationContextFactory

    vynastya

      Hi, I am getting a class not found error for org.jboss.tm.TransactionPropagationContextFactory
      when i make a Context.lookup("xxx") call.

      Can anyone tell me as to why.
      I have jboss\lib\* and jboss\client\* both in my classpath, but still guessing i must be missing something from my classpath.

      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.

      Any help would be very appreciated. I have been trying to find the answer to this problem for a day or two now.