Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 56688 invoked from network); 3 Oct 2007 13:30:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Oct 2007 13:30:12 -0000 Received: (qmail 74191 invoked by uid 500); 3 Oct 2007 13:29:48 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 74138 invoked by uid 500); 3 Oct 2007 13:29:48 -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 74076 invoked by uid 99); 3 Oct 2007 13:29:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Oct 2007 06:29:48 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [66.226.64.22] (HELO pro21.abac.com) (66.226.64.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Oct 2007 13:29:49 +0000 Received: from [192.168.1.100] (c-66-31-40-155.hsd1.ma.comcast.net [66.31.40.155]) (authenticated bits=0) by pro21.abac.com (8.14.1/8.14.1) with ESMTP id l93DS50e047942 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 3 Oct 2007 06:28:07 -0700 (PDT) (envelope-from kbowen@als.com) Message-ID: <470398FB.1030808@als.com> Date: Wed, 03 Oct 2007 09:28:27 -0400 From: Ken Bowen User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Tomcat/Plesk datasource setup problems References: <140123.51156.qm@web30610.mail.mud.yahoo.com> In-Reply-To: <140123.51156.qm@web30610.mail.mud.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Why not move your hosting to an isp who provides a vps? Then you get complete control of your own tomcat; the whole thing looks and feels like you have your own server, even though you are sharing the physical machine.:w The prices I've seen are comparable to those where you have to share your tomcat. My 2 cents... Ken Bowen Charl Gerber wrote: > Turns out datasource configuration is not possible > using Plesk as a shared tomcat server, the guys at > Plesk themselves told me. > > That sucks. Means I have to create and manage the > Datasource in my app... minor refactoring, but not a > nice way of doing it. I also use hibernate and could > only get that working by defining its own connection > pooling. So now I have two pools :(( > > > --- Pid wrote: > > >> Charl Gerber wrote: >> >>> Hi, >>> >>> I just moved my hosting from a provider where I >>> >> had a >> >>> private Tomcat server with complete control over >>> >> it to >> >>> a provider that uses Plesk and I share the Tomcat >>> server with other users. The provider has no >>> >> Tomcat >> >>> knowledge in house and the Tomcat service is >>> >> rarely >> >>> used, so they couldn't help me with this problem. >>> >> which version of tomcat? >> >> >>> I want to create a jdbc datasource for my >>> >> application. >> >>> If we manually create it in server.xml, the >>> >> provider >> >>> claims that the changes are overwritten and >>> >> removed >> >>> every time someone uploads a new .war file. (Is >>> >> this >> >>> true?) >>> >> AFAIK, server.xml is not altered by war file >> deployments. >> Tomcat would need to be restarted in order that >> those alterations to >> server.xml are evaluated. >> >> I also do not want to define the datasource as >> >>> eg a global resource, as it would mean the other >>> >> users >> >>> of the tomcat server can get access to my >>> >> database. >> >>> I tried to configure the datasource in the >>> >> context.xml >> >>> of my application and put it in my .war file. This >>> works fine on my development server, but when >>> >> uploaded >> >>> to the Tomcat server with Plesk, a server.xml >>> >> entry >> >>> for my application is created without the >>> >> datasource >> >>> settings and I cannot access my database. >>> >> What are the details of the entry being made in >> server.xml? >> Is Plesk making these alterations? >> What process are you using to upload the WAR? >> >> >>> How and where can I properly define a datasource >>> >> for >> >>> my application so that Plesk will set the Tomcat >>> configuration correctly? >>> >> META-INF/context.xml is the best location I think. >> >> Please provide more details about the tomcat version >> and the answer to >> the questions above. >> >> >> p >> >> >> >> >>> CG >>> >>> >>> > --------------------------------------------------------------------- > >>> To start a new topic, e-mail: >>> >> users@tomcat.apache.org >> >>> To unsubscribe, e-mail: >>> >> users-unsubscribe@tomcat.apache.org >> >>> For additional commands, e-mail: >>> >> users-help@tomcat.apache.org >> >>> >> >> > --------------------------------------------------------------------- > >> To start a new topic, e-mail: >> users@tomcat.apache.org >> To unsubscribe, e-mail: >> users-unsubscribe@tomcat.apache.org >> For additional commands, e-mail: >> users-help@tomcat.apache.org >> >> >> > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org