Sunday 6 November 2011

ERROR Message: CMN2007E: There is insufficient inventory to purchase 1 units of the product for catalog entry


CMN2007E
Explanation: This message is issued by the default implementations of inventory related task commands (such as CheckInventoryCmdImpl, UpdateInventoryCmdImpl, and CheckInventoryAvailabilityCmdImpl) when there is insufficient inventory for the quantity of a product required to fulfill an Order.\n\nWhen STORE.ALLOCATIONGOODFOR is zero, the CheckInventoryCmdImpl and UpdateInventoryCmdImpl default task command implementations check the INVENTORY table. Otherwise, the CheckInventoryAvailabilityCmdImpl default task command implementation checks the RECEIPT and ITEMFFMCTR tables.

Saturday 5 November 2011

Troubleshooting: A file does not exist for a module elemhttp://www.blogger.com/post-create.g?blogID=5097596999502679730ent that has a Uniform Resource Identifier (URI)


When you start the WebSphere Commerce Test Server, you receive an error that states that a file does not exist.
Problem
When starting the WebSphere Test Server after enabling the Management Center feature, a file does not exist error is displayed in the startup logs. For example,
ApplicationMg E   WSVR0100W: An error occurred initializing, WC
org.eclipse.jst.j2ee.commonarchivecore.internal.exception.NoModuleFileException: A file does not exist for module element having uri: WebservicesRouter.war

Solution

To resolve this issue, you need to rebuild the WebServicesRouter  project and republish the test server, as follows:
  1. Open your WebSphere Commerce Developer workspace.
  2. Right-click the WebServicesRouter  project and rebuild it.
  3. Add/Remove the WC project from Test Server.
If it doesn't solve the problem then look out  for you WebServicesRouter project it might be corrupted i.e. no web.xml in WEB-INF file etc. In this case do the following :
1. Close the toolkit i.e. RAD.
2. copy the WebServicesRouter  project from C:\WCToolkit\wc.modules\workspace to C:\WCToolkit\workspace i.e. to you RAD work space.
3. Open RAD start test server and Add/Remove WC project from commerce test server.

Also check  C:\WCToolkitworkspace\WC\.settings\org.eclipse.wst.common.component file for dependent-module mapping i.e. for WebservicesRouter mapping in it.

NOTE:
It might be possible that WebservicesRouter is got corrupted in that case we right click on WebservicesRouter project in RAD and select Restore from Local History options.







How to customize java.util.logging.Logger class to write logs in separate file than System.out.log in Websphere commerce/ HCL commerce)

/** * This method updated the passed in java.util.logging.Logger object with * custom file handler to write logs data form that class ...