views:

231

answers:

1

I want to run EJB3Unit-Test in my oracle 10g Database. Therefore I use this configuration (ejb3unit.properties).

### The ejb3unit configuration file ###
ejb3unit.inMemoryTest=false
ejb3unit.connection.url=jdbc:oracle:thin:....:1432:SID
ejb3unit.connection.driver_class=oracle.jdbc.OracleDriver
ejb3unit.connection.username=user
ejb3unit.connection.password=name
ejb3unit.dialect=org.hibernate.dialect.Oracle10gDialect
ejb3unit.show_sql=true

## values are create-drop, create, update ##
ejb3unit.schema.update=create

I will result in the following error:

Caused by: HibernateException: cannot instantiate dialect class
...
org.hibernate.dialect.Oracle10gDialect cannot be cast to org.ejb3unit.hibernate.dialect.Dialect

How can ejb3unit-testing be done using oracle db?

A: 

Did you ever find a solution to this issue?

Thanks

Steve
update your ejb3unit to the max and try ... but on my machine for some reason this dialect classes always were in conflict.. i switched back to in memory tests and mocked all oracle-specific sql-statements.
justastefan
I had some more trials recently. I guess there's a simple compile error stuck in the ejb3unit classes. But since there have been no updates on ejb3unit lately... in the end I switched to openejb. Openejb is very useful dealing with multiple datasources and annotions or mapping files ... no probs there..
justastefan