Return-Path: Delivered-To: apmail-maven-continuum-users-archive@www.apache.org Received: (qmail 22712 invoked from network); 10 Mar 2008 00:56:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Mar 2008 00:56:18 -0000 Received: (qmail 38898 invoked by uid 500); 10 Mar 2008 00:56:14 -0000 Delivered-To: apmail-maven-continuum-users-archive@maven.apache.org Received: (qmail 38867 invoked by uid 500); 10 Mar 2008 00:56:14 -0000 Mailing-List: contact continuum-users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: continuum-users@maven.apache.org Delivered-To: mailing list continuum-users@maven.apache.org Received: (qmail 38856 invoked by uid 99); 10 Mar 2008 00:56:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Mar 2008 17:56:14 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dkigelman@gmail.com designates 64.233.182.188 as permitted sender) Received: from [64.233.182.188] (HELO nf-out-0910.google.com) (64.233.182.188) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Mar 2008 00:55:37 +0000 Received: by nf-out-0910.google.com with SMTP id f5so623883nfh.26 for ; Sun, 09 Mar 2008 17:55:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=jByXftUFQNJ4VoGuk8C6oQdFe53Ze6lFC1mF/+qgM8k=; b=LN5w3u49B/Q6TfJBQA62xF/u05+q1+I0YLyEWiDteUeI+C2OjJEfs+p0Vq8Aqh5SDJu37nmIjYkR4VWPU/Qlm73y4b92GtkJY12j4TG6NfKBxz4hTztnGBNWhGLXQbXeyXtDyFaxV1hww3XOnSnIrbmzAPHz/ubuPS/GhTg3jrA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=QXYI6Vli/EJqJGRvjKbmv+THFZvwLQwI6kM3AISLGVvKo8I4SZtOtjAQf12BMPs2aYoGPi1mSTMJqQiI89XpvBHMxJ2vkKdWAVkgK7pUqf1FN/nCOrGUuKIbRSqdOvMyaKhjzyTD+oC7GEuxHy+GI07K7IgcUs3ZcOjkbu7rGE8= Received: by 10.78.193.19 with SMTP id q19mr12238390huf.15.1205110546450; Sun, 09 Mar 2008 17:55:46 -0700 (PDT) Received: by 10.78.188.19 with HTTP; Sun, 9 Mar 2008 17:55:46 -0700 (PDT) Message-ID: <3f9aeaff0803091755gbdfc1ddgeeeb423088398e70@mail.gmail.com> Date: Sun, 9 Mar 2008 18:55:46 -0600 From: "Dan Kigelman" To: continuum-users@maven.apache.org Subject: Re: Problems configuring JNDI on tomcat (META-INF/context.xml) In-Reply-To: <3f9aeaff0803081745p70d3121ds4038b58a7e6ddec0@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_37355_13176899.1205110546436" References: <3f9aeaff0803081745p70d3121ds4038b58a7e6ddec0@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_37355_13176899.1205110546436 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I got it to work! The problem was that the context.xml had to be inside the .war. (after pasting the context.xml to META-INF, I had to `jar -cf continuum-webapp-1.1.war -C continuum-webapp-1.1 .`) The context.xml I used was: However, I also got it to work using . As far as I understand, path and docBase are ignored when they're read from META-INF. Is this really the most recommended way of setting JNDI? Putting the context.xml into META-INF and re-packaging the .war? Thank you, -- Dan On Sat, Mar 8, 2008 at 7:45 PM, Dan Kigelman wrote: > Hello! > > I was going through the installation instructions for continuum ( > http://maven.apache.org/continuum/docs/1.1/installation/tomcat.html#Defining_JNDI_Resources) > and failing for both tomcat 6.x and 5.x. > > The error message I was most often having was: " > javax.jdo.JDODataStoreException: Failed initialising database. Please > check that your database JDBC driver is accessible, and the database URL and > username/password are correct. Exception : Cannot create JDBC driver of > class '' for connect URL 'null'" > > (As I understand it, the JNDI context not being configured correctly, the > url and driver strings had no values.) > > > The configuration that finally worked for me was technique #2 for tomcat > 5.5.26: > "Creating a $CATALINA_HOME/conf/Catalina/localhost/continuum.xml > containing a element." > > > > I am still not able to get this to work using technique #1: "Creating a > $CATALINA_HOME/webapps/continuum/META-INF/context.xml containing a > element." Since this is the most recommended technique, I wanted to get > this to work, especially since I can't find a conf/Catalina/localhost for > tomcat 6. > > My context.xml file looks like this: > > docBase="continuum-webapp-1.1"> > > auth="Container" > type="javax.sql.DataSource" > username="sa" > password="" > driverClassName="org.apache.derby.jdbc.EmbeddedDriver" > url="jdbc:derby:database/users;create=true" /> > > auth="Container" > type="javax.sql.DataSource" > username="sa" > password="" > driverClassName="org.apache.derby.jdbc.EmbeddedDriver" > url="jdbc:derby:database/continuum;create=true" /> > > auth="Container" > type="javax.mail.Session" > mail.smtp.host="localhost"/> > > > > Any ideas on what I may be doing wrong? > > Much thanks, > > -- Dan > ------=_Part_37355_13176899.1205110546436--