1 Reply Latest reply on Jun 18, 2010 2:38 AM by jaikiran

    Incomplete specification of datasource for h2

    drdaveg

      I think this is trivial.  I am trying to configure a datasource "testDS" for using H2 under JBoss.

       

      <?xml version="1.0" encoding="UTF-8"?>
      <datasources>
        <local-tx-datasource>
          <jndi-name>jdbc/testDS</jndi-name>
          <connection-url>jdbc:h2:mem:mydb</connection-url>
          <driver-class>org.h2.jdbcx.JdbcDataSource</driver-class>
          <user-name>sa</user-name>
          <password></password>
        </local-tx-datasource>
      </datasources>

       

      and get the following - what am I missing?  Thanks in advance!

       

      David


      --- Packages waiting for a deployer ---
      org.jboss.deployment.DeploymentInfo@a4c217e { url=file:/C:/ blah blah path /jboss-4.2.3.GA/server/default/deploy/testDS.xml }
        deployer: null
        status: null
        state: INIT_WAITING_DEPLOYER
        watch: file:/C:/Documents and Settings/  blah blah path  /jboss-4.2.3.GA/server/default/deploy/testDS.xml
        altDD: null
        lastDeployed: 1276802264395
        lastModified: 1276802264379
        mbeans:

       

      --- Incompletely deployed packages ---
      org.jboss.deployment.DeploymentInfo@a4c217e { url=file:/C:/ blah blah path  jboss-4.2.3.GA/server/default/deploy/testDS.xml }
        deployer: null
        status: null
        state: INIT_WAITING_DEPLOYER
        watch: file:/C:/ blah blah path  /jboss-4.2.3.GA/server/default/deploy/testDS.xml
        altDD: null
        lastDeployed: 1276802264395
        lastModified: 1276802264379
        mbeans:

       

      --- MBeans waiting for other MBeans ---
      ObjectName: persistence.units:unitName=default
        State: NOTYETINSTALLED
        I Depend On:
          jboss.jca:name=testDS,service=DataSourceBinding

       

      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: jboss.jca:name=testDS,service=DataSourceBinding
        State: NOTYETINSTALLED
        Depends On Me:
          persistence.units:unitName=default

        • 1. Re: Incomplete specification of datasource for h2
          jaikiran

          David Goldstein wrote:


          --- Packages waiting for a deployer ---
          org.jboss.deployment.DeploymentInfo@a4c217e { url=file:/C:/ blah blah path /jboss-4.2.3.GA/server/default/deploy/testDS.xml }
            deployer: null
            status: null
            state: INIT_WAITING_DEPLOYER
            watch: file:/C:/Documents and Settings/  blah blah path  /jboss-4.2.3.GA/server/default/deploy/testDS.xml
            altDD: null
            lastDeployed: 1276802264395
            lastModified: 1276802264379
            mbeans:

           

           

          Datasource file names should end with a -ds.xml suffix. So rename testDS.xml to test-ds.xml

          1 of 1 people found this helpful