Hello People I posted a question about accessing ejb from jsp, but I guess I wasn't very specific about my question. First of all, I have deployed an application in a JAR format that contains java class files, ejb-jar.xml and application.xml. There is no problem here. Everything works fine. I have created a jsp file that attempts to access the home interface for my application. I have placed my jsp file in $ORION_HOME$/default-web-app/. To configure the JNDI setting, I have modified web.xml in $ORION_HOME$/default-web-app/WEB-INF/ to include ejb reference info. Now when I view the jsp page, I get the following error in my stack trace ---------------------------------------------------------------------------- ----- javax.naming.NamingException: Error instantiating web-app JNDI-context: No locat ion specified and no suitable instance of the type 'ejb.currentDate' found for t he ejb-ref ejb/crm at com.evermind._ah.getEnvironmentContext(Unknown Source) at com.evermind._cf._np(Unknown Source) at com.evermind._cf.lookup(Unknown Source) at javax.naming.InitialContext.lookup(Unknown Source) at __jspPage0_index2_jsp._jspService(__jspPage0_index2_jsp.java:34) at com.orionserver.http.OrionHttpJspPage.service(Unknown Source) at com.evermind._ah._rad(Unknown Source) at com.evermind.server.http.JSPServlet.service(Unknown Source) at com.evermind._cxb._abe(Unknown Source) at com.evermind._cxb._uec(Unknown Source) at com.evermind._io._twc(Unknown Source) at com.evermind._io._gc(Unknown Source) at com.evermind._if.run(Unknown Source) ---------------------------------------------------------------------------- ----- In my web.xml, it writes: <ejb-ref> <ejb-ref-name>ejb/crm</ejb-ref-name> <ejb-ref-type>Session</ejb-ref-type> <home>ejb.currentDateHome</home> <remote>ejb.currentDate</remote> </ejb-ref> In my JSP, it writes: Context ctx = new InitialContext(); Object boundObject = ctx.lookup("java:comp/env/ejb/crm"); Has anyone solved this problem? Thanks in advance Tim
Accessing EJB JAR from JSP file
Tim Kang - Syoni Communications Inc. Tue, 17 Jul 2001 09:22:18 -0700