NoClassDefFoundError when sending XML messages

Technote (troubleshooting)


Problem(Abstract)

When sending XML messages from WebSphere Commerce, you might encounter the following exception:

[2/1/13 16:16:01:498 CST] 0000003d CommerceSrvr E JMSMessageBean sendImmediate CMN0422E: The following naming exception has occurred during processing: "lookup(eis/JCAJMS)com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object. [Root exception is java.lang.NoClassDefFoundError: com/ibm/commerce/ras/WASLog]".

Resolving the problem

The Enablement-JCAJMSConnector.rar connector module might be trying to locate the WASLog class in a different classpath. For example, this module might exist in WCDE_installdir/wasprofile/installedConnectors/ while the WASLog class is located in Enablement-BaseComponentsLogic.jar in another location.

By default, the Enablement-JCAJMSConnector.rar should be in the WCDE_installdir/workspace/WC/ directory with the other application JAR files. Ensure this JAR file is being loaded by the classloader by removing the other copy from WCDE_installdir/wasprofile/installedConnectors/.

Related information

Class WASLog

Rate this page:

(0 users)Average rating

Document information


More support for:

WebSphere Commerce Developer Enterprise
Implementation / Usage

Software version:

7.0

Operating system(s):

Windows

Software edition:

All Editions

Reference #:

1626693

Modified date:

2013-03-18

Translate my page

Machine Translation

Content navigation