• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

NameNotFoundException with SUN's Application Server 8.1

 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I created CMP Entity bean with <ejb-name> = Entity1Bean, and the same name is used as "jndi Name" in "Sun-specific Settings" of Application Server 8.1.
After I deployed it, and run a test client from console (while default Server was started), I got exception:
javax.naming.NameNotFoundException: Entity1Bean

Here is my client code:


BTW, I also tried to use JNDI_NAME="java:comp/env/Entity1Bean" or JNDI_NAME="java:comp/env/ejb/Entity1Bean", but got the same exception.

Did anyone meet the case and solve it? Thanks for any help.

X. Li
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic