This discussion is archived
0 Replies Latest reply: Feb 8, 2007 4:05 AM by 543478 RSS

Why i am getting Naming Exception?

543478 Newbie
Currently Being Moderated
Hi,

I have downloaded the application from otn and while running it to OC4J 9.0.4
i am getting following error

javax.naming.NamingException: Error instantiating web-app JNDI-context: No location specified and no suitable instance of the type 'dept.Dept' found for the ejb-ref DeptBean
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpApplication.getEnvironmentContext(HttpApplication.java:6648)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.ApplicationContext.lookup(ApplicationContext.java:160)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.ApplicationContext.lookup(ApplicationContext.java:119)
     at javax.naming.InitialContext.lookup(InitialContext.java:347)
     at dept.DeptServlet.init(DeptServlet.java:22)
     at javax.servlet.GenericServlet.init(GenericServlet.java:258)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpApplication.loadServlet(HttpApplication.java:2094)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpApplication.findServlet(HttpApplication.java:4523)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2561)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:640)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
     at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
     at java.lang.Thread.run(Thread.java:534)

Can anybody tell me where i am going wrong.

Thanks.