Hi,

I was calling my EJB using JRun Resources and it was working, but when I tried to make my servlet portable and the following error ocurred:

code that is working:
            final PessoaHome home = (PessoaHome)context.lookup("webpersonnel.PessoaHome");
code that is not working::
            final PessoaHome home = (PessoaHome)context.lookup("java:comp/env/ejb/webpersonnel.PessoaHome");

500 Internal Server Error
/webpersonnel/SelecionarDependente:

javax.servlet.ServletException: java:comp/env/ejb/webpersonnel.PessoaHome not found
javax.servlet.ServletException: java:comp/env/ejb/webpersonnel.PessoaHome not found
 at SelecionarDependenteServlet.doGet(SelecionarDependenteServlet.java:109)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at SelecionarDependenteServlet.service(SelecionarDependenteServlet.java:48)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
 at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
 at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
 at allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:88)
 at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
 at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
 at allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java:354)
 at allaire.jrun.ThreadPool.run(ThreadPool.java:267)
 at allaire.jrun.WorkerThread.run(WorkerThread.java:74)

Any ideas ?

Regards

Marcelo Bellezo

Reply via email to