on 05-28-2009 8:39 AM
Hi All,
I have an EJB DC Project. I want to call this EJB DC project in my DC Webdynpro Project. Normal ejb is working fine. But DC EJB is giving an exception like.
InitialContext ctx = new InitialContext();
String LookUpString = "sap.com/ear1/Ejb1Bean";
Object obj = ctx.lookup(LookUpString);
Ejb1Home home = (Ejb1Home)javax.rmi.PortableRemoteObject.narrow(obj,Ejb1Home.class);
Ejb1 localObject = home.create();
"The project was not built since its classpath is incomplete. Cannot find the class file for javax.ejb.CreateException. Fix the classpath then try rebuilding this project."
I have given webdynpro reference as "sap.com/ear1" and given the project references.
What should be done. Where is the error and how can i resove this. should i add some jar files to public parts. how can i solve this error?
Thanks and Regards,
Divya
Hi,
Add ejb, ejb20 jar files in used dcs.
How to:
Right click on UsedDcs, Select Add Used dc, Under SAP-JEE these jar files will be there.
Regards,
Charan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.