Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic