3 Replies Latest reply: May 30, 2012 10:58 AM by 753902 RSS

    oracle weblogic 12.1.1 ,  unable to create JDBC DataSource for oracle db

    915151
      Hi,

      I installed Oracle Weblogic 12.1.1 in windows 32bit.
      I created a domain and created a DataSource for Oracle9.0 or higher, XA Instance Connections driver type..
      saved the configuration.

      Now, i tried to apply this DataSoruce to my target server.
      it resuled in class not found exception. even restart did not work,
      This is with default oracle weblogic 12.1.1 installation...

      Any help very much appreciated.


      here is the stack trace..
      <03-Feb-2012 04:11:41 o'clock IST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating activate t
      ask for application "testdb".>
      <03-Feb-2012 04:11:41 o'clock IST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
      java.lang.ClassNotFoundException: oracle.jdbc.replay.internal.ConnectionInitializationCallback
      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      Truncated. see log file for complete stacktrace
      Caused By: java.lang.ClassNotFoundException: oracle.jdbc.replay.internal.ConnectionInitializationCallback
      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      Truncated. see log file for complete stacktrace
      >
      <03-Feb-2012 04:11:41 o'clock IST> <Error> <Console> <BEA-240003> <Administration Console encountered the following erro
      r: weblogic.application.WrappedDeploymentException: oracle.jdbc.replay.internal.ConnectionInitializationCallback
      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
      at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
      at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:169)
      at weblogic.jdbc.common.rac.OracleHelperFactory.createInstance(OracleHelperFactory.java:17)
      at weblogic.jdbc.common.internal.ConnectionPool.initOracleHelper(ConnectionPool.java:216)
      at weblogic.jdbc.common.internal.ConnectionPool.start(ConnectionPool.java:183)
      at weblogic.jdbc.common.internal.ConnectionPoolManager.createAndStartPool(ConnectionPoolManager.java:520)
      at weblogic.jdbc.common.internal.ConnectionPoolManager.createAndStartPool(ConnectionPoolManager.java:442)
      at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:288)
      at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
      at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:172)
      at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:167)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35)
      at weblogic.application.internal.flow.ModuleStateDriver.prepare(ModuleStateDriver.java:38)
      at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:139)
      at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:55)
      at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:706)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:35)
      at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:237)
      at weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:48)
      at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:158)
      at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
      at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperatio
      n.java:207)
      at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:96)
      at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:229)
      at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
      at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
      at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:218)
      at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:15
      9)
      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(Deploymen
      tReceiverCallbackDeliverer.java:171)
      at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.prepare(DeploymentReceiverC
      allbackDeliverer.java:41)
      at weblogic.deploy.service.internal.statemachines.targetserver.AwaitingContextUpdateCompletion.callDeploymentRec
      eivers(AwaitingContextUpdateCompletion.java:164)
      at weblogic.deploy.service.internal.statemachines.targetserver.AwaitingContextUpdateCompletion.handleContextUpda
      teSuccess(AwaitingContextUpdateCompletion.java:66)
      at weblogic.deploy.service.internal.statemachines.targetserver.AwaitingContextUpdateCompletion.contextUpdated(Aw
      aitingContextUpdateCompletion.java:32)
      at weblogic.deploy.service.internal.targetserver.TargetDeploymentService.notifyContextUpdated(TargetDeploymentSe
      rvice.java:225)
      at weblogic.deploy.service.internal.DeploymentService$1.run(DeploymentService.java:189)
      at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
      >



      -----
      Here is my JDBC Datasource configuration

      <?xml version='1.0' encoding='UTF-8'?>
      <jdbc-data-source xmlns="http://xmlns.oracle.com/weblogic/jdbc-data-source" xmlns:sec="http://xmlns.oracle.com/weblogic/security" xmlns:wls="http://xmlns.oracle.com/weblogic/security/wls" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/jdbc-data-source http://xmlns.oracle.com/weblogic/jdbc-data-source/1.2/jdbc-data-source.xsd">
      <name>testdb</name>
      <jdbc-driver-params>
      <url>jdbc:oracle:thin:@HERCULES.curamsoftware.com:1521:orcl</url>
      <driver-name>oracle.jdbc.xa.client.OracleXADataSource</driver-name>
      <properties>
      <property>
      <name>user</name>
      <value>system</value>
      </property>
      </properties>
      <password-encrypted>{AES}dY4UYMqn0YnnxXL6ZOF/9rEZqLfK4AJemTIzuPdubtg=</password-encrypted>
      </jdbc-driver-params>
      <jdbc-connection-pool-params>
      <test-connections-on-reserve>true</test-connections-on-reserve>
      <test-table-name>DUAL</test-table-name>
      <wrap-types>false</wrap-types>
      </jdbc-connection-pool-params>
      <jdbc-data-source-params>
      <jndi-name>testdbpool</jndi-name>
      <global-transactions-protocol>TwoPhaseCommit</global-transactions-protocol>
      </jdbc-data-source-params>
      <jdbc-oracle-params>
      <use-database-credentials>false</use-database-credentials>
      </jdbc-oracle-params>
      </jdbc-data-source>


      This is with default oracle weblogic 12.1.1 installation...

      Any help very much appreciated.

      Thanks,