HCL Commerce Version 9.1.12.0 or later

Resolución de problemas: Error de inicio del servidor "El motor de inyección no ha podido procesar los enlaces..."

Al iniciar el Transaction server, se produce un error no muy grave relacionado con un enlace de recursos faltante. Puede evitar este error añadiendo una propiedad de metadatos a la interfaz de servicios web HTTP.

Problema

Al iniciar Transaction server en la versión 9.1.12 de HCL Commerce, es posible que aparezca un error de consola similar al siguiente:
[5/16/23 7:11:35:005 UTC] 0000005b InjectionProc E CWNEN0011E: The injection engine failed to process bindings for the metadata due to the following error: CWNEN0044E: A resource reference binding could not be found for the following resource references [jdbc/WCDataSource], defined for the PageLayoutServicesHTTPInterface component.
Este es un problema conocido, pero no tiene ningún efecto funcional y no impide iniciar servidor.

Solución

Puede eliminar el mensaje de error realizando un pequeño cambio en PageLayoutServicesHTTPInterface.

Entorno de desarrollo
  1. Abra el archivo de configuración workspace-dir \WC\PageLayoutServicesHTTPInterface\WEB-INF\web.xml.
  2. Añada el atributo metadata-complete="true" el elemento web-app tal y como se muestra en el siguiente ejemplo.
    <web-app id="WebApp_ID" version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"  metadata-complete="true">
Entorno de ejecución
Para solucionar el problema en el entorno de ejecución, añada el atributo metadata-complete="true" en los dos archivos siguientes y reinicie el Transaction server.
  • /opt/WebSphere/AppServer/profiles/default/config/cells/localhost/applications/ts.ear/deployments/ts/PageLayoutServicesHTTPInterface.war/WEB-INF/web.xml
  • /opt/WebSphere/AppServer/profiles/default/installedApps/localhost/ts.ear/PageLayoutServicesHTTPInterface.war/WEB-INF/web.xml