Technote

(troubleshooting)
java.lang.NoClassDefFoundError when referencing classes in utility jar
Problem(Abstract)
Your custom code in the WebSphereCommerceServerExtensionsLogic project contains references to a utility jar. This code works fine in the WebSphere Commerce Development environment. After deploying the utility jar and the WebSphereCommerceServerExtensionsLogic project to a server environment, a java.lang.NoClassDefFoundError exception is thrown when testing the newly deployed code. The class referenced in the NoClassDefFoundError is contained in the utility jar that was deployed to the server.
Cause The MANIFEST.MF of the Stores webproject was not updated with a reference to the utility jar. Resolving the problem Manually update the MANIFEST.MF file of the Stores webproject with the name of the utility jar. When deploying the WebSphereCommerceServerExtensionsLogic project and the utility jar, you must also deploy the updated MANIFEST.MF file. The MANIFEST.MF file for the Stores web project in the WebSphere Commerce Development Environment is located in the Dynamic Web Projects folder under Stores -> WebContent -> META-INF.
Cross Reference information
Segment Product Component Platform Version Edition
Commerce WebSphere Commerce Developer Professional Edition Development Windows 6.0, 6.0.0.1, 6.0.0.2, 6.0.0.3, 6.0.0.4 Developer Professional Edition
Commerce WebSphere Commerce Developer Express Development Windows 6.0, 6.0.0.1, 6.0.0.2, 6.0.0.3, 6.0.0.4 Developer Express
   

Document Information

Current web document: http://www.ibm.com/support/docview.wss?uid=swg21296577