2 Replies Latest reply on Sep 5, 2002 10:25 PM by cnwy

    How to check out the datasource is bounded?

    cnwy Newbie

      I have copyed the oracle-xa-service.xml(modified) to the deploy folder.After auto-deployment(Jboss) I found XAOracleDS in jndiview(Java:NameSpace).
      But when I deploy a cmp2.0 entity bean,It raise exception:
      org.jboss.deployment.DeploymentException: Error: can't find data source: XAOracleDS; - nested throwable: (javax.naming.NameNotFoundException: XAOracleDS not bou
      nd)

      (jboss3.0.2)

      can somebody help?

        • 1. Re: How to check out the datasource is bounded?
          David Jencks Master

          Maybe in your jbosscmp-jdbc.xml file you should specify java:/XAOracleDS, or ask on the cmp forum

          • 2. Re: How to check out the datasource is bounded?
            cnwy Newbie

            Thanks for reply.
            I changed XAOracleDS to java:XAOracleDs,now they can be deployed successfully and create tables.

            but,when I run ant setup,it raise exception again.
            [junit] 1) testSetUp(org.jboss.docs.cmp2.crimeportal.CrimePortalSetUp)
            [junit] javax.ejb.CreateException: Could not create entity:java.sql.SQLException: Unable to get Connection: javax.resource.ResourceException: Could not enli
            st in transaction on entering meta-aware object!javax.transaction.SystemException: Could not enlist XAResource!javax.transaction.RollbackException: Already marked for rollback