4 Replies Latest reply: Oct 10, 2012 5:26 PM by sandeep_singh RSS

    ClassNotFoundException weblogic.jdbc.wrapper.poolconnection on Weblogic 11g

    967183
      Hi
      We have an application getting deployed succssfully and working fine on Windows Weblogic 11g installation but when deploying the same application on Unix Weblogic (version - 10.3.6.0 ) Installation getting ClassNotFoundException on obtaining connection from the data source. The issue appears to be related to Weblogic Classpath but not able to isolate it and need some quick help.

      Weblogic Version where issue is reproducible: 10.3.6.0

      Code Used to get connection:



      datasourceName = CPPGlobals.getValue( CPPConstants.CPP_DATA_SOURCE_NAME );
      CPPLog.debug(CLASS_NAME, "dataSourceName["+datasourceName +"]");

      Hashtable nameHashtable = new Hashtable();
      nameHashtable.put( Context.INITIAL_CONTEXT_FACTORY,
      CPPGlobals.getValue( INITIAL_CONTEXT_FACTORY ) );
      CPPLog.debug(CLASS_NAME, "ICF["+CPPGlobals.getValue( INITIAL_CONTEXT_FACTORY) + "]");
      nameHashtable.put( Context.PROVIDER_URL,
      CPPGlobals.getValue( PROVIDER_URL ) );
      CPPLog.debug(CLASS_NAME, "ICF["+CPPGlobals.getValue( PROVIDER_URL) + "]");
      InitialContext context = new InitialContext( nameHashtable );
      CPPLog.debug(CLASS_NAME, "Context:"+context);
      dataSource = ( DataSource ) context.lookup( datasourceName );
      CPPLog.debug(CLASS_NAME, "Datasource:"+dataSource);


      connection = dataSource.getConnection();
      CPPLog.debug("RoutingInformation |", "Coonection retrieved " + connection);


      Error Recieved:

      java.lang.AssertionError: java.lang.ClassNotFoundException: weblogic.jdbc.wrapper.PoolConnection
      at weblogic.utils.wrapper.WrapperFactory.getWrapperClass(WrapperFactory.java:225)
      at weblogic.utils.wrapper.WrapperFactory.getWrapperClass(WrapperFactory.java:190)
      at weblogic.jdbc.wrapper.JDBCWrapperFactory$1.run(JDBCWrapperFactory.java:164)
      at java.security.AccessController.doPrivileged(Native Method)
      at weblogic.jdbc.wrapper.JDBCWrapperFactory.getWrapper(JDBCWrapperFactory.java:161)
      at weblogic.jdbc.common.internal.RmiDataSource.getPoolConnectionObj(RmiDataSource.java:614)
      at weblogic.jdbc.common.internal.RmiDataSource.getPoolConnection(RmiDataSource.java:458)
      at weblogic.jdbc.common.internal.RmiDataSource.getConnectionInternal(RmiDataSource.java:538)
      at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:498)
      at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:491)
      at com.dhl.cpp.utility.RoutingInformation.getConnection(RoutingInformation.java:169)
      at com.dhl.cpp.utility.RoutingInformation.load(RoutingInformation.java:289)
      at com.dhl.cpp.utility.CPPStoreData.loadData(CPPStoreData.java:88)
      at com.dhl.cpp.utility.CPPStartupServlet.init(CPPStartupServlet.java:239)
      at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
      at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
      at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
      at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:539)
      at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1981)
      at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1955)
      at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1874)
      at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3154)
      at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1518)
      at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:484)
      at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
      at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
      at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
      at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
      at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
      at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
      at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
      at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:671)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
      at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
      at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:59)



      Appreciate your response and any pointers

      Akash

      Edited by: user8169280 on Oct 10, 2012 1:32 AM