1 Reply Latest reply on Oct 23, 2002 10:00 AM by Keith Barron

    OracleXADataSource NameNotFoundException

    Keith Barron Newbie

      server.log has this:
      2002-10-22 14:16:15,999 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] Linking 'jdbc/XAOracleWorkItemDS' to JNDI name: java:/XAOracleWorkItemDS

      when i try this:
      OracleXADataSource dsWorkItem =
      (OracleXADataSource)ctx.lookup(
      "java:/XAOracleWorkItemDS");

      i get:
      NameNotFoundException: XAOracleWorkItemDS not bound

      XAOracleWorkItemDS is defined as mbean in oracle-xa-service.xml

      jboss-web.xml:
      <resource-ref>
      <res-ref-name>jdbc/XAOracleWorkItemDS</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <jndi-name>java:/XAOracleWorkItemDS</jndi-name>
      </resource-ref>

      web.xml:
      <resource-ref>
      DB Connection
      <res-ref-name>jdbc/XAOracleWorkItemDS</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth>Container</res-auth>
      </resource-ref>

      any ideas? thank you.

      Keith