cancel
Showing results for 
Search instead for 
Did you mean: 

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

gganesh15051
Explorer
0 Kudos
1,849

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

engswee
Active Contributor
0 Kudos

Another one!

Check out the suggestions provided in the following threads to ensure the external JAR files are included in your EAR deployment file (either automatically or manually)