cancel
Showing results for 
Search instead for 
Did you mean: 

Lookup ejb

Former Member
0 Kudos

Hi Experts.

I have created an CAF project with an Application Service and one method.

I need to use this Application Service in a Web application like as EJB.

I put the public parts of caf-ejb in used dcs of my web application.

I declared a reference of the caf-ear in my project ear that include my web app.

I declared a ejb local reference in web.xml

I declared a ejb local ref in web-j2ee-engine.xml

i follow this document

but i get this error

com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception during lookup operation of object with name
webContainer/applications/tridmen.com.br/pegasus~ear/LocalDevelopment~pegasus~war~tridmen.com.br/java:comp/env/ejb/TridApprovalBusinessBean,
cannot resolve object reference. [Root exception is com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: 
Path to object does not exist at tridmen.com.br, the whole lookup name is tridmen.com.br/trd_aprv.caf/TridApprovalBusiness.]

Could someone help me?

I try to find in some other threads but nothing happenned me.

I am using netweaver version 7.0.

Thanks and regards

Accepted Solutions (1)

Accepted Solutions (1)

blanca_serrano
Advisor
Advisor
0 Kudos

Hello Marcos,

One of the possible reason is that the services are not deployed correctly. You would need to redeploy the associated applications that are responsible for registering with JNDI entries.

I hope this helps you.

Regards,

Blanca

Answers (1)

Answers (1)

Former Member
0 Kudos

Solved.

I get the JNDI name in Visual Administrator and put the string localsejb/ in fromt of jndi.

After that i added a reference to ejb caf-ear project in ear project that include my war.

To make a look up in this way:

ctx.lookup(localsejb/JNDI_NAME_IN_VISUAL_ADMINISTRATOR);

That works.

Marcos Brandã