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 37F44DC31 for ; Thu, 3 Jan 2013 03:29:28 +0000 (UTC) Received: (qmail 46820 invoked by uid 500); 3 Jan 2013 03:29:24 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 46624 invoked by uid 500); 3 Jan 2013 03:29: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 46575 invoked by uid 99); 3 Jan 2013 03:29:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jan 2013 03:29:22 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [76.96.59.227] (HELO qmta12.westchester.pa.mail.comcast.net) (76.96.59.227) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jan 2013 03:29:15 +0000 Received: from omta08.westchester.pa.mail.comcast.net ([76.96.62.12]) by qmta12.westchester.pa.mail.comcast.net with comcast id jFU51k0010Fqzac5CFUrzR; Thu, 03 Jan 2013 03:28:51 +0000 Received: from [192.168.1.200] ([69.143.109.145]) by omta08.westchester.pa.mail.comcast.net with comcast id jFUq1k00838FjT13UFUqRo; Thu, 03 Jan 2013 03:28:51 +0000 Message-ID: <50E4FAF1.6090703@christopherschultz.net> Date: Wed, 02 Jan 2013 22:28:49 -0500 From: Christopher Schultz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: some clarification about context. References: <-6973156401268103703@unknownmsgid> In-Reply-To: X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1357183731; bh=AK0r83c4UZ/jH24LS16pNsUrZPuB9FkuYEw0Ky3B4WU=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=nW1ZvI/a8fStvuFH6whP5KGPkXG2gt7aJg9uspwlCrGAWt/l9D57UU5Xy7wehNkdW 0CJyucqib7LH9STR9lUBmV/mlPHSo6R028Y+E3gPKNh8rX3iraXJk3Nxo9PRQML68r ENRZfST/D2NeDQeoLfbKk4xcJj6U36STPafN3+kbyGWBceeKAzFzjaNQNBGYgujiVK G7wa5kDfvZRR+MeIbP03kj5K1viLpQP2HcvjA2UOBdhZZlAnSf8bBI5THwQDYdQQjT gVjdMB9PmSl1lb5WjLu9VzcWte4wRG21oQjYDqwGBedjRrt+GvoOoVZ7FTwKC/IBRU Cnn/Fv43LRvtg== X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Mauro, On 1/2/13 9:52 AM, Mauro wrote: > Here is my_app.xml: > > type="javax.sql.DataSource" maxActive="100" maxIdle="30" > maxWait="10000" username="mauro" password="xxx" > driverClassName="org.postgresql.Driver" > url="jdbc:postgresql://svsopsql01.mydomain.com:5432/my_app"/> > You should not be setting the "path" attribute of the : the path will be determined from the name of the file. Are you placing your WAR file (or exploded WAR directory) in your 's deployment directory (typically CATALINA_BASE/webapps)? If not, you'll have to specify the docBase attribute in your . Unless you have a copy/paste error, the above is invalid XML because you haven't closed the "path" attribute's value. Everything else looks good to me. > and here is my_app1.xml > > auth="Container" type="javax.sql.DataSource" maxActive="100" > maxIdle="30" maxWait="10000" username="mauro" password="xxx" > driverClassName="org.postgresql.Driver" > url="jdbc:postgresql://svsopsql01.mydomain.com:5432/my_app1"/> > Same comments as above. > Here is the message error of the first application: > > org.jruby.rack.RackInitializationException: The driver encountered > an unknown error: Cannot create JDBC driver of class > 'org.postgresql.Driver' for connect URL You mentioned that you put your Postgres driver in CATALINA_BASE/lib. Do you also have those drivers in the WEB-INF/lib directory of either 'my_app' or 'my_app1'? - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with undefined - http://www.enigmail.net/ iEYEAREIAAYFAlDk+vEACgkQ9CaO5/Lv0PB/bwCggAAiuB8oEXI9TR4vc9dwXMDU u/YAn2k3S7anrY8SKZLMjSG/QxBf7ajG =udjH -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org