Ant 构建因正确的类路径和数据库属性而失败

发布于 2024-08-23 07:42:20 字数 11790 浏览 3 评论 0原文

Buildfile: C:\MyJava\workspace\springapp\build.xml
build:
buildtests:
dropTables:
     [echo] DROP TABLES USING: org.hsqldb.jdbcDriver jdbc:hsqldb:hsql//localhost
      [sql] Executing commands
      [sql] 1 of 1 SQL statements executed successfully
createTables:
     [echo] CREATE TABLES USING: org.hsqldb.jdbcDriver jdbc:hsqldb:hsql//localhost
      [sql] Executing resource: C:\MyJava\workspace\springapp\db\create_products.sql
      [sql] 2 of 2 SQL statements executed successfully
loadData:
     [echo] LOAD DATA USING: org.hsqldb.jdbcDriver jdbc:hsqldb:hsql//localhost
      [sql] Executing resource: C:\MyJava\workspace\springapp\db\load_data.sql
      [sql] 3 of 3 SQL statements executed successfully
dbTests:
     [echo] dbTest ---------------------------------------
    [junit] Running springapp.domain.ProductTests
    [junit] Testsuite: springapp.domain.ProductTests
    [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0 sec
    [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0 sec
    [junit] Running springapp.repository.JdbcProductDaoTests
    [junit] Testsuite: springapp.repository.JdbcProductDaoTests
    [junit] Mar 3, 2010 4:44:46 PM org.springframework.test.AbstractSingleSpringContextTests loadContextLocations
    [junit] INFO: Loading context for locations: classpath:test-context.xml
    [junit] Mar 3, 2010 4:44:46 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
    [junit] INFO: Loading XML bean definitions from class path resource [test-context.xml]
    [junit] Mar 3, 2010 4:44:47 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
    [junit] INFO: Refreshing org.springframework.context.support.GenericApplicationContext@1e13d52: display name [org.springframework.context.support.GenericApplicationContext@1e13d52]; startup date [Wed Mar 03 16:44:47 CST 2010]; root of context hierarchy
    [junit] Mar 3, 2010 4:44:47 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
    [junit] INFO: Bean factory for application context [org.springframework.context.support.GenericApplicationContext@1e13d52]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1d86fd3
    [junit] Mar 3, 2010 4:44:47 PM org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
    [junit] INFO: Loading properties file from class path resource [jdbc.properties]
    [junit] Mar 3, 2010 4:44:47 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
    [junit] INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1d86fd3: defining beans [productDao,dataSource,propertyConfigurer,transactionManager]; root of factory hierarchy
    [junit] Mar 3, 2010 4:44:47 PM org.springframework.jdbc.datasource.DriverManagerDataSource setDriverClassName
    [junit] INFO: Loaded JDBC driver: org.hsqldb.jdbcDriver
    [junit] Tests run: 2, Failures: 0, Errors: 2, Time elapsed: 0.391 sec
    [junit] Tests run: 2, Failures: 0, Errors: 2, Time elapsed: 0.391 sec
    [junit] ------------- Standard Error -----------------
    [junit] Mar 3, 2010 4:44:46 PM org.springframework.test.AbstractSingleSpringContextTests loadContextLocations
    [junit] INFO: Loading context for locations: classpath:test-context.xml
    [junit] Mar 3, 2010 4:44:46 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
    [junit] INFO: Loading XML bean definitions from class path resource [test-context.xml]
    [junit] Mar 3, 2010 4:44:47 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
    [junit] INFO: Refreshing org.springframework.context.support.GenericApplicationContext@1e13d52: display name [org.springframework.context.support.GenericApplicationContext@1e13d52]; startup date [Wed Mar 03 16:44:47 CST 2010]; root of context hierarchy
    [junit] Mar 3, 2010 4:44:47 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
    [junit] INFO: Bean factory for application context [org.springframework.context.support.GenericApplicationContext@1e13d52]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1d86fd3
    [junit] Mar 3, 2010 4:44:47 PM org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
    [junit] INFO: Loading properties file from class path resource [jdbc.properties]
    [junit] Mar 3, 2010 4:44:47 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
    [junit] INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1d86fd3: defining beans [productDao,dataSource,propertyConfigurer,transactionManager]; root of factory hierarchy
    [junit] Mar 3, 2010 4:44:47 PM org.springframework.jdbc.datasource.DriverManagerDataSource setDriverClassName
    [junit] INFO: Loaded JDBC driver: org.hsqldb.jdbcDriver
    [junit] ------------- ---------------- ---------------
    [junit] Testcase: testGetProductList(springapp.repository.JdbcProductDaoTests): Caused an ERROR
    [junit] Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException: No suitable driver found for jdbc:hsqldb:hsql://localhost
    [junit] org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException: No suitable driver found for jdbc:hsqldb:hsql://localhost
    [junit]     at org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:238)
    [junit]     at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:377)
    [junit]     at org.springframework.test.AbstractTransactionalSpringContextTests.startNewTransaction(AbstractTransactionalSpringContextTests.java:387)
    [junit]     at org.springframework.test.AbstractTransactionalSpringContextTests.onSetUp(AbstractTransactionalSpringContextTests.java:217)
    [junit]     at org.springframework.test.AbstractSingleSpringContextTests.setUp(AbstractSingleSpringContextTests.java:101)
    [junit]     at org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.java:76)
    [junit]     at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
    [junit]     at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
    [junit]     at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
    [junit] Caused by: java.sql.SQLException: No suitable driver found for jdbc:hsqldb:hsql://localhost
    [junit]     at java.sql.DriverManager.getConnection(DriverManager.java:602)
    [junit]     at java.sql.DriverManager.getConnection(DriverManager.java:154)
    [junit]     at org.springframework.jdbc.datasource.DriverManagerDataSource.getConnectionFromDriverManager(DriverManagerDataSource.java:174)
    [junit]     at org.springframework.jdbc.datasource.DriverManagerDataSource.getConnectionFromDriver(DriverManagerDataSource.java:165)
    [junit]     at org.springframework.jdbc.datasource.AbstractDriverBasedDataSource.getConnectionFromDriver(AbstractDriverBasedDataSource.java:149)
    [junit]     at org.springframework.jdbc.datasource.AbstractDriverBasedDataSource.getConnection(AbstractDriverBasedDataSource.java:119)
    [junit]     at org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:200)
    [junit] Testcase: testSaveProduct(springapp.repository.JdbcProductDaoTests):    Caused an ERROR
    [junit] Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException: No suitable driver found for jdbc:hsqldb:hsql://localhost
    [junit] org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException: No suitable driver found for jdbc:hsqldb:hsql://localhost
    [junit]     at org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:238)
    [junit]     at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:377)
    [junit]     at org.springframework.test.AbstractTransactionalSpringContextTests.startNewTransaction(AbstractTransactionalSpringContextTests.java:387)
    [junit]     at org.springframework.test.AbstractTransactionalSpringContextTests.onSetUp(AbstractTransactionalSpringContextTests.java:217)
    [junit]     at org.springframework.test.AbstractSingleSpringContextTests.setUp(AbstractSingleSpringContextTests.java:101)
    [junit]     at org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.java:76)
    [junit]     at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
    [junit]     at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
    [junit]     at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
    [junit] Caused by: java.sql.SQLException: No suitable driver found for jdbc:hsqldb:hsql://localhost
    [junit]     at java.sql.DriverManager.getConnection(DriverManager.java:602)
    [junit]     at java.sql.DriverManager.getConnection(DriverManager.java:154)
    [junit]     at org.springframework.jdbc.datasource.DriverManagerDataSource.getConnectionFromDriverManager(DriverManagerDataSource.java:174)
    [junit]     at org.springframework.jdbc.datasource.DriverManagerDataSource.getConnectionFromDriver(DriverManagerDataSource.java:165)
    [junit]     at org.springframework.jdbc.datasource.AbstractDriverBasedDataSource.getConnectionFromDriver(AbstractDriverBasedDataSource.java:149)
    [junit]     at org.springframework.jdbc.datasource.AbstractDriverBasedDataSource.getConnection(AbstractDriverBasedDataSource.java:119)
    [junit]     at org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:200)
    [junit] Test springapp.repository.JdbcProductDaoTests FAILED
    [junit] Running springapp.service.SimpleProductManagerTests
    [junit] Testsuite: springapp.service.SimpleProductManagerTests
    [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0 sec
    [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0 sec
    [junit] Running springapp.web.InventoryControllerTests
    [junit] Testsuite: springapp.web.InventoryControllerTests
    [junit] Mar 3, 2010 4:44:47 PM springapp.web.InventoryController handleRequest
    [junit] INFO: Returning hello view with Wed Mar 03 16:44:47 CST 2010
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.031 sec
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.031 sec
    [junit] ------------- Standard Error -----------------
    [junit] Mar 3, 2010 4:44:47 PM springapp.web.InventoryController handleRequest
    [junit] INFO: Returning hello view with Wed Mar 03 16:44:47 CST 2010
    [junit] ------------- ---------------- ---------------

BUILD FAILED
C:\MyJava\workspace\springapp\build.xml:203: tests.failed=true
            ***********************************************************
            ***********************************************************
            ****  One or more tests failed!  Check the output ...  ****
            ***********************************************************
            ***********************************************************

Total time: 1 second
Buildfile: C:\MyJava\workspace\springapp\build.xml
build:
buildtests:
dropTables:
     [echo] DROP TABLES USING: org.hsqldb.jdbcDriver jdbc:hsqldb:hsql//localhost
      [sql] Executing commands
      [sql] 1 of 1 SQL statements executed successfully
createTables:
     [echo] CREATE TABLES USING: org.hsqldb.jdbcDriver jdbc:hsqldb:hsql//localhost
      [sql] Executing resource: C:\MyJava\workspace\springapp\db\create_products.sql
      [sql] 2 of 2 SQL statements executed successfully
loadData:
     [echo] LOAD DATA USING: org.hsqldb.jdbcDriver jdbc:hsqldb:hsql//localhost
      [sql] Executing resource: C:\MyJava\workspace\springapp\db\load_data.sql
      [sql] 3 of 3 SQL statements executed successfully
dbTests:
     [echo] dbTest ---------------------------------------
    [junit] Running springapp.domain.ProductTests
    [junit] Testsuite: springapp.domain.ProductTests
    [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0 sec
    [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0 sec
    [junit] Running springapp.repository.JdbcProductDaoTests
    [junit] Testsuite: springapp.repository.JdbcProductDaoTests
    [junit] Mar 3, 2010 4:44:46 PM org.springframework.test.AbstractSingleSpringContextTests loadContextLocations
    [junit] INFO: Loading context for locations: classpath:test-context.xml
    [junit] Mar 3, 2010 4:44:46 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
    [junit] INFO: Loading XML bean definitions from class path resource [test-context.xml]
    [junit] Mar 3, 2010 4:44:47 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
    [junit] INFO: Refreshing org.springframework.context.support.GenericApplicationContext@1e13d52: display name [org.springframework.context.support.GenericApplicationContext@1e13d52]; startup date [Wed Mar 03 16:44:47 CST 2010]; root of context hierarchy
    [junit] Mar 3, 2010 4:44:47 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
    [junit] INFO: Bean factory for application context [org.springframework.context.support.GenericApplicationContext@1e13d52]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1d86fd3
    [junit] Mar 3, 2010 4:44:47 PM org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
    [junit] INFO: Loading properties file from class path resource [jdbc.properties]
    [junit] Mar 3, 2010 4:44:47 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
    [junit] INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1d86fd3: defining beans [productDao,dataSource,propertyConfigurer,transactionManager]; root of factory hierarchy
    [junit] Mar 3, 2010 4:44:47 PM org.springframework.jdbc.datasource.DriverManagerDataSource setDriverClassName
    [junit] INFO: Loaded JDBC driver: org.hsqldb.jdbcDriver
    [junit] Tests run: 2, Failures: 0, Errors: 2, Time elapsed: 0.391 sec
    [junit] Tests run: 2, Failures: 0, Errors: 2, Time elapsed: 0.391 sec
    [junit] ------------- Standard Error -----------------
    [junit] Mar 3, 2010 4:44:46 PM org.springframework.test.AbstractSingleSpringContextTests loadContextLocations
    [junit] INFO: Loading context for locations: classpath:test-context.xml
    [junit] Mar 3, 2010 4:44:46 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
    [junit] INFO: Loading XML bean definitions from class path resource [test-context.xml]
    [junit] Mar 3, 2010 4:44:47 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
    [junit] INFO: Refreshing org.springframework.context.support.GenericApplicationContext@1e13d52: display name [org.springframework.context.support.GenericApplicationContext@1e13d52]; startup date [Wed Mar 03 16:44:47 CST 2010]; root of context hierarchy
    [junit] Mar 3, 2010 4:44:47 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
    [junit] INFO: Bean factory for application context [org.springframework.context.support.GenericApplicationContext@1e13d52]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1d86fd3
    [junit] Mar 3, 2010 4:44:47 PM org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
    [junit] INFO: Loading properties file from class path resource [jdbc.properties]
    [junit] Mar 3, 2010 4:44:47 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
    [junit] INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1d86fd3: defining beans [productDao,dataSource,propertyConfigurer,transactionManager]; root of factory hierarchy
    [junit] Mar 3, 2010 4:44:47 PM org.springframework.jdbc.datasource.DriverManagerDataSource setDriverClassName
    [junit] INFO: Loaded JDBC driver: org.hsqldb.jdbcDriver
    [junit] ------------- ---------------- ---------------
    [junit] Testcase: testGetProductList(springapp.repository.JdbcProductDaoTests): Caused an ERROR
    [junit] Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException: No suitable driver found for jdbc:hsqldb:hsql://localhost
    [junit] org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException: No suitable driver found for jdbc:hsqldb:hsql://localhost
    [junit]     at org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:238)
    [junit]     at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:377)
    [junit]     at org.springframework.test.AbstractTransactionalSpringContextTests.startNewTransaction(AbstractTransactionalSpringContextTests.java:387)
    [junit]     at org.springframework.test.AbstractTransactionalSpringContextTests.onSetUp(AbstractTransactionalSpringContextTests.java:217)
    [junit]     at org.springframework.test.AbstractSingleSpringContextTests.setUp(AbstractSingleSpringContextTests.java:101)
    [junit]     at org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.java:76)
    [junit]     at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
    [junit]     at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
    [junit]     at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
    [junit] Caused by: java.sql.SQLException: No suitable driver found for jdbc:hsqldb:hsql://localhost
    [junit]     at java.sql.DriverManager.getConnection(DriverManager.java:602)
    [junit]     at java.sql.DriverManager.getConnection(DriverManager.java:154)
    [junit]     at org.springframework.jdbc.datasource.DriverManagerDataSource.getConnectionFromDriverManager(DriverManagerDataSource.java:174)
    [junit]     at org.springframework.jdbc.datasource.DriverManagerDataSource.getConnectionFromDriver(DriverManagerDataSource.java:165)
    [junit]     at org.springframework.jdbc.datasource.AbstractDriverBasedDataSource.getConnectionFromDriver(AbstractDriverBasedDataSource.java:149)
    [junit]     at org.springframework.jdbc.datasource.AbstractDriverBasedDataSource.getConnection(AbstractDriverBasedDataSource.java:119)
    [junit]     at org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:200)
    [junit] Testcase: testSaveProduct(springapp.repository.JdbcProductDaoTests):    Caused an ERROR
    [junit] Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException: No suitable driver found for jdbc:hsqldb:hsql://localhost
    [junit] org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException: No suitable driver found for jdbc:hsqldb:hsql://localhost
    [junit]     at org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:238)
    [junit]     at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:377)
    [junit]     at org.springframework.test.AbstractTransactionalSpringContextTests.startNewTransaction(AbstractTransactionalSpringContextTests.java:387)
    [junit]     at org.springframework.test.AbstractTransactionalSpringContextTests.onSetUp(AbstractTransactionalSpringContextTests.java:217)
    [junit]     at org.springframework.test.AbstractSingleSpringContextTests.setUp(AbstractSingleSpringContextTests.java:101)
    [junit]     at org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.java:76)
    [junit]     at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
    [junit]     at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
    [junit]     at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
    [junit] Caused by: java.sql.SQLException: No suitable driver found for jdbc:hsqldb:hsql://localhost
    [junit]     at java.sql.DriverManager.getConnection(DriverManager.java:602)
    [junit]     at java.sql.DriverManager.getConnection(DriverManager.java:154)
    [junit]     at org.springframework.jdbc.datasource.DriverManagerDataSource.getConnectionFromDriverManager(DriverManagerDataSource.java:174)
    [junit]     at org.springframework.jdbc.datasource.DriverManagerDataSource.getConnectionFromDriver(DriverManagerDataSource.java:165)
    [junit]     at org.springframework.jdbc.datasource.AbstractDriverBasedDataSource.getConnectionFromDriver(AbstractDriverBasedDataSource.java:149)
    [junit]     at org.springframework.jdbc.datasource.AbstractDriverBasedDataSource.getConnection(AbstractDriverBasedDataSource.java:119)
    [junit]     at org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:200)
    [junit] Test springapp.repository.JdbcProductDaoTests FAILED
    [junit] Running springapp.service.SimpleProductManagerTests
    [junit] Testsuite: springapp.service.SimpleProductManagerTests
    [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0 sec
    [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0 sec
    [junit] Running springapp.web.InventoryControllerTests
    [junit] Testsuite: springapp.web.InventoryControllerTests
    [junit] Mar 3, 2010 4:44:47 PM springapp.web.InventoryController handleRequest
    [junit] INFO: Returning hello view with Wed Mar 03 16:44:47 CST 2010
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.031 sec
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.031 sec
    [junit] ------------- Standard Error -----------------
    [junit] Mar 3, 2010 4:44:47 PM springapp.web.InventoryController handleRequest
    [junit] INFO: Returning hello view with Wed Mar 03 16:44:47 CST 2010
    [junit] ------------- ---------------- ---------------

BUILD FAILED
C:\MyJava\workspace\springapp\build.xml:203: tests.failed=true
            ***********************************************************
            ***********************************************************
            ****  One or more tests failed!  Check the output ...  ****
            ***********************************************************
            ***********************************************************

Total time: 1 second

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

自我难过 2024-08-30 07:42:20

所以错误是:

Could not open JDBC Connection for transaction; 
nested exception is java.sql.SQLException: 
No suitable driver found for jdbc:hsqldb:hsql://localhost

HSQLDB 在你的类路径上吗?我猜它在 Ant 构建的早期部分被正确引用,因为这似乎有效。您的测试是否在不同的进程中生成,并且缺少类路径条目?

So the error is:

Could not open JDBC Connection for transaction; 
nested exception is java.sql.SQLException: 
No suitable driver found for jdbc:hsqldb:hsql://localhost

Is HSQLDB on your classpath ? I'm guessing its referenced correctly during the earlier part of your Ant build, since that appears to work. Are your tests being spawned off in a different process, and missing a classpath entry ?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文