Server errors in in SystemOut.log after installation
After you install HCL Commerce Developer, run setdbtype, and start the servers, you might notice errors in the SystemOut.log.
You might notice similar errors in the
SystemOut.log.
E com.ibm.ws.webcontainer.webapp.WebApp notifyServletContextCreated SRVE0283E: Exception caught while initializing context: {0} java.lang.RuntimeException: javax.naming.NameNotFoundException: Context: localhost/nodes/localhost/servers/server1, name: workAreaDir: First component in name workAreaDir not found. [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0] at com.ibm.commerce.search.internal.config.SearchResourceExtractor.init(SearchResourceExtractor.java:206) at com.ibm.commerce.search.internal.servlet.SearchResourceExtractionServletListener.contextInitialized(SearchResourceExtractionServletListener.java:54) 00000056 webapp E com.ibm.ws.webcontainer.webapp.WebApp notifyServletContextCreated SRVE0283E: Exception caught while initializing context: {0} javax.persistence.PersistenceException: Exception [EclipseLink-7060] (Eclipse Persistence Services - 2.6.4.WAS-v20170911-21cd36e): org.eclipse.persistence.exceptions.ValidationException Exception Description: Cannot acquire data source [jdbc/wcdb]. Internal Exception: javax.naming.NameNotFoundException: Context: localhost/nodes/localhost/servers/server1, name: jdbc/wcdb: First component in name wcdb not found. [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]
Problem
The Store (crs) and Search-ear might have been erroneously published to the Transaction server. To verify that you are encountering this issue, search for the following lines in the SystemOut.log file.-
WSVR0190I: Starting composition unit WebSphere:cuname=crs in BLA WebSphere:blaname=crs
-
SVR0190I: Starting composition unit WebSphere:cuname=search-ear in BLA WebSphere:blaname=search-ear
-
WSVR0200I: Starting application: crs
Solution
- Open HCL Commerce Developer.
- From the Servers view, expand HCL Commerce Test Server.
- Remove
crs
andSearch-ear
from the HCL Commerce Test server. - Right-click HCL Commerce Test Server and select Publish or Republish.