Re: unit.tests fails
"lio bod" <[email protected]> Tue, 27 Mar 2007 09:19:50 +0200
| Newsgroups | gmane.comp.java.xplanner.devel |
|---|---|
| Message-ID | <[email protected]> |
Sorry to answer so late but too many things to do ... Fyi, i use mysql 4.1. My driver is properly located in lib/webapp/jdbc-driver So, i've just traced my classpath while executing junit tests and i see the right mysql-connector-java-3.1.12-bin.jar. I guess, junit is not reading my xplanner-custom.properties nor in \resources neither in \build\classes. In order to save me some time, can you point me where this should be done in the code so i can check it by myself. rgds, lio. I won't have much time to spend on xplanner for the next fortnight so forgive my irregular inervention on this mailing list 2007/3/22, Jacques Morel <[email protected]>: > > Did you configure your xplanner-custom.properties? > What database are you using? > You should have copied your driver jar under lib/webapp/jdbc-driver > Verify the driver class you set in xplanner-custom.properties in your > driver jar. > > Jacques > > On 3/21/07, lio bod <[email protected]> wrote: > > Hello world, > > > > Trying to run unit test from target "unit.tests" in build.xml (0.7b7 > > branch) and it fails. > > I've tried many things to put the driver in the classpath in my IDE > > (eclipse) and each time i got the same result. > > I guess it's more like a configuration problem but i don't know where... > > > > Any help to fix this (or fix my understanding of this mystery) is > welcome, > > > > Thx, > > > > here is the stack trace : > > > > > > unit.tests: > > > > [junit] Running TestAllUnitTests > > > > [junit] Tests run: 574, Failures: 1, Errors: 0, Time elapsed: 23,844 sec > > > > [junit] java.lang.RuntimeException : java.sql.SQLException: No suitable > > driver > > > > [junit] at > > com.technoetic.xplanner.db.hibernate.HibernateHelper.getConnection( > > HibernateHelper.java:146) > > > > [junit] at > > com.technoetic.xplanner.db.hsqldb.HsqlServer.sendShutdownCommand( > > HsqlServer.java:254) > > > > [junit] at > > com.technoetic.xplanner.db.hsqldb.HsqlServer.stop(HsqlServer.java > > :242) > > > > [junit] at > > com.technoetic.xplanner.db.hsqldb.HsqlServer.shutdown(HsqlServer.java > > :236) > > > > [junit] at > > com.technoetic.xplanner.db.hsqldb.HsqlServer$1.run(HsqlServer.java > > :76) > > > > [junit] Caused by: java.sql.SQLException : No suitable driver > > > > [junit] at > > java.sql.DriverManager.getConnection(DriverManager.java:532 > > ) > > > > [junit] at > > java.sql.DriverManager.getConnection(DriverManager.java:140 > > ) > > > > [junit] at > > org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection( > > DriverManagerConnectionFactory.java:51) > > > > [junit] at > > org.apache.commons.dbcp.PoolableConnectionFactory.makeObject( > PoolableConnectionFactory.java > > :290) > > > > [junit] at > > org.apache.commons.pool.impl.GenericObjectPool.borrowObject( > GenericObjectPool.java > > :771) > > > > [junit] at > > org.apache.commons.dbcp.PoolingDataSource.getConnection( > PoolingDataSource.java > > :95) > > > > [junit] at > > net.sf.hibernate.connection.DBCPConnectionProvider.getConnection( > > DBCPConnectionProvider.java:41) > > > > [junit] at > > com.technoetic.xplanner.db.hibernate.HibernateHelper.getConnection( > HibernateHelper.java > > :144) > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > > opinions on IT & business topics through brief surveys-and earn cash > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > Xplanner-devel mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/xplanner-devel > > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Xplanner-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/xplanner-devel > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Xplanner-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xplanner-devel