1 Reply Latest reply on Nov 19, 2008 2:58 AM by jaikiran pai

    jboss can't connect to Oracle

    Istvan Nagy Newbie

      Hi

      I found here a simple oracle testing method:
      http://bderzhavets.blogspot.com/2007/06/deployment-seam-application-against.html
      i tried it but i have a problem with a connection, so i got this error/warn:

      12:31:49,721 WARN [JBossManagedConnectionPool] Throwable while attempting to get a new connection: null
      org.jboss.resource.JBossResourceException: Could not create connection;
      - nested throwable: (java.sql.SQLException: Io exception:
      The Network Adapter could not establish the connection)

      i found here an answer for this :
      "This stack trace is probably due to using an old oracle
      JDBC driver with a newer oracle engine"

      So i found two driver, where the server run ojdbc5.jar, ojdbc6.jar
      , and i download ojdbc14.jar but i got the same error message.

      So have you got any idea what would be the problem?
      Or where should i looking for the bug, or which log files should i check?

      THanks,

      Istvan

        • 1. Re: jboss can't connect to Oracle
          jaikiran pai Master

           

          org.jboss.resource.JBossResourceException: Could not create connection;
          - nested throwable: (java.sql.SQLException: Io exception:
          The Network Adapter could not establish the connection)


          Are you sure that the connection url that you have specified in your datasource (-ds.xml) file is correct? Please post the contents of that file and also post the entire exception stacktrace. Which version of Oracle DB server do you use?

          While posting the logs or code or xml content, remember to wrap it in a code block using the Code button in the message editor window and please hit the Preview button to make sure your post is correctly formatted