• Post Reply Bookmark Topic Watch Topic
  • New Topic

Exceptions in Netbeans, sun application server and sample EJB application.  RSS feed

 
soudamini.s shirkhedkar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have installed netbeans IDE 5.0 Beta version on my home computer(XP Professional).
It comes bundled with Sun Application Server. In the tutorials section, there is a quick start guide for developing Enterprise Applications. The link is,
quickstartguide
http://www.netbeans.org/kb/41/quickstart-j2ee.html
When I try to start the sun app server, I get following exceptions:

javax.naming.NameNotFoundException: No object bound to name java:comp/env/ejb/CustomerFacade
at com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:668)
at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:132)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:288)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at web.ServiceLocator.lookup(ServiceLocator.java:39)
at web.ServiceLocator.getRemoteHome(ServiceLocator.java:59)
at web.CustomerDetail.lookupCustomerFacade(CustomerDetail.java:96)
at web.CustomerDetail.processRequest(CustomerDetail.java:42)
at web.CustomerDetail.doGet(CustomerDetail.java:68)............

[#|2006-01-31T16:48:21.806-0500|SEVERE|sun-appserver-pe8.1_02|javax.enterprise.system.container.web|_ThreadID=15;|StandardWrapperValve[CustomerDetail]: Servlet.service() for servlet CustomerDetail threw exception
java.lang.RuntimeException: javax.naming.NameNotFoundException: No object bound to name java:comp/env/ejb/CustomerFacade
at web.CustomerDetail.lookupCustomerFacade(CustomerDetail.java:98)
at web.CustomerDetail.processRequest(CustomerDetail.java:42)
at web.CustomerDetail.doGet(CustomerDetail.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:747)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)...........

In spite of these, I finally see the line,"[#|2006-01-31T19:54:22.254-0500|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.core|_ThreadID=10;|Application server startup complete.|#]"
I tried to follow exact same steps as given in the tutorial to deploy the sample application.
I can see the servlet for customer information in my browser window but when I enter the customer number to extract its information from the database, application crashes and I get following exception:

java.lang.RuntimeException: javax.naming.NameNotFoundException: No object bound to name java:comp/env/ejb/CustomerFacade
web.CustomerDetail.lookupCustomerFacade(CustomerDetail.java:99)
web.CustomerDetail.processRequest(CustomerDetail.java:42)
web.CustomerDetail.doGet(CustomerDetail.java:69)
javax.servlet.http.HttpServlet.service(HttpServlet.java:747)
javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
java.security.AccessController.doPrivileged(Native Method)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)

My questions are:
1 Has Sun App server started properly?
2 Whats wrong with my deployment, why am I getting exception when I try to give customer number?

Please help.This thing is bugging me for many days now. I want to get this running.
 
soudamini.s shirkhedkar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pls help me!!! I am stuck at this and want to make this work!!!
Thanks!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!