On Mon, 30 Jul 2001, A.L. wrote:

> I have been trying to run the JBOSS interest example,
> and ahve followed the advise of a few peopl who had at
> one point experience dtbhe same problem. 
> Unfortunately, I am still unable to run the servlet
> for the interest example.  When going to the
> .../interest/home.html page and pushing the Calculate
> button I get the error printed at the end of my email:
> 
> I have tried everything, but don't exactly understand
> the error, to know how to debug the problem.  Could
> someone explain to me what is going on, and what this
> error means.  Perhaps then I will be able to run the
> servlet.
>   
> Thanks to those who have already tried to help solve
> my problem, and to anyone who will give me any new
> advice.
> 
> Thanks,
> -Amos
> 
> HERE is the error I am receiving.
> 
> 
> Error: 500
> Location: /interest/InterestServlet
> Internal Servlet Error:
> 
> javax.servlet.ServletException: Failed to lookup
> java:comp/env/ejb/Interest
>       at
> org.jboss.docs.interest.InterestServlet.init(InterestServlet.java:45)

It looks like the JNDI lookup fails. You have to bind the Interest EJB
into your servlet's java: domain.

Add the following to your jboss-web.xml:

    <ejb-ref>
        <ejb-ref-name>ejb/Interest</ejb-ref-name>
        <jndi-name>InterestJNDIname</jndi-name>
    </ejb-ref>

See Chapter 6 in the JBoss docs.


Cheers

-----------------------------------------------------------------------
Per Lewau ([EMAIL PROTECTED]) 

"Why waste time learning, when ignorance is instantaneous?"
                                                - Hobbes


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to