looking in conf/default/jndi.properties, you wil see proper definitions for these values. Until recently it was necessary to set them on the command line (eg in run.sh) using -D in order for tomcat to see them. I believe this is fixed in recent source... > -----Original Message----- > From: Alexander Jerusalem [mailto:[EMAIL PROTECTED]] > Sent: Sunday, February 25, 2001 6:30 AM > To: JBoss-User > Subject: [jBoss-User] No InitialContext available in JSP? > > > Hi again, > > I'm getting an exception in my JSP file when I use JNDI to > look up an EJB. > It seems the InitialContext hasn't been set up for the web > container. (I'm > using the jboss_tomcat binary distribution) > > javax.servlet.ServletException: was: > javax.naming.NoInitialContextException: Need to specify class name in > environment or system property, or as an applet parameter, or in an > application resource file: java.naming.factory.initial > at > _0002fejbtest_0002ejspejbtest_jsp_0._jspService(_0002fejbtest_ > 0002ejspejbtest_jsp_0.java:86) > 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$JspServletWrapper.service > (JspServlet.java:177) > at > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet > .java:318) > at > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper > .java:404) > at org.apache.tomcat.core.Handler.service(Handler.java:286) > at > org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) > at > org.apache.tomcat.core.ContextManager.internalService(ContextM > anager.java:799) > at > org.apache.tomcat.core.ContextManager.service(ContextManager.java:745) > at > org.apache.tomcat.service.http.HttpConnectionHandler.processCo > nnection(HttpConnectionHandler.java:210) > at > org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin > t.java:407) > at > org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo > ol.java:498) > at java.lang.Thread.run(Unknown Source) > > Do I really have to tell the InitialContext where to find the > JNDI server? > I would have thought that it's enough to put everything in an > ear. Or am I > doing something wrong there? > > kind regards, > > Alexander Jerusalem > [EMAIL PROTECTED] > www.vknn.org > > > > -- > -------------------------------------------------------------- > To subscribe: [EMAIL PROTECTED] > To unsubscribe: [EMAIL PROTECTED] > List Help?: [EMAIL PROTECTED] > --------------------------------------------------------------------- This message (including any attachments) contains confidential, proprietary or privileged information intended for a specific purpose and individual(s), and is protected by law. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. Any unauthorized disclosure, copying or distribution of any part of this message, or the taking of any unauthorized action based on it, is strictly prohibited. -- -------------------------------------------------------------- To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] List Help?: [EMAIL PROTECTED]
