IBM Support

java.lang.NoClassDefFoundError when referencing classes in utility jar *|* -9A2D000D1117FC07852573FB0052BE10- *|*

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.

Cross reference information
SegmentProductComponentPlatformVersionEdition
CommerceWebSphere Commerce Developer Professional EditionDevelopmentWindows6.0 6.0.0.1 6.0.0.2 6.0.0.3 6.0.0.4Developer Professional Edition
CommerceWebSphere Commerce Developer ExpressDevelopmentWindows6.0 6.0.0.1 6.0.0.2 6.0.0.3 6.0.0.4Developer Express

[{"Business Unit":{"code":"BU055","label":"Cognitive Applications"},"Product":{"code":"SS73G6","label":"Sterling Total Payments for Financial Services"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
12 October 2021

UID

ibm10768201