title: Jboss Oracle JDBC connection failed
body: <p>Jboss EAP 6.3, Oracle 11g Express.
  I have this oracle datasource in standalone:</p>
  
  <pre><code>                &lt;datasource jta="true" jndi-name="java:/OracleDS" pool-name="OracleDS"&gt;
                  &lt;connection-url&gt;jdbc:oracle:thin:@localhost:1521:XE&lt;/connection-url&gt;
                  &lt;driver&gt;oracleDriver&lt;/driver&gt;
                  &lt;security&gt;
                      &lt;user-name&gt;Boris&lt;/user-name&gt;
                      &lt;password&gt;password&lt;/password&gt;
                  &lt;/security&gt;
              &lt;/datasource&gt;
              &lt;drivers&gt;
                  &lt;driver name="oracleDriver" module="com.oracle"&gt;
                      &lt;xa-datasource-class&gt;oracle.jdbc.xa.client.OracleXADataSource&lt;/xa-datasource-class&gt;
                  &lt;/driver&gt;
              &lt;/drivers&gt;
  </code></pre>
  
  <p>The Oracle database is running, I can connect to it using sqlplus:</p>
  
  <pre><code>SQL&gt; connect
  Enter user-name: Boris
  Enter password: 
  Connected.
  </code></pre>
  
  <p>The datasource shows up in the Jboss admin panel. I run a test connection, but it responds with:</p>
  
  <pre><code>Unexpected HTTP response: 500
  
  Request
  {
      "address" =&gt; [
          ("subsystem" =&gt; "datasources"),
          ("data-source" =&gt; "OracleDS")
      ],
      "operation" =&gt; "test-connection-in-pool"
  }
  
  Response
  
  Internal Server Error
  {
      "outcome" =&gt; "failed",
      "failure-description" =&gt; "JBAS010440: failed to invoke operation: JBAS010447: Connection is not valid",
      "rolled-back" =&gt; true
  }
  </code></pre>
  
  <p>And in the jboss console I found this:</p>
  
  <pre><code>Caused by: java.sql.SQLException: ORA-00604: error occurred at recursive SQL lev
  el 1
  ORA-12705: Cannot access NLS data files or invalid environment specified
  </code></pre>
  
  <p>but the solutions to that error I found on the internet didn't help.</p>
  
  <p>What am I doing wrong?</p>