Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 43771 invoked from network); 2 Jun 2009 01:55:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Jun 2009 01:55:08 -0000 Received: (qmail 53419 invoked by uid 500); 2 Jun 2009 01:55:17 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 53342 invoked by uid 500); 2 Jun 2009 01:55:16 -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 53331 invoked by uid 99); 2 Jun 2009 01:55:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jun 2009 01:55:16 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ravirajamiyer@gmail.com designates 74.125.92.144 as permitted sender) Received: from [74.125.92.144] (HELO qw-out-1920.google.com) (74.125.92.144) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jun 2009 01:55:07 +0000 Received: by qw-out-1920.google.com with SMTP id 5so3415944qwf.12 for ; Mon, 01 Jun 2009 18:54:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=jps/FjOGXy0E4HZbzQHLMf5Ol+0o43wy7+1OeWwIQbM=; b=k/mQ3a8XGup6hY8T5aeNoABteMBJPGjSXTi+XZkqzv9LcC4Iz75JeDCkT1tamBgUY4 Eli+uRm08Po7svGKhz5lPwyIdqyo8TDkrnmUrZHSr8zqK1jhkgGIxZi1LTcPBuagvmuS 1ZbIJKAJCZXiByi1FJqj81rSK6jECO0HRM3Dc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Nh0Txrr7/lKWlIb5XBmCUyoWUlAwABQE+uyuF7SzjThaSrvbHGc5zWVCEjA1lc6ffy qNu9g118rBJD8YomgjDjZYuK1iIFnjPJqExc2FUhbiNRuqLSE8QYOnDYDU4wnHTYf/Ij lm35iO9vOiM6Eiag9QMlXhbhFxngEQSVZ2TZg= MIME-Version: 1.0 Received: by 10.220.77.17 with SMTP id e17mr4553083vck.3.1243907686349; Mon, 01 Jun 2009 18:54:46 -0700 (PDT) Date: Mon, 1 Jun 2009 18:54:46 -0700 Message-ID: <74dbc8730906011854m4f5ad6ddn94436264d19cee93@mail.gmail.com> Subject: Replacing the default ROOT application From: R Ravichandran To: users@tomcat.apache.org Content-Type: multipart/alternative; boundary=0016e64eabf4c73a96046b53d32b X-Virus-Checked: Checked by ClamAV on apache.org --0016e64eabf4c73a96046b53d32b Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hello, I would like to deploy a Spring MVC application that I developed as the ROOT application on Tomcat. I also configured the Tomcat server to run on port 80. My Spring application has JNDI references to Java mail sessions. I am unable to figure out how to get this configured. Here is what I did: _ In the server.xml file, I created a special element under the element. I added a element for the mail server inside this. But I get this following error message when the application starts: Jun 1, 2009 6:34:53 PM org.springframework.web.context.ContextLoader initWebApplicationContext SEVERE: Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mailSession' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Name mail is not bound in this Context Any suggestions on how to attach JNDI resources for Default web application for Tomcat. Thanks. --0016e64eabf4c73a96046b53d32b--