Skip to Content
0

Calling SAP ME PAPI from WDP application

Jan 11, 2017 at 02:16 PM

41

avatar image

Hello,

I tried to call some ME PAPI from webdynpro application (java), but for any reason, it's not working, I think I miss one step...

I added all SC dependancies, I don't have any issue at build time, everything is recognized, but when I deploy and run the application, I got the famous error

java.lang.NoClassDefFoundError: com/sap/me/frame/ServiceLocator

Example of the code :

SfcStateServiceInterface sfcService = (SfcStateServiceInterface) ServiceLocator .getService("com.sap.me.production", "SfcStateService");

This is working fine in a pure "SDK" development, but not in my WDP application, any idea what I miss ? I know in SDK dev, we need to implement a config-service.xml, should I do so also for my WDP DC ? And if yes, how/where to put it ?

We are running SAP ME 15.1 on a 7.5 NW box (brand new so)

Thanks!

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers