on 07-01-2010 7:48 PM
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
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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ã
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
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.