*
The moose likes Tomcat and the fly likes Help with EJB deployment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Help with EJB deployment" Watch "Help with EJB deployment" New topic
Author

Help with EJB deployment

Hemal Shah
Greenhorn

Joined: Dec 04, 2001
Posts: 8
I am trying to deply an architecture on my machine. I am using JBoss/Tomcat as the web server.
I am able to successfully run jsp's. When I enter a username+passwrod on a 'login.jsp', I should get directed to a 'loginhandler.jsp'. However I am unable to do this successfully. Here is the erros I get:
Internal Servlet Error:
javax.servlet.ServletException: Failed to look up test/LoginWorkFlowHome
at _0002floginhandler_0002ejsploginhandler_jsp_0._jspService(_0002floginhandler_0002ejsploginhandler_jsp_0.java:125)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
Root cause:
javax.naming.NameNotFoundException: test not bound
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:349)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at _0002floginhandler_0002ejsploginhandler_jsp_0._jspService(_0002floginhandler_0002ejsploginhandler_jsp_0.java:119)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)

I don't understand what they mean - has anyone got any ideas?
Thanks.
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Moving this to the Tomcat forum.
------------------
Tom
Sun Certified Programmer for the Java� 2 Platform
Moderator of the forums:
J2EE and EJB
Other Java APIs


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Could I get a clarification on something?

Are you calling an EJB through a JNDI lookup in your JSP?

It looks like the lookup is failing (under the root cause stack trace):
Either you have not included the JNDI information in your deployment descriptors, or there is a problem in your configuration of Tomcat and JBoss (Tomcat may not be properly communicating with the EJB container).
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/defaultcontext.html
Search this page for "JNDI" for starters.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help with EJB deployment
 
Similar Threads
javax.servlet.ServletException: Cannot create bean of class...
ORA-01009: missing mandatory parameter
Tomcat and Mysql Configuration
Cast object[][] into strings
Help with EJB deployment