Matt,
I was having the same issue, but I fixed it buy adding the following line to the none jta
datasource you set up.
| <property name="hibernate.cache.provider_class"
value="org.hibernate.cache.HashtableCacheProvider" />
|
so your booking local source should read.
<persistence-unit name="bookingLocal"
transaction-type="RESOURCE_LOCAL">
| <properties>
| <property name="hibernate.dialect"
value="org.hibernate.dialect.HSQLDialect"/>
| <property name="hibernate.connection.driver_class"
value="org.hsqldb.jdbcDriver"/>
| <property name="hibernate.connection.username"
value="sa"/>
| <property name="hibernate.connection.password"
value=""/>
| <property name="hibernate.connection.url"
value="jdbc:hsqldb:."/>
| <property name="hibernate.max_fetch_depth"
value="3"/>
| <property name="hibernate.cache.provider_class"
value="org.hibernate.cache.HashtableCacheProvider" />
| </properties>
| </persistence-unit>
I went back and tried the original persistence-test.xml file, which I added the above line
to, this also fixed the tests. It appears the the bootstrap bean in the jboss-beans.xml
dosn't pick this up.
my persistence-test.xml now reads.
| <persistence-unit name="bookings">
| <provider>org.hibernate.ejb.HibernatePersistence</provider>
| <jta-data-source>java:/bookingsTestDatasource</jta-data-source>
| <properties>
| <property name="hibernate.hbm2ddl.auto"
value="create-drop"/>
| <property name="hibernate.show_sql" value="true"/>
| <property name="jboss.entity.manager.factory.jndi.name"
value="java:/bookingsEntityManagerFactory"/>
| <property name="hibernate.cache.provider_class"
value="org.hibernate.cache.HashtableCacheProvider" />
| </properties>
| </persistence-unit>
|
Hope that makes some sense.
Clive
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015678#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...