I have this piece of code that used to run properly using JBoss 5.1, Oracle 11, ojdbc6.jar. I was getting the OracleConnection as needed.

```
InitialContext ic = new InitialContext();
DataSource  ds = ( DataSource ) ic.lookup( "java:/" + dataSource );
Connection con = ds.getConnection();       
OracleConnection conn = con.unwrap( OracleConnection.class );

```

Not anymore using JBoss 7, Oracle 11, ojdbc6.jar.
It says like this:

> 
> Connection
>  Not a wrapper class for Oracle Connection
> 
> 
> 

If you have any idea, please help.