Question & Answer
Question
java.lang.NoClassDefFoundError when referencing classes in utility jar *|* -9A2D000D1117FC07852573FB0052BE10- *|*
Answer
Technote (troubleshooting)
Problem(Abstract)
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.
| 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 |
Was this topic helpful?
Document Information
Modified date:
12 October 2021
UID
ibm10768201