1 Reply Latest reply on Apr 8, 2003 3:37 PM by vincev

    CMP transaction problem: UT factory lookup failed: javax.nam

    vincev

      Hi Folks,

      I am trying to get a CMP simple Transaction running, but I always get an exception like:
      UT factory lookup failed: javax.naming.CommunicationException: Can't find SerialContextProvider

      Could someone please provide my with a simple Transaction Demo using CMP where the lines
      [pre]
      UserTransaction userTran = (UserTransaction)ctx.lookup("UserTransaction");
      userTran.begin();
      ... snip ...
      userTran.commit();
      [/pre]
      do not cause troubles...

      I am using JBOSS 3.0.6 with Tomcat 4.1.18 with the embedded hypersonic DB on Win2k. I use JAVA j2sdk1.4.0_02 and JAVA j2sdkee1.3.1

      My .jar File is attached, when I uncomment the three lines mentioned above, everything works fine.

      Thanks in advance, VinceV

        • 1. Re: CMP transaction problem: UT factory lookup failed: javax
          vincev

          Forgot some information...

          - the three crucial lines are in my test client which connects to localhost:1099

          - my classpath is:[pre]
          .;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;
          C:\PROGRA~1\IBM\SQLLIB\java\db2jcc.jar;
          C:\PROGRA~1\IBM\SQLLIB\java\sqlj.zip;
          C:\PROGRA~1\IBM\SQLLIB\bin;
          C:\PROGRA~1\IBM\SQLLIB\java\common.jar;
          C:\Progra~1\j2sdkee1.3.1\lib\j2ee.jar;
          C:\Progra~1\jboss-3.0.6_tomcat-4.1.18\client\log4j.jar;
          C:\Progra~1\jboss-3.0.6_tomcat-4.1.18\client\jboss-common-client.jar;
          C:\Progra~1\jboss-3.0.6_tomcat-4.1.18\client\jboss-system-client.jar;
          C:\Progra~1\jboss-3.0.6_tomcat-4.1.18\client\jnp-client.jar;
          C:\Progra~1\jboss-3.0.6_tomcat-4.1.18\client\jboss-client.jar;
          C:\Progra~1\jboss-3.0.6_tomcat-4.1.18\client\jbosssx-client.jar [/pre]