From users-return-156394-apmail-tomcat-users-archive=tomcat.apache.org@tomcat.apache.org Mon Jan 08 12:15:55 2007 Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 72968 invoked from network); 8 Jan 2007 12:15:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Jan 2007 12:15:55 -0000 Received: (qmail 26738 invoked by uid 500); 8 Jan 2007 12:15:50 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 26480 invoked by uid 500); 8 Jan 2007 12:15:50 -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 26469 invoked by uid 99); 8 Jan 2007 12:15:49 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Jan 2007 04:15:49 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of David.Delbecq@oma.be designates 193.190.231.71 as permitted sender) Received: from [193.190.231.71] (HELO bonnie.oma.be) (193.190.231.71) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Jan 2007 04:15:40 -0800 Received: from [193.190.249.120] (bonnie.oma.be [193.190.231.71]) by bonnie.oma.be (8.11.1 (Revision 1.5) /8.11.1) with ESMTP id l08CFH028652 for ; Mon, 8 Jan 2007 12:15:17 GMT Message-ID: <45A2360F.3030803@oma.be> Date: Mon, 08 Jan 2007 13:16:15 +0100 From: David Delbecq User-Agent: Thunderbird 1.5.0.9 (X11/20070103) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: something wrong creating datasource after war deployement References: <45A225FB.1040206@sunopsis.com> <45A22BE2.3040608@oma.be> <45A23377.1020204@sunopsis.com> In-Reply-To: <45A23377.1020204@sunopsis.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org If you want to edit the context.xml yourself, remove it from the .war file. I suppose there is a conflict between the context.xml you deploy yourself and the one inside the .war. I think when you deploy an unpacked directory the META-INF/context.xml file is ignored. (Not 100% sure) En l'instant précis du 01/08/07 13:05, Arnaud MERGEY s'exprimait dans toute sa noblesse: > Thanks for reply, my db is Oracle 9i > The problem isn't a security or driver problem, I have tested also in > the same tomcat, in webapps: > - Cpying the unpacked version only, modify context and web.xml, all > works perfectly. > - Removing in the same tomcat the application, copying the war file > and modify context.xml and web.xml in the unpacked directory, I have the > > org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot > create JDBC driver of class '' for connect URL 'null' > > > - Removing the war and copying the unpacked version only, modify > context and web.xml, all works perfectly. > > I have tested tomcat 5.5.20 5.5.17 many times and on several tomcat > instance, I have always the same behavior. > > In my case using war deployment prevent me to update manually > context.xml to add datasource. I need to use admin webapp or to copy > unpacked directory, not the war himself. > > Arnaud > > David Delbecq a écrit : >> Get the full stacktrace of exception to know when this happen. If both >> install are same, maybe one is on a server that has no access to the db >> (check the db security settings). >> >> Also, what did you compare with windiff? The webapp directories or the >> full tomcat install directores? Your META-INF/context.xml should have >> been copied by tomcat to conf/Catalina//.xml Check >> those are correct. >> >> >> En l'instant précis du 01/08/07 12:07, Arnaud MERGEY s'exprimait dans >> toute sa noblesse: >> >>> Hi >>> something strange appends with an application >>> On tomcat 5.5.20 (same behavior with tomcat 5.5.17) >>> >>> I deploy an application copying an unpacked war directory into webapps >>> directory. I add a datasource updating the META-INF/context.xml and >>> WEB-INF/web.xml like tomcat how-to. All works perfectly, no problems. >>> >>> In another tomcat I copy the war of the same application in the >>> webapps, the war is unpacked . I add the datasource updating the >>> META-INF/context.xml and WEB-INF/web.xml and I can't use this >>> datasource : "org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot >>> create JDBC driver of class '' for connect URL 'null'" >>> >>> witth windiff I compare the two directory and they are identical, the >>> only differences is in one the webapps directry has only the unpacked >>> directory and the other has unpacked and war directory. >>> >>> I need help to understand, thanks >>> Arnaud >>> >>> >>> --------------------------------------------------------------------- >>> 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