Re: unit.tests fails
"lio bod" <[email protected]> Thu, 29 Mar 2007 14:06:17 +0200
| Newsgroups | gmane.comp.java.xplanner.devel |
|---|---|
| Message-ID | <[email protected]> |
Let's say half/half. I've tried to run directly the src-test\TestAllUnitTests.java through junit test through eclipse junit plugin. I've tried to run directly the build.xml unit.tests task through eclipse ant plugin. wilth the same error for both i'll do a try with the ant build completely out of eclipse soon... i'll also have a look on XPlannerProperties class thx, 2007/3/27, Jacques Morel <[email protected]>: > > XPlannerProperties is the class that handles this. > Are you running the tests inside an IDE or through the ant build? > > Jacques > > On 3/27/07, lio bod <[email protected]> wrote: > > 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 > > > > > > ------------------------------------------------------------------------- > 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