1 Reply Latest reply on Sep 1, 2006 6:22 AM by Kevin Conner

    Configure Arjun JTA (usertransaction) in jboss

    Nancy Aggarwal Newbie

      hello all,

      I am using arjuna JTA with JBOSS.I am working for the first time with JTA.I followed all the step described in the Install file of the Distribution.but jboss server shows following exceptions:

      12:43:12,359 WARN [ServiceController] Problem starting service jboss:service=proxyFactory,target=ClientUserTransactionFactory
      javax.naming.CommunicationException: Failed to retrieve stub from server 192.168.0.57:1100 [Root exception is java.io.StreamCorruptedException: unexpected block data]
       at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:248)
       at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1294)
      




      12:43:27,968 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
      12:43:36,203 WARN [ServiceController] Problem starting service jboss:service=Hypersonic,database=localDB
      java.sql.SQLException: User not found: SA
       at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
       at org.hsqldb.jdbc.jdbcConnection.<init>(Unknown Source)
      


      --- MBeans waiting for other MBeans ---
      ObjectName: jboss:service=proxyFactory,target=ClientUserTransactionFactory
       State: FAILED
       Reason: javax.naming.CommunicationException: Failed to retrieve stub from server 192.168.0.57:1100 [Root exception is java.io.StreamCorruptedException: unexpected block data]
       I Depend On:
       jboss:service=invoker,type=jrmp
       Depends On Me:
       jboss:service=ClientUserTransaction
      
      ObjectName: jboss:service=Hypersonic,database=localDB
       State: FAILED
       Reason: java.sql.SQLException: User not found: SA
       Depends On Me:
       jboss.jca:service=ManagedConnectionFactory,name=DefaultDS
      
      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: jboss:service=proxyFactory,target=ClientUserTransactionFactory
       State: FAILED
       Reason: javax.naming.CommunicationException: Failed to retrieve stub from server 192.168.0.57:1100 [Root exception is java.io.StreamCorruptedException: unexpected block data]
       I Depend On:
       jboss:service=invoker,type=jrmp
       Depends On Me:
       jboss:service=ClientUserTransaction
      
      ObjectName: jboss:service=Hypersonic,database=localDB
       State: FAILED
       Reason: java.sql.SQLException: User not found: SA
       Depends On Me:
       jboss.jca:service=ManagedConnectionFactory,name=DefaultDS
      



      And when i deploy my application i get following error:

      13:02:45,875 ERROR [[ViewService]] Servlet.service() for servlet ViewService threw exception
      java.lang.LinkageError: Class javax/transaction/UserTransaction violates loader constraints
       at java.lang.ClassLoader.defineClass1(Native Method)
       at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
       at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
       at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1629)
       at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:850)
       at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1299)
       at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
      


      I want to use local transaction,Can anybody help me how to configure localTransaction in jboss.And Look up code for UserTransaction is:

      cntxt = new InitialContext();
      obj=cntxt.lookup("java:comp/UserTransaction");



      But not bound exception is coming.Please help.