Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 24440 invoked by uid 500); 23 Jul 2001 12:08:19 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 24367 invoked from network); 23 Jul 2001 12:08:18 -0000 Message-ID: <20010723120819.63478.qmail@web12808.mail.yahoo.com> Date: Mon, 23 Jul 2001 05:08:19 -0700 (PDT) From: Davanum Srinivas Reply-To: dims@yahoo.com Subject: [C2][Beta2] Does Avalon Excalibur in CVS honor entry for JDBC? To: cocoon-dev@xml.apache.org In-Reply-To: <3B58522F.E819D1CF@apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Berin, Is this already in? Thanks, dims --- Berin Loritsch wrote: > Davanum Srinivas wrote: > > > > > > The most common reason for this exception is that the driver was not loaded. > > > > Cocoon uses an initial parameter in the "web.xml" file to automatically load > > > > classes on startup. This way, the class is loaded only once and the > > > > server's > > > > time is spent doing more productive things. Make sure the following entry > > > > is in your "web.xml" file: > > > > > > > > > > > > load-class > > > > > > > > > > > > oracle.jdbc.driver.OracleDriver > > > > > > > > > > > > > > > > If the class is loaded correctly, and you are still getting this error, > > > > then there > > > > is probably an error in your connection information. The SQLException > > > > above is thrown when there are no open connections to the database. > > > > > > > > > > Even if placing JDBC drivers in the load-class param can be justified > > > from a design point of view (it's loaded only once, it's a deployment > > > parameter, etc), it appears that it is confusing users. This is mainly > > > because nearly all tools that rely on a JDBC connection (including C1) > > > ask for the JDBC url and driver class at the same time or place. > > > > > > What about allowing to optionally specify the driver class name in the > > > datasource configuration ? > > > > +1. How about post Beta2? > > Actually, that requires a change to Avalon Excalibur--I can commit it to > CVS now. The new configuration element will be . > > > oracle.jdbc.driver.OracleDriver > jdbc:oracle:thin:@host:1521:ORCL > > ATTACHMENT part 2 application/x-pkcs7-signature name=smime.p7s ===== Davanum Srinivas, JNI-FAQ Manager http://www.jGuru.com/faq/JNI __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org