Skip to Content

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

Adapter module Exception "javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: java.lang.NoClassDefFoundError: com/sap/engine/boot/loader/SAPNoClassDefFoundErro

Hi All,

I have implemented Adapter Module in EJB 3.0 in SAP PI 7.4.while executing scenario I am getting exception in logs "Transmitting the message to endpoint <local> using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: javax.ejb.TransactionRolledbackLocalException: nested exception is: java.lang.RuntimeException: java.lang.NoClassDefFoundError: com/sap/engine/boot/loader/SAPNoClassDefFoundError; nested exception is: javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: java.lang.NoClassDefFoundError: com/sap/engine/boot/loader/SAPNoClassDefFoundError; nested exception is: javax.ejb.EJBTransactionRolledbackException: nested exception is: java.lang.RuntimeException: java.lang.NoClassDefFoundError: com/sap/engine/boot/loader/SAPNoClassDefFoundError; nested exception is: javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: java.lang.NoClassDefFoundError: com/sap/engine/boot/loader/SAPNoClassDefFoundError "

I have deployed module successfully using NWDS. In that module I am trying to pass input payload to external JAR files by implementing methods in that JAR file here is my code.

public ModuleData process(ModuleContext moduleContext, ModuleData inputModuleData) 

    throws ModuleException {

    Object obj;

     String st1 = null;

    String st2 = null;

    String st3 = null;

    

    st1=moduleContext.getContextData("XXXX");

    st2=moduleContext.getContextData("XXXX");

    st3=moduleContext.getContextData("XXXX");

    

    obj = (Message) inputModuleData.getPrincipalData();

      String st=obj.toString();

     

    MQ_JAR_Execution_MP mq =new MQ_JAR_Execution_MP();

      mq.main(st,st1,st2,st3);

Thanks in advance.

Thanks&Regards,

Ganesh Gullipalli.

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