• Post Reply Bookmark Topic Watch Topic
  • New Topic

run tme exception name not found  RSS feed

 
neelam kumari
Greenhorn
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 (http://www.netbeans.org/kb/55/ejb30-jboss.html ) by accessing servlet on http://localhost:8080/NewsApp-war/ListNews on my PC:

type Exception report

message

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

exception

java.lang.RuntimeException: javax.naming.NameNotFoundException: NewsApp not bound
web.ListNews.lookupNewsEntityFacade(ListNews.java:95)
web.ListNews.processRequest(ListNews.java:48)
web.ListNews.doGet(ListNews.java:68)
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


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,

Henry
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
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"

Mark
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!