Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Custom adapter module for JMS

I've written a custom EJB for receiver JMS adapter. The intention is to remove a special character and hopefully LF at the end. I've run into an issue and I'm sorting big time help.

My code at this point is really simple, all it contains is an entry into audit log that the module was called. Its calling but is ending with an error. Here's the error

<b>Caused by: java.lang.NoClassDefFoundError: com/sap/aii/af/service/auditlog/AuditMessageKey


And snippet of my code (RemoveCharactersBean) as follows -

// classes for audit log (I've used the jar from SP16 the one we are on in NWDS and I see that in my class path)


public ModuleData process(

ModuleContext moduleContext,

ModuleData inputModuleData)

throws ModuleException {

Message msg = (Message) inputModuleData.getPrincipalData();

AuditMessageKey amk =

new AuditMessageKey(msg.getMessageId(), AuditDirection.OUTBOUND);




"RemoveCharacterBean: Module called");

return inputModuleData;


Any idea why I'm getting this message?

I appreciate all your help.

Not what you were looking for? View more on this topic or Ask a question