cancel
Showing results for 
Search instead for 
Did you mean: 

NW04s SP09: EJB calling GP APIs throws exception

Former Member
0 Kudos

Hi all,

I have created an EJB project which has a stateless session bean that calls the GP APIs to start a process. I have added the GP jars "sap.comcafeugpapi~external.jar" to the build path of this EJB project. It builds and deploys fine but when I try to call the bean method, it throws an exception saying "java.lang.NoClassDefFoundError: com/sap/caf/eu/gp/process/dt/impl/GPDesigntimeManager". Where am I going wrong? What is the correct procedure to add the GP libraries to an EJB project?

Regards,

Satyajit.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Following needs to be done for this.

1) Go to EJB perspective of NWDS.

2) Select Navigator View

3) Expand project and browse to META-INF --> application-j2ee-engine.xml file

4) Click on the file to open it on right pane.

5) Select the references , and click on Add ( at the bottom)

6) Select Create New

7) Add the following entry

Reference Target : cafeugp~api

Reference Type : weak

Reference Target Type : library

Provider Name : sap.com

😎 Compile , Deploy and Test.

Thanks,

Samir

Former Member
0 Kudos

Hi Samir,

Bingo!!!!

Regards,

Satyajit.

Answers (0)