Troubleshooting: Server start-up error "The injection engine failed to process bindings..."
When starting the Transaction server, a non-fatal error occurs related to a missing resource binding. You can avoid this error by adding a metadata property to the HTTP webservices interface.
Problem
When starting the Transaction server in HCL Commerce Version
9.1.12, you may receive a console error similar to the following:
[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.
This is known issue but it does not have any functional effect and does not prevent
server start-up.Solution
You can eliminate the error message by making a small change to the PageLayoutServicesHTTPInterface.
- Development environment
-
- Open the configuration file workspace-dir\WC\PageLayoutServicesHTTPInterface\WEB-INF\web.xml.
- Add the attribute metadata-complete="true" to the
web-app element, as in the following
example.
<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">
- Runtime environment
- To fix the issue in your runtime environment, add the
metadata-complete="true" attribute in the following
two files and restart the 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