Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 55297 invoked from network); 26 Feb 2011 21:29:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Feb 2011 21:29:51 -0000 Received: (qmail 11248 invoked by uid 500); 26 Feb 2011 21:29:48 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 11143 invoked by uid 500); 26 Feb 2011 21:29:47 -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 11134 invoked by uid 99); 26 Feb 2011 21:29:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Feb 2011 21:29:47 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 147.91.1.120 is neither permitted nor denied by domain of ognjen.d.blagojevic@gmail.com) Received: from [147.91.1.120] (HELO afrodita.rcub.bg.ac.rs) (147.91.1.120) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Feb 2011 21:29:39 +0000 Received: from [147.91.4.66] (ognjen-pc.rcub.bg.ac.rs [147.91.4.66]) by afrodita.rcub.bg.ac.rs (Postfix) with ESMTP id 258C219194B2 for ; Sat, 26 Feb 2011 22:29:02 +0100 (CET) Message-ID: <4D69709D.7030906@gmail.com> Date: Sat, 26 Feb 2011 22:29:01 +0100 From: Ognjen Blagojevic User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: what to do in conf. files References: <4D6808EC.2000001@christopherschultz.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-9; format=flowed Content-Transfer-Encoding: 7bit X-RCUB-MailScanner-Information: Please contact the ISP for more information X-RCUB-MailScanner-ID: 258C219194B2.A89A7 X-RCUB-MailScanner: Found to be clean X-RCUB-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-2.599, required 7, autolearn=not spam, BAYES_00 -2.60) On 26.2.2011 18:50, ahmet temiz wrote: > > crossContext="true" reloadable="true" debug="1"> > driverClassName="org.postgresql.Driver" > url="jdbc:postgresql://127.0.0.1:5432/bzk2" > username="orkun" password="222222" maxActive="20" maxIdle="10" > poolPreparedStatements="true" > maxWait="-1" accessToUnderlyingConnectionAllowed="true" /> > 1. Remove the path attribute. Docs: "The value of this field must not be set except when statically defining a Context in server.xml, as it will be inferred from the filenames used for either the .xml context file or the docBase." 2. Remove the docBase attribute. Docs: "The value of this field must not be set when the Context is configured using a META-INF/context.xml file as it will be inferred by the automatic deployment process." 3. Remove the reloadable attribute. Docs: "This feature is very useful during application development, but it requires significant runtime overhead and is not recommended for use on deployed production applications. That's why the default setting for this attribute is false. You can use the Manager web application, however, to trigger reloads of deployed applications on demand." 4. Remove debug attribute. Docs: "". It is deprecated. 5. If "222222" is actual password, change it. I advise you to remove passwords from the examples you post, since you make them visible to the world-wide audince. Also, if your DB parameters at development and production are different (which is recommended), you will need two context.xml files, and a proper script to pack the right one into the WAR archive. -Ognjen --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org