I use Spring <jdbc:embedded>to run integration and acceptance tests using HSQLDB. If I include the hsqldb.jarapplication class path, everything works, but moving the driver to JBoss as a module, I get the following exception:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException:
Property 'databaseType' threw exception;
nested exception is java.lang.IllegalStateException:
Driver for test database type [HSQL] is not available in the classpath
JBoss can see the driver, because I can configure the datatsource on JBoss using it, but I cannot understand why it is not in my application class path. Are jdbc drivers available only through a configured data source on Jboss, or is there something else I need to do to make it available?
blank source
share