on 04-20-2007 11:49 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.