6 Replies Latest reply on May 24, 2012 6:35 PM by vdantuluri

    Exception upgrading Jdk 1.4 to Jdk 1.6 on OC4J 10.1.3.5

    471022
      Hi ,
      I have a web application which gets deployed as .ear file on OC4J from Eclipse IDE . Everything is working perfectly fine as long as Java version is 1.4.2

      As soon as I change the version to Java 1.5 or Java 1.6 the deployment goes forward and then fails with the following exception,


      Unable to resolve datasource: jdbc/OracleDSoracle.oc4j.admin.internal.DeployerException: [myWebApp:myWebApp] - Unable to resolve datasource: jdbc/OracleDS



      The jdbc/OracleDS only appears in application.xml and no where else in oc4j or my application.

      <orion-application
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/orion-application-10_0.xsd"
      autocreate-tables="true"
      default-data-source="jdbc/OracleDS"
      schema-major-version="10"
      schema-minor-version="0"
      >

      If I remove the above line then, when I use Jdk 1.6 the exception changes to the following,

      oracle.oc4j.admin.internal.DeployerException: com.evermind.naming.SubContext cannot be cast to javax.sql.DataSource

      I have tried to search this problem but I am not getting any clues. It seems like a Java type casting problem occurring in the background between my application and Jdk 1.6 , which works fine in Jdk 1.4.2

      Any comments , ideas are appreciated.

      Thanks.