cancel
Showing results for 
Search instead for 
Did you mean: 

Call EJB DC in webdynpro DC Project

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (0)