Troubleshooting: Server deployment process fails at task "MapModulesToServers" with WASX7111E error

Deployment of a new Java EE module using the server deployment process with the WebSphere Commerce Build and Deployment tool fails at task "MapModulesToServers" with a WASX7111E error.

Problem

The wsadmin scripts provided by the WebSphere Commerce Build and Deployment tool assume that the module name is the same as the display name of the module. If the two values do not match, the server deployment process might fail to update the WebSphere Commerce application. You will see an error message similar to the following:

[wsadmin] WASX7017E: Exception received while running file "C:/wcbd-deploy-server/wcbd-deploy-server-20100101/scripts/wcbd-wsadmin.py"; 
exception information: com.ibm.ws.scripting.ScriptingException: WASX7111E: Cannot find a match for supplied option: 
"[ProjectServicesHTTPInterface, ProjectServicesHTTPInterface.war,WEB-INF/web.xml, 
WebSphere:cell=WC_demo_cell, node=WC_demo_node,server=server1+WebSphere:cell=WC_demo_cell,node=
WC_demo_node,server=webserver1]" for task "MapModulesToServers"

This error message indicates that there is no match to the module in the application as identified by the display name of the module.

Solution

Ensure that the display name in the module deployment descriptor is the same as the module name. For example, if the name of a Web module is ProjectServicesHTTPInterface, the display-name element in the deployment descriptor file web.xml must also be ProjectServicesHTTPInterface.