This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

run tme exception name not found

neelam kumari
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I received the following error message after unsuccessfully trying to test tutorial EJB 3.0 Enterprise Beans for the JBoss Application Server ( ) by accessing servlet on http://localhost:8080/NewsApp-war/ListNews on my PC:

type Exception report


description The server encountered an internal error () that prevented it from fulfilling this request.


java.lang.RuntimeException: javax.naming.NameNotFoundException: NewsApp not bound

note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.

I am running Netbeans 5.5, JDK 1.5.09 bundled with JBoss 4.0.4 on Windows XP.

This is my first EJB exercise and would appreciate some guidances.

Many thanks,

Mark Spritzler
Posts: 17290
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is all about your lookup String. Please post what you use in the context lookup method.

If it is a web app in which is included in an ear file with a jar also in the ear file, then you are going to do a local lookup, so your lookup String should be "BeanImplClassName/local"

If the war and jar are not in the same ear file, then there needs to be a remote lookup and that lookup String would be "BeanImplClassName/remote"

Hot dog! An advertiser loves us THIS much:
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!