Re: Problems with EJB and JNDI-context
Hi, my problem was a mistake in the ejb-ref in web.xml. (i am also using "java:comp/env/ejb/user" now) --nils -- ** * Your mouse has moved. Windows must be restarted for the change to take effect. * ** * Nils Frohberg * *http://www.tako.de/ * **
Re: Problems with EJB and JNDI-context
Nils Frohberg wrote: Hi, I am facing a problem with my EJBs that i cannot solve. I try to access a EJB via a JSP page: javax.servlet.jsp.JspException: NamingException: Error instantiating web-app JNDI-context: No location specified and no suitable instance of the type 'de.tako.user' found for the ejb-ref ejb/user at com.evermind.ejb.taglib.UseHomeTag.doStartTag(Compiled Code) My ejb-ref looks like this: ejb-ref ejb-ref-nameejb/user/ejb-ref-name ejb-ref-typeSession/ejb-ref-type homede.tako.userHome/home remotede.tako.user/remote /ejb-ref Is there any aspect i am missing? I could not find any clues on the list, nor in the web. Maybe someone can give me a hint? :) I had the same problem more or less. Do you have a jndi.properties file in the web-app ?? I'm not exacly sure where to put it for EJB in JSP, but try putting it in web-inf/classes if that does not work move it around some. sven -- == Sven E. van 't Veer http://www.cachoeiro.net Java Developer [EMAIL PROTECTED] ==
RE: Problems with EJB and JNDI-context
Are you accesing it thru "java:comp/env/ejb/user" ??? because just accessing "ejb/user" won't work -Original Message- From: Sven van 't Veer [mailto:[EMAIL PROTECTED]] Sent: Viernes, 13 de Octubre de 2000 7:21 To: Orion-Interest Subject: Re: Problems with EJB and JNDI-context Nils Frohberg wrote: Hi, I am facing a problem with my EJBs that i cannot solve. I try to access a EJB via a JSP page: javax.servlet.jsp.JspException: NamingException: Error instantiating web-app JNDI-context: No location specified and no suitable instance of the type 'de.tako.user' found for the ejb-ref ejb/user at com.evermind.ejb.taglib.UseHomeTag.doStartTag(Compiled Code) My ejb-ref looks like this: Is there any aspect i am missing? I could not find any clues on the list, nor in the web. Maybe someone can give me a hint? :) I had the same problem more or less. Do you have a jndi.properties file in the web-app ?? I'm not exacly sure where to put it for EJB in JSP, but try putting it in web-inf/classes if that does not work move it around some. sven -- == Sven E. van 't Veer http://www.cachoeiro.net Java Developer [EMAIL PROTECTED] ==
Problems with EJB and JNDI-context
Hi, I am facing a problem with my EJBs that i cannot solve. I try to access a EJB via a JSP page: %-- Setting up an error page --% %@ page errorPage="/errorpage.jsp" % %-- Taglibs --% %@ taglib uri="ejbtags" prefix="ejb" % ejb:useHome id="user" type="de.tako.userHome" location="java:comp/env/ejb/user" / html head titletest/title /head body test /body /html This is the result i get (thru errorpage.jsp): javax.servlet.jsp.JspException: NamingException: Error instantiating web-app JNDI-context: No location specified and no suitable instance of the type 'de.tako.user' found for the ejb-ref ejb/user at com.evermind.ejb.taglib.UseHomeTag.doStartTag(Compiled Code) at __jspPage0_index_jsp._jspService(Compiled Code) at com.orionserver.http.OrionHttpJspPage.service(Compiled Code) at com.evermind.server.http.HttpApplication.xa(Compiled Code) at com.evermind.server.http.JSPServlet.service(Compiled Code) at com.evermind.server.http.d3.so(Compiled Code) at com.evermind.server.http.d3.sm(Compiled Code) at com.evermind.server.http.ef.su(Compiled Code) at com.evermind.server.http.ef.dn(JAX) at com.evermind.util.f.run(Compiled Code) My ejb-ref looks like this: ejb-ref ejb-ref-nameejb/user/ejb-ref-name ejb-ref-typeSession/ejb-ref-type homede.tako.userHome/home remotede.tako.user/remote /ejb-ref Is there any aspect i am missing? I could not find any clues on the list, nor in the web. Maybe someone can give me a hint? :) thanks, --nils -- ** * Your mouse has moved. Windows must be restarted for the change to take effect. * ** * Nils Frohberg * *http://www.tako.de/ * **