Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 83795 invoked from network); 24 Apr 2003 11:47:31 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 24 Apr 2003 11:47:31 -0000 Received: (qmail 9886 invoked by uid 97); 24 Apr 2003 11:49:27 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 9879 invoked from network); 24 Apr 2003 11:49:27 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 24 Apr 2003 11:49:26 -0000 Received: (qmail 82372 invoked by uid 500); 24 Apr 2003 11:47:15 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 82359 invoked from network); 24 Apr 2003 11:47:14 -0000 Received: from web10003.mail.yahoo.com (216.136.130.39) by daedalus.apache.org with SMTP; 24 Apr 2003 11:47:14 -0000 Message-ID: <20030424114715.61597.qmail@web10003.mail.yahoo.com> Received: from [199.29.132.2] by web10003.mail.yahoo.com via HTTP; Thu, 24 Apr 2003 04:47:15 PDT Date: Thu, 24 Apr 2003 04:47:15 -0700 (PDT) From: Michael Duffy Subject: RE: Servlet Deployment Problem To: Tomcat Users List In-Reply-To: <5.2.0.9.2.20030423234449.02d98a58@shell.visi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Thank you, Jacob, that's exactly what I'm doing. I know it's working, because my context.xml calls for a log file that is created successfully, and the log file contains info about the JNDI data source that I ask for in . - MOD --- Jacob Kjome wrote: > > Glad you figured that out, but I noticed you > mentioned using a context.xml > with the catalina ant "install" task. If you mean > having the "context.xml" > in the META-INF of the .war file, only the "deploy" > task will work with > that setup. If you want to specify a context.xml > for the install task, you > have to provide the path to the context.xml in the > "config" attribute of > the "install" task. > > Jake > > At 01:21 PM 4/23/2003 -0700, you wrote: > > >Yes, I am, and that's exactly what I left out. > Thank > >you. - MOD > > > > > >--- "Shapira, Yoav" wrote: > > > > > > Howdy, > > > Are you overriding the init() or > init(ServletConfig) > > > method in your > > > servlet? You should override the first, or make > > > sure super(config) is > > > the first line of the second. > > > > > > Yoav Shapira > > > Millennium ChemInformatics > > > > > > > > > >-----Original Message----- > > > >From: Michael Duffy [mailto:duffymo@yahoo.com] > > > >Sent: Wednesday, April 23, 2003 4:10 PM > > > >To: tomcat-user@jakarta.apache.org > > > >Subject: Servlet Deployment Problem > > > > > > > >I'm trying to deploy a servlet to Tomcat > 4.1.24, > > > using > > > >Ant and the Catalina install task with > context.xml > > > and > > > >web.xml descriptors. > > > > > > > >When I deploy the servlet I get this exception > out > > > in > > > >the context log file: > > > > > > > >2003-04-23 14:18:35 > > > >StandardWrapper[/api-prototype:default]: > Loading > > > >container servlet default > > > >2003-04-23 14:18:35 > > > StandardContext[/api-prototype]: > > > >Servlet /api-prototype threw load() exception > > > >javax.servlet.ServletException: Servlet.init() > for > > > >servlet APIPrototypeServlet threw exception > > > > at > > > > > > >org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.ja > > > va:9 > > > >63) > > > > at > > > > > > >org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823) > > > > at > > > > > > >org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext. > > > java > > > >:3420) > > > > at > > > > > > >org.apache.catalina.core.StandardContext.start(StandardContext.java:360 > > > 8) > > > > at > > > > > > >org.apache.catalina.startup.HostConfig.checkWebXmlLastModified(HostConf > > > ig.j > > > >ava:614) > > > > at > > > > > > >org.apache.catalina.startup.HostConfig.run(HostConfig.java:854) > > > > at java.lang.Thread.run(Thread.java:536) > > > >----- Root Cause ----- > > > >java.lang.NullPointerException > > > > at > > > > > > >javax.servlet.GenericServlet.getServletContext(GenericServlet.java:204) > > > > at > > > > > > >com.kaman.api.control.APIPrototypeServlet.init(Unknown > > > >Source) > > > > at > > > > > > >org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.ja > > > va:9 > > > >35) > > > > at > > > > > > >org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823) > > > > at > > > > > > >org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext. > > > java > > > >:3420) > > > > at > > > > > > >org.apache.catalina.core.StandardContext.start(StandardContext.java:360 > > > 8) > > > > at > > > > > > >org.apache.catalina.startup.HostConfig.checkWebXmlLastModified(HostConf > > > ig.j > > > >ava:614) > > > > at > > > > > > >org.apache.catalina.startup.HostConfig.run(HostConfig.java:854) > > > > at java.lang.Thread.run(Thread.java:536) > > > > > > > >I've never seen this before. Can anyone tell > me > > > what > > > >I've done wrong? The web.xml and context.xml > are > > > both > > > >well-formed XML, according to XMLNotepad. > Thanks - > > > MOD > > > > > > > > >__________________________________________________ > > > >Do you Yahoo!? > > > >The New Yahoo! Search - Faster. Easier. Bingo > > > >http://search.yahoo.com > > > > > > > > > > >--------------------------------------------------------------------- > > > >To unsubscribe, e-mail: > > > tomcat-user-unsubscribe@jakarta.apache.org > > > >For additional commands, e-mail: > > > tomcat-user-help@jakarta.apache.org > > > > > > > > > > > > > > > This e-mail, including any attachments, is a > > > confidential business communication, and may > contain > > > information that is confidential, proprietary > and/or > > > privileged. This e-mail is intended only for > the > > > individual(s) to whom it is addressed, and may > not > > > be saved, copied, printed, disclosed or used by > > > anyone else. If you are not the(an) intended > > > recipient, please immediately delete this e-mail > > > from your computer system and notify the sender. > > > Thank you. > > > > > > > > > > >--------------------------------------------------------------------- > > > To unsubscribe, e-mail: > > > tomcat-user-unsubscribe@jakarta.apache.org > > > For additional commands, e-mail: > > > tomcat-user-help@jakarta.apache.org > > > > > > > > >__________________________________________________ > >Do you Yahoo!? > >The New Yahoo! Search - Faster. Easier. Bingo > >http://search.yahoo.com > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: > tomcat-user-unsubscribe@jakarta.apache.org > >For additional commands, e-mail: > tomcat-user-help@jakarta.apache.org > __________________________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo http://search.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org