Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 61506D4EB for ; Tue, 25 Jun 2013 14:28:28 +0000 (UTC) Received: (qmail 70030 invoked by uid 500); 25 Jun 2013 14:28:25 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 69794 invoked by uid 500); 25 Jun 2013 14:28:24 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 69783 invoked by uid 99); 25 Jun 2013 14:28:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Jun 2013 14:28:24 +0000 X-ASF-Spam-Status: No, hits=-2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_HI,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of napainte@us.ibm.com designates 32.97.182.137 as permitted sender) Received: from [32.97.182.137] (HELO e7.ny.us.ibm.com) (32.97.182.137) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Jun 2013 14:28:16 +0000 Received: from /spool/local by e7.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 25 Jun 2013 10:27:55 -0400 Received: from d01dlp01.pok.ibm.com (9.56.250.166) by e7.ny.us.ibm.com (192.168.1.107) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 25 Jun 2013 10:27:53 -0400 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by d01dlp01.pok.ibm.com (Postfix) with ESMTP id DC22438C804F for ; Tue, 25 Jun 2013 10:27:50 -0400 (EDT) Received: from d01av05.pok.ibm.com (d01av05.pok.ibm.com [9.56.224.195]) by d01relay04.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r5PERmTv302480 for ; Tue, 25 Jun 2013 10:27:49 -0400 Received: from d01av05.pok.ibm.com (loopback [127.0.0.1]) by d01av05.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r5PERc7k031143 for ; Tue, 25 Jun 2013 10:27:38 -0400 Received: from d01ml064.pok.ibm.com (d01ml064.pok.ibm.com [9.63.8.40]) by d01av05.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id r5PERc0d031138 for ; Tue, 25 Jun 2013 10:27:38 -0400 In-Reply-To: <1372170263.28620.313.camel@blackberry> References: <51C9A085.9040102@apache.org> <1372170263.28620.313.camel@blackberry> To: "Tomcat Users List" MIME-Version: 1.0 Subject: Re: Error deploying web application X-KeepSent: 49E50D94:87679C0A-85257B95:004F5340; type=4; name=$KeepSent X-Mailer: Lotus Notes Release 8.5.3FP2 SHF22 July 19, 2012 Message-ID: From: Nickalaus A Painter Date: Tue, 25 Jun 2013 10:27:36 -0400 X-MIMETrack: Serialize by Router on D01ML064/01/M/IBM(Release 8.5.3FP2 ZX853FP2HF5|February, 2013) at 06/25/2013 10:27:38, Serialize complete at 06/25/2013 10:27:38 Content-Type: multipart/alternative; boundary="=_alternative 004F6EE485257B95_=" X-TM-AS-MML: No X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13062514-5806-0000-0000-000021DE5D8F X-Virus-Checked: Checked by ClamAV on apache.org --=_alternative 004F6EE485257B95_= Content-Type: text/plain; charset="US-ASCII" You're right, we have META-INF/context.xml, not META-INF/MyApp.xml; sorry, I was just typing about MyApp.xml and didn't think about it :) Nickalaus A. Painter IBM Smarter Water Co-op Developer Clarkson University 2014 B.S. Mathematics and Computer Science +18454353546 From: Tim Watts To: users@tomcat.apache.org, Date: 06/25/2013 10:25 AM Subject: Re: Error deploying web application On Tue, 2013-06-25 at 10:01 -0400, Nickalaus A Painter wrote: > Jun 25, 2013 9:49:53 AM org.apache.catalina.startup.HostConfig > deployDescriptor > SEVERE: Error deploying configuration descriptor > /usr/local/tomcat/apache-tomcat-7.0.37/conf/Catalina/localhost/MyApp.xml > java.lang.NullPointerException > at > So does this mean that I have to reconfigure MyApp.xml in that directory? > Shouldn't Tomcat look in the directory of MyApp once it explodes the .war > file? Also, for completeness, here is MyApp.xml: > Relative to the root of your .war file, Tomcat will look for META-INF/context.xml. It copies this to .../Catalina/localhost/MyApp.xml. You shouldn't have a MyApp.xml anywhere in your .war file. HTH -Tim. > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation=" http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd > http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd" > version="2.5"> > > > > crossContext="true"> > > > type="javax.sql.DataSource" > driverClassName="com.mysql.jdbc.Driver" > url="jdbc:mysql://localhost:3306/mydatabase" > username="root" password="root" maxActive="50" > maxIdle="15" maxWait="-1"/> > > > > > Do you need anything else? Thank you very much for your time! > > Regards, > Nick > > > Nickalaus A. Painter > IBM Smarter Water Co-op Developer > Clarkson University 2014 > B.S. Mathematics and Computer Science > +18454353546 > > > > From: Mark Thomas > To: Tomcat Users List , > Date: 06/25/2013 09:52 AM > Subject: Re: Error deploying web application > > > > On 25/06/2013 14:43, Nickalaus A Painter wrote: > > While attempting to deploy my web application to our production server I > > > encountered an issue, and after looking in the catalina.out log file, > the > > following shows up: > > > > > Caused by: org.apache.catalina.LifecycleException: Failed to process > > either the global, per-host or context-specific context.xml file > therefore > > the [/MyApp] Context cannot be started. > > at > > > org.apache.catalina.startup.FailedContext.startInternal(FailedContext.java:155) > > at > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > > ... 11 more > > Before this message, a message will have been logged along the lines of: > SEVERE: ... Error deploying configuration descriptor > > You need to find that log message. It will tell you which context.xml > file could not be processed and why. My guess would be malformed XML. > > Mark > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > [attachment "signature.asc" deleted by Nickalaus A Painter/Poughkeepsie/IBM] --=_alternative 004F6EE485257B95_=--