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>
<title>test</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-name>ejb/user</ejb-ref-name>
  <ejb-ref-type>Session</ejb-ref-type>
  <home>de.tako.userHome</home>
  <remote>de.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/ *
**********************************************************************************

Reply via email to