HCL Commerce DeveloperHCL Commerce Version 9.0.0.2 or later

Transaction server stop working after installation

If you install HCL Commerce Developer Version V9.0.0.2 or later on HCL Commerce Developer V9.0.0.0 or 9.0.0.1, your transaction server might not work properly and you might find Db2 connection errors in the log file.

Problem

The datasource information in workspace \WC\META-INF\ibmconfig\cells\defaultCell\applications\defaultApp\deployments\defaultApp\resource.xml might roll back to the default settings, and the following database connection error might be displayed in the WC_Developer\wasprofile\logs\server1\SystemOut.log file:
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:704)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:1098)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:800)
at com.ibm.ws.runtime.component.ApplicationMgrImpl$5.run(ApplicationMgrImpl.java:2317)
at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5466)
at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5682)
at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2322)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:436)
at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:379)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:127)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:985)
at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:524)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1909)
Caused by: java.lang.ClassNotFoundException: com.ibm.db2.jcc.DB2ConnectionPoolDataSource
... 94 more
. Processing halted. 

Solution

Rerun the setdbtype utility to point your workspace to your HCL Commerce database, and then restart the HCL Commerce server.

For more information about changing the database type, see Changing the development database type by using the setdbtype command.