Attempting to deploy an application ear file with the following settings in JBoss-4.2.3.GA
Jboss-app.xml
<jboss-app> <loader-repository> com.xxxx.xxx:loader=<ear-name> <loader-repository-config> java2ParentDelegation=false </loader-repository-config> </loader-repository> </jboss-app>
persistence.xml (just a snippet)
<property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect"/> <property name="hibernate.hbm2ddl.auto" value="validate"/> <property name="hibernate.show_sql" value="false"/> <property name="hibernate.format_sql" value="false"/> <property name="jboss.entity.manager.factory.jndi.name" value="java:/XXXXFactory"/>
Get log information during deployment, I don’t know why the exception is indicated in the INFO logger, can I not worry about it?
16:30:07,239 INFO [STDOUT] 16:30:07,238 INFO [SettingsFactory] JDBC driver: Oracle JDBC driver, version: 11.2.0.3.0 javax.ejb.EJBException: org.hibernate.HibernateException: unknown Oracle major version [11] at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:63) at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83) Caused by: org.hibernate.HibernateException: unknown Oracle major version [11] at org.hibernate.dialect.DialectFactory$1.getDialectClass(DialectFactory.java:135) at org.hibernate.dialect.DialectFactory.determineDialect(DialectFactory.java:65) at org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:39) at org.hibernate.cfg.SettingsFactory.determineDialect(SettingsFactory.java:426)
Note. We use JBoss-Seam-2.2.0.GA
Tried: this , this and which
Please let me know if any additional information is required, I'm trying to pull the libs available in jboss in my ear.
Update: trying
- It turned out that the application uses 2 different sessions and
There is one more hibernate.cfg.xml for another outdated code, there is no dialect in it. - So, the Oracle10g dialect for cfg.xml is added, it stopped throwing the above-mentioned unknown oracle version error, but it is excluded because it could not load 10gDialect.
- The beauty is that sessions point to the same data source.
source share