tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lothar Krenzien <lkrenz...@web.de>
Subject Re: Cannot create JDBC driver of class '' for connect URL 'null'
Date Tue, 31 Jan 2006 17:48:39 GMT

Hi Petr,

thanks for your answer. That exactly the configuration I have. But after playing around I
got success by removing the line

    <Listener className="org.apache.catalina.core.AprLifecycleListener" />

from the server.xml. Even I don't know what it means ;)


Lothar

"Tomcat Users List" <users@tomcat.apache.org> schrieb am 31.01.06 17:55:29:
> 
> Hi,
> 
> I have the following problem. I found this solution:
> 
> There is in the server.xml the Resource tag describing your
> dataSource. Move this element into the Context element in the same xml
> file (at the bottom).
> 
> See http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html
> section `JDBC Data Sources'
> 
> Have a nice time
> 
> PETR
> 
> 
> On 1/31/06, Lothar Krenzien <lkrenzien@web.de> wrote:
> > Hi,
> >
> > after switching from Tomcat 5.5.9 to 5.5.15  I get the following error :
> >
> > 2006-01-31 16:43:38,130 [INFO ] QueryLogger.*** error.
> > org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class
'' for connect URL 'null'
> >         at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780)
> >         at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
> >         at org.objectstyle.cayenne.access.DataNode.performQueries(DataNode.java:298)
> >         at org.objectstyle.cayenne.access.DataDomainQueryAction.performQuery(DataDomainQueryAction.java:107)
> >         at org.objectstyle.cayenne.access.DataDomain.performQueries(DataDomain.java:643)
> >         at org.objectstyle.cayenne.access.DataContext.performQueries(DataContext.java:1100)
> >         at org.objectstyle.cayenne.access.Transaction.performQueries(Transaction.java:207)
> >         at org.objectstyle.cayenne.access.DataContext.performQueries(DataContext.java:1068)
> >         at org.objectstyle.cayenne.access.DataContextSelectAction.performQuery(DataContextSelectAction.java:173)
> >         at org.objectstyle.cayenne.access.DataContextSelectAction.performQuery(DataContextSelectAction.java:93)
> >         at org.objectstyle.cayenne.access.DataContext.performQuery(DataContext.java:1200)
> >         at com.sr2.back.dao.UserDAO.getAvailableRoles(UserDAO.java:168)
> > ....
> >
> > Caused by: java.sql.SQLException: No suitable driver
> >         at java.sql.DriverManager.getDriver(DriverManager.java:243)
> >         at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:773)
> >
> >
> > I have copied the settings and libraries from the old (5.5.9) tomcat version to
the new (5.5.19) version. And there *is* a JDBC driver in the commons/lib dir. I'm not sure
is it a tomcat or cayenne problem. So I will post it here and in the cayenne group. But database
access seems to work anyway. Additionally I've just realized that the UserDAO class is called
twice and the second one it works without an error. So where does Tomcat searching for the
database ? Normally it should passed per JNDI.
> >
> >
> > Thanks, Lothar
> > ______________________________________________________________________
> > XXL-Speicher, PC-Virenschutz, Spartarife & mehr: Nur im WEB.DE Club!
> > Jetzt gratis testen! http://freemail.web.de/home/landingpad/?mc=021130
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
> 


______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message