unit.tests fails
"lio bod" <[email protected]> Wed, 21 Mar 2007 17:36:40 +0100
| Newsgroups | gmane.comp.java.xplanner.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello world, Trying to run unit test from target "unit.tests" in build.xml (0.7b7branch) 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