3 Replies Latest reply on Jul 27, 2003 8:44 PM by gooperaus

    HelloWorld sample does not run

    bhomass

      I followed the HelloWorld tutorial all the way ok until I tried to run the client. I get the following:

      D:\jboss-tutorial\class>java -classpath .;c:\j2eesdk1.4_beta2\lib\j2ee.jar;d:\jb
      oss-3.2.1\client\log4j.jar;d:\jboss-3.2.1\client\jboss-common-client.jar;d:\jbos
      s-3.2.1\client\jboss-system-client.jar;d:\jboss-3.2.1\client\jnp-client.jar;d:\j
      boss-3.2.1\client\jboss-client.jar;d:\jboss-3.2.1\client\jbosssx-client.jar;d:\j
      boss-tutorial\HelloWorld.jar ie.tcd.cs.ejb_example.HelloWorldClient
      Exception in thread "main" java.lang.NoClassDefFoundError: Lorg/jboss/tm/Transac
      tionPropagationContextFactory;
      at java.lang.Class.getDeclaredFields0(Native Method)
      at java.lang.Class.privateGetDeclaredFields(Class.java:1480)
      at java.lang.Class.getField0(Class.java:1713)
      at java.lang.Class.getDeclaredField(Class.java:1176)
      at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1404

      any idea what is wrong?

      thanks

        • 1. Re: HelloWorld sample does not run
          jonlee

          Its fairly old so some of the things have changed. It looks like the JBoss support libraries you have included don't contain the TransactionPropagationContextFactory class. From the JBoss 3 series, you don't need all these individual libraries (which makes things easier). Use the jbossall-client.jar instead. It has the normal things you need to connect to JBoss. I've just checked on my 3.2.0 copy of the JAR and it has the TransactionPropagationContextFactory packaged in it.

          • 2. Re: HelloWorld sample does not run
            bhomass

            that worked great! Thanks.

            • 3. Re: HelloWorld sample does not run
              gooperaus

              Lorg/jboss/tm/Transac
              tionPropagationContextFactory

              why is it named as "Lorg.jboss.tm.transaction..."

              I find this class in jbossall-client.jar as "org.jboss.tm..."


              why?