I was building a new Grails application with 2.0.4 (it's been a couple of years since I've done this) and I keep getting an error running an Integration test for a service class. It's telling me that the OracleDriver class is not found. I've added ojdbc14.jar to the /lib directory, added it to the Libraries in the build path, and have the following DataSource.groovy
I've create an integration test for the service, and when (in STS) I run tests with test-app, I get the classic "Cannot load JDBC driver class 'oracle.jdbc.OracleDriver" error. I expect this when I don't have the jar in the /lib directory, or haven't added that to the build path. I've done all this before, and either something has changed, or I'm missing something easy.Code:dataSource { pooled = true driverClassName = "oracle.jdbc.OracleDriver" dialect = "org.hibernate.dialect.Oracle10gDialect" } hibernate { cache.use_second_level_cache = true cache.use_query_cache = false cache.region.factory_class = 'net.sf.ehcache.hibernate.EhCacheRegionFactory' } // environment specific settings environments { development { dataSource { url = "jdbc:oracle:thin:@devserver:1528:dev" userName = "USER" password = "****" } } test { dataSource { url = "jdbc:oracle:thin:@testserver:1528:ist" userName = "USER" password = "****" } } ... more }
Here's my versions:
Grails 2.0.4
SpringSource Toolsuite 2.9.2
Groovy 1.8.6
Oracle 11g
Thanks for your responses!
Brian


Reply With Quote
