HCL Commerce Developer

Erreurs du serveur dans SystemOut.log après l'installation

Après avoir installé HCL Commerce Developer, exécuté setdbtype et démarré les serveurs, vous remarquerez peut-être des erreurs dans SystemOut.log.

Vous remarquerez peut-être des erreurs similaires dans 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]

Problème

Le magasin (crs) et Search-ear ont peut-être été publiés par erreur sur le serveur de transactions. Pour vérifier que vous rencontrez ce problème, recherchez les lignes suivantes dans le fichier SystemOut.log.
  • 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

  1. Ouvrez HCL Commerce Developer.
  2. Dans l'affichage Serveurs, développez HCL Commerce Test Server.
  3. Supprimez crs et Search-ear à partir du serveur de test HCL Commerce.
  4. Cliquez avec le bouton droit de la souris sur HCL Commerce Test Serveur et sélectionnez Publier ou Republier.