You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@continuum.apache.org by Steven Dahlin <ap...@gmail.com> on 2010/05/18 02:02:09 UTC

failure of jdbc dirver

I am getting the following error indicating the derby database not found:

2010-05-17 16:30:00,313 [main] ERROR JPOX.RDBMS.Schema  - 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'
org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
class '' for connect URL 'null'

In trying to get Continuum 1.4.0 up and running on Tomcat 6.  I have set up
the location of the context info needed for the driver in both the
$CATALINA_HOME/conf/Catalina/localhost/continuum.xml and
$CATALINA_HOME/webapps/apache-continuum-1.4.0/META-INF/context.xml
locations.  The file is structured as follows:

<Context path="/apache-continuum-1.4.0"

docBase="${catalina.home}/apache-continuum-1.4.0/apache-continuum-1.4.0.war">
  <Resource name="jdbc/users"
            auth="Container"
            type="javax.sql.DataSource"
            username="sa"
            password=""
            driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
            url="jdbc:derby:database/users;create=true" />
  <Resource name="jdbc/continuum"
            auth="Container"
            type="javax.sql.DataSource"
            username="sa"
            password=""
            driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
            url="jdbc:derby:database/continuum;create=true" />
  <Resource name="mail/Session"
            auth="Container"
            type="javax.mail.Session"
            mail.smtp.host="localhost"/>
</Context>

The derby.jar file is in the /usr/share/lib and
/var/lib/tomcat6/webapps/apache-continuum-1.4.0/WEB-INF/lib directories.  I
have seen various sites indicating solutions but cannot get it to work.

Any suggestions?

Thanks

Re: failure of jdbc dirver

Posted by Gwen Harold Autencio <gw...@yahoo.com>.
Hi Steven, 

Have you tried to specify the absolute path of the continuum database for the url. 

url="jdbc:derby:/home/gwen/Desktop/apache-continuum-1.4.0/data/databases;create=true"


--- On Tue, 5/18/10, Steven Dahlin <ap...@gmail.com> wrote:

> From: Steven Dahlin <ap...@gmail.com>
> Subject: failure of jdbc dirver
> To: users@continuum.apache.org
> Date: Tuesday, May 18, 2010, 8:02 AM
> I am getting the following error
> indicating the derby database not found:
> 
> 2010-05-17 16:30:00,313 [main] ERROR
> JPOX.RDBMS.Schema  - 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'
> org.apache.commons.dbcp.SQLNestedException: Cannot create
> JDBC driver of
> class '' for connect URL 'null'
> 
> In trying to get Continuum 1.4.0 up and running on Tomcat
> 6.  I have set up
> the location of the context info needed for the driver in
> both the
> $CATALINA_HOME/conf/Catalina/localhost/continuum.xml and
> $CATALINA_HOME/webapps/apache-continuum-1.4.0/META-INF/context.xml
> locations.  The file is structured as follows:
> 
> <Context path="/apache-continuum-1.4.0"
> 
> docBase="${catalina.home}/apache-continuum-1.4.0/apache-continuum-1.4.0.war">
>   <Resource name="jdbc/users"
>             auth="Container"
>            
> type="javax.sql.DataSource"
>             username="sa"
>             password=""
>            
> driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
>            
> url="jdbc:derby:database/users;create=true" />
>   <Resource name="jdbc/continuum"
>             auth="Container"
>            
> type="javax.sql.DataSource"
>             username="sa"
>             password=""
>            
> driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
>            
> url="jdbc:derby:database/continuum;create=true" />
>   <Resource name="mail/Session"
>             auth="Container"
>            
> type="javax.mail.Session"
>            
> mail.smtp.host="localhost"/>
> </Context>
> 
> The derby.jar file is in the /usr/share/lib and
> /var/lib/tomcat6/webapps/apache-continuum-1.4.0/WEB-INF/lib
> directories.  I
> have seen various sites indicating solutions but cannot get
> it to work.
> 
> Any suggestions?
> 
> Thanks
>