• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SB has problem looking up the EB via JNDI.

 
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Roger,

Thanks for pointing that out !

Timothy Toe
 
This tiny ad is suggesting that maybe she should go play in traffic.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic