Wednesday, June 16, 2010

The type oracle.jdbc.driver.OracleTypes is not visible

I was working on migrating a project from WAS 5 to WAS 7. I experienced an issue with oracletypes class . The issue was type oracle.jdbc.driver.OracleTypes is not visible .
After doing hours of research looks like the WAS 7 uses oracle 11g driver. In ojdbc14.jar the visibility of OracleTypes is public the visibility of the OracleTypes class in ojdbc6.jar is changed to default so you can use it. We had to change to oracle.jdbc.OracleTypes from oracle.jdbc.driver.OracleTypes to make the application work.

5 comments:

  1. Hi
    After replacing from oracle.jdbc.driver.OracleTypes to oracle.jdbc.OracleTypes for ojdbc14.jar it is working fine. when i will use ojdbc6.jar, then shall i use oracle.jdbc.OracleTypes or oracle.jdbc.driver.OracleTypes?

    ReplyDelete
  2. thank youuuuuuuuuuuuuuuuuuuuuuuuu

    ReplyDelete