• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Resolve jndi names at deploy time

 
Pedro Gongora
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, can anyone help me with these problem
when i deploy a webapp that calls an ejb it throws me this exception:
[weblogic.deployment.EnvironmentException: [J2EE:160101]Error: The ejb-link 'Test/TestEJB' declared in the ejb-ref or ejb-local-ref 'ejb/Test' in the application module 'testweb.war' could not be resolved. The target EJB for the ejb-ref could not be found. Please ensure the link is correct.]
but if i eliminate the ejb-ref entry on deplyment descriptor and access ejb like this
ctx.lookup("Test/TestEJB")
instead of
ctx.lookup("java:comp/env/ejb/Test")
on my code it just works !
any ideas will be wellcome
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you mapped the logical JNDI name into a real JNDI name using the vendor-specific deployment descriptor?
 
Pedro Gongora
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i didn't noticed that there are 2 different ways for resolving ejb links depending if they are application scoped (same ear) or external.
the doc. describing it is here
i hope it's useful for some one else
thanks !
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic