Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 19396 invoked from network); 11 Jun 2005 20:14:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Jun 2005 20:14:26 -0000 Received: (qmail 89229 invoked by uid 500); 11 Jun 2005 20:14:24 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 89208 invoked by uid 500); 11 Jun 2005 20:14:23 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 89195 invoked by uid 99); 11 Jun 2005 20:14:23 -0000 X-ASF-Spam-Status: No, hits=1.1 required=10.0 tests=FORGED_RCVD_HELO,SPF_HELO_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from mta5.srv.hcvlny.cv.net (HELO mta5.srv.hcvlny.cv.net) (167.206.4.200) by apache.org (qpsmtpd/0.28) with ESMTP; Sat, 11 Jun 2005 13:14:23 -0700 Received: from net-waimun-g4.local (ool-4577e9ac.dyn.optonline.net [69.119.233.172]) by mta5.srv.hcvlny.cv.net (iPlanet Messaging Server 5.2 HotFix 1.25 (built Mar 3 2004)) with ESMTP id <0IHX00EFES81LT@mta5.srv.hcvlny.cv.net> for user@geronimo.apache.org; Sat, 11 Jun 2005 16:14:25 -0400 (EDT) Date: Sat, 11 Jun 2005 16:14:20 -0400 (EDT) From: waimun Subject: Re: Location of Database driver In-reply-to: To: user@geronimo.apache.org Message-id: <3745812.1118520860595.JavaMail.waimun@net-waimun-g4.local> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi... Sorry for the late reply. The part that is causing the error is the missing oracle.jdbc.OracleDriver. As you can see below. I do not have a web app plan, and am not sure what it is. If you can point me to any page, then it will be great. Is a web app plan necessary? Let's say I have a .war from a vendor, and I want to deploy it right away, just as it is, do I need to write a plan? My db plan as follows (I am modifying the default-database-plan): oracle10g/jars/ojdbc14.jar public void registerDriver() { try { //Context initCtx = new InitialContext(); //ds = (DataSource) initCtx.lookup("java:comp/env/jdbc/LcssDB"); DriverManager.registerDriver(new OracleDriver()); } catch (Exception ex) { ex.printStackTrace(); } } I am not understanding the db plan even though you have told me to include a dependency. I want the webapp just to do plain JDBC; just getConnection(), that's all. Thanks, -- waimun On 6/8/05, David Jencks wrote: > can you post the db plan, the web app plan, and the code that you use > to get a db connection? > > thanks > david jencks > > On Jun 8, 2005, at 4:00 PM, waimun wrote: > > > I am modifying the default-database-plan by inserting another > > dependency for the oracle jar directory. I feel that this might be > > wrong as I only need the jar file to be exposed in the web context. I > > am still getting the NoClassDefFound. How do I do this in the plan > > file? > > > > Thanks, > > waimun > > > > On Jun 3, 2005, at 7:11 PM, David Jencks wrote: > > > >> I can't find your previous posts. > >> You need to include a dependency to the driver jar in your plan. For > >> instance, default-database-plan has dependencies on the axion jar and > >> 3 other jars it needs. For oracle you should need only the oracle > >> driver jar. If this doesn't fix the problem please post your entire > >> plan. > >> > >> thanks > >> david jencks > >> > >> > >> On Jun 3, 2005, at 2:45 PM, waimun wrote: > >> > >>> Hi... > >>> I am still getting NoClassDefFound. Do I need any other > >>> configuration other than creating the directory structure you have > >>> mentioned. > >>> > >>> Thanks. > >>> -- > >>> waimun > >>> > >>> On 6/1/05, Katia Aresti Gonzalez wrote: > >>> > > >>> > > >>> > > >>> > Hi!! > >>> > > >>> > I think that you have to copy the driver to the repository > >>> directory. You > >>> > have to create a folder in the repository of the M4 instalation > >>> folder, for > >>> > example oracle. inside that folder, create another one with the > >>> name jar, > >>> > and copy the driver there. > >>> > > >>> > repostory/oracle/jars/your driver. > >>> > > >>> > Hope this helps!! > >>> > > >>> > Katia > >>> > > >>> > >> > > > >