1 Reply Latest reply on Dec 6, 2011 7:11 AM by jaikiran

    oracle db connectivity failing

    vijayaa

      Hi,

       

      Iam new to jboss app server. After creating oracle datasource ,While testing oracle database connectivity through jboss as 7.0.2 getting following error

       

       

      [standalone@localhost:9999 /] /subsystem=datasources/data-source=java\:\/jdbc\/MyOracle:test-connection-in-pool

      {

          "outcome" => "failed",

          "failure-description" => "Operation handler failed: java.util.NoSuchElementException: \"data-source\" => \"java:/jdbc/MyOracle\"",

          "rolled-back" => true

       

      Please let us know how to overcome this.Attached module.xml and standalone.xml.Thanking you in advance.

       

      Regards,

      Srihari

        • 1. Re: oracle db connectivity failing
          jaikiran

          vijayaa wrote:

           

           

           

          [standalone@localhost:9999 /] /subsystem=datasources/data-source=java\:\/jdbc\/MyOracle:test-connection-in-pool

          {

              "outcome" => "failed",

              "failure-description" => "Operation handler failed: java.util.NoSuchElementException: \"data-source\" => \"java:/jdbc/MyOracle\"",

              "rolled-back" => true

           

          Looking at your standalone.xml, you don't have any such datasource by that JNDI name. If you want to use that JNDI name then you'll have to first create a datasource with that jndi name, else use the correct jndi name from among the deployed datasources.