Skip to Content
avatar image
Former Member

Calling an EJB from Java Mappings in PI 7.1

In my operation mapping, I am using a Java class which in turn invokes an EJB using JNDI lookup.

When I execute the code, the class is successfully finding the EJB using JNDI, but invoking it I am getting a java.lang.NoClassDefFoundError.

If, I add the class it cannot find to the jar containing the Java mapping class, I get a java.lang.ClassCastException.

Has anyone been able to call a custom EJB from with a Java Mapping class?

Any help appreciated.

Thanks.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Mar 18, 2009 at 01:05 PM

    There have been some discussions in this forum and it seems to not work, but you can try following: Create a client jar from the EJB project and add that client jar to the Integration Builder as Imported Archive.

    Regards

    Stefan

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 25, 2009 at 08:26 AM

    Hello.

    Check my wiki article:

    http://wiki.sdn.sap.com/wiki/display/stage/SapNetweaverProcessIntegration.CallEjb3.0methodfromJavaclassmappingPI7.1

    (SapNetweaver Process Integration. Call Ejb 3.0 method from Java class mapping PI 7.1 )

    Greedings

    Add comment
    10|10000 characters needed characters exceeded