• Post Reply Bookmark Topic Watch Topic
  • New Topic

SB has problem looking up the EB via JNDI.  RSS feed

 
Timothy Toe
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a simple setup � a simple stateless session bean (SLSB) calling a CMP entity bean (EB) local interfaces. Problem looks like my SB has problem looking up the EB local home object via JNDI. I am using JBoss 4.0.3SP1.



ear deployed fine.
Console printout during deployment of ear:


Console printout when error happened :



The exception stack trace point to this line of my code (the one with lookup()) in my SLSB. I lookup the EB from my SLSB:


My ejb-jar.xml :


My jboss.xml for ejb jar :


What could be wrong ? Would really appreciate if someone could help me.
Thanks.

[ January 05, 2006: Message edited by: Timothy Toe ]
[ January 05, 2006: Message edited by: Timothy Toe ]
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your ejb-link must match the ejb-name of the bean being link to.
 
Timothy Toe
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Roger,

Thanks for pointing that out !

Timothy Toe
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!