2 Replies Latest reply on Dec 3, 2001 12:45 AM by banigreyling

    JBoss 3.0.0 XADatasource

    banigreyling

      Congfig:
      JBoss_3.0.0_alpha
      NT 4.0
      JDK1.3

      I use a XADatasource but get a rollback exception and as a result my lookup fail. Here is the stack trace

      javax.transaction.TransactionRolledbackException: null; nested exception is:
      java.lang.NoSuchMethodError
      java.lang.NoSuchMethodError
      at org.jboss.resource.adapter.jdbc.xa.XAManagedConnection$1.connectionClosed(XAManagedConnection.java:115)
      at com.jnetdirect.jsql.JSQLPooledConnection.notifyEvent(Unknown Source)
      at com.jnetdirect.jsql.JSQLFromPooledConnection.close(Unknown Source)
      at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.java:197)
      at org.jboss.ejb.plugins.jaws.jdbc.JDBCBeanExistsCommand.execute(JDBCBeanExistsCommand.java:60)
      at org.jboss.ejb.plugins.jaws.jdbc.JDBCFindEntityCommand.execute(JDBCFindEntityCommand.java:79)
      at org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.findEntity(JAWSPersistenceManager.java:144)
      at org.jboss.ejb.plugins.CMPPersistenceManager.findEntity(CMPPersistenceManager.java:326)
      at org.jboss.ejb.EntityContainer.find(EntityContainer.java:631)
      at java.lang.reflect.Method.invoke(Native Method)
      ......
      ......


      Here is my datasource deployment descriptor.


      <?xml version="1.0" encoding="UTF-8"?>




      XADataSourceClass=com.jnetdirect.jsql.JSQLXADataSource
      XADataSourceProperties=URL=jdbc:JSQLConnect://SomeDB;DatabaseName=SomeDB;ServerName=SomeDB
      UserName=user
      Password=pass

      SomeDB
      java:/TransactionManager

      <mbean-ref name="ResourceAdapterName">JCA:service=RARDeployment,name=Minerva JDBC XATransaction ResourceAdapter</mbean-ref>
      <mbean-ref name="ConnectionManagerFactoryLoaderName">JCA:service=ConnectionManagerFactoryLoader,name=MinervaXACMFactory</mbean-ref>
      #
      #Wed Aug 15 16:17:29 EDT 2001
      MinSize=0
      MaxSize=10
      BlockingTimeoutMillis=5000
      IdleTimeoutMinutes=30
      CleanupIntervalMinutes=10
      MaxIdleTimeoutPercent=1.0


      org.jboss.resource.security.ManyToOnePrincipalMapping

      UserName=sa





      I really do not now what the problem could be. The missing method is not in my beans: it work in JBoss_2.4.3. Any ideas would be appreciated!

      Regards
      Bani

        • 1. Re: JBoss 3.0.0 XADatasource
          davidjencks

          You get to be the alpha tester for the jca-xa wrapper. This seems to be caused by code that compiles but does not run... protected superclass method not visible from anonymous inner class of subclass. I checked in something that I think should fix this, could you try it and let me know?

          When you get it working I hope you will contribute your connection factory loader config to the manual.

          I assume when you say it was working in 2.4.3 you were using the XADataSourceLoader?

          Thanks
          david jencks

          • 2. Re: JBoss 3.0.0 XADatasource
            banigreyling

            When I sead it was working in 2.4.3 I meant my beans are working, but yes it was XADataSourceLoader.

            I would certaily make the config available for contribution, just tell me how. When would the next JBoss alpha dist be available. Due to my firewall it is not possible for me to checkout the source.

            I see in the jboss.jcml (JBoss_2.4.3) somthing similar as to what is going on in in JBoss_3.0.0. Is is supposed to work, because I could not get it to work.

            My config look like this.

            <!-- Shipping Database -->

            Shipping

            com.jnetdirect.jsql.JSQLXADataSource


            URL=jdbc:JSQLConnect://DevDist
            ServerName=DevDist
            DatabaseName=Shipping
            User=sa
            Password=somepass

            true



            ShippingDS
            JCA:service=RARDeployer

            Minerva Shipping XA Resource Adapter


            XADataSourceName=java:/Shipping



            MinervaXACMFactory


            # Pool type - uncomment to force, otherwise it is the default
            #PoolConfiguration=per-factory

            # Connection pooling properties - see
            # org.jboss.pool.PoolParameters
            MinSize=0
            MaxSize=10
            Blocking=true
            GCEnabled=false
            IdleTimeoutEnabled=false
            InvalidateOnError=false
            TrackLastUsed=false
            GCIntervalMillis=120000
            GCMinIdleMillis=1200000
            IdleTimeoutMillis=1800000
            MaxIdleTimeoutPercent=1.0



            org.jboss.resource.security.ManyToOnePrincipalMapping


            userName=sa
            password=




            Regards
            Bani