Hi
I'm using combination of jetty+oracle 10g XE+hibernate.
In jetty.xml I have
Code:
<New id="HibernateDS" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>jdbc/HibernateDS</Arg>
<Arg>
<New class="oracle.jdbc.pool.OracleConnectionPoolDataSource">
<Set name="URL">jdbc:oracle:thin:@localhost:1521:XE</Set>
<Set name="User">username</Set>
<Set name="Password">password</Set>
</New>
</Arg>
</New>
and in Hibernate.cfg.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.cglib.use_reflection_optimizer">true</property>
<property name="hibernate.hbm2ddl.auto">update</property>
<property name="connection.datasource">jdbc/HibernateDS</property>
<property name="dialect">org.hibernate.dialect.Oracle10gDialect</property>
*mappings*
</session-factory>
</hibernate-configuration>
With these I get this error
Code:
org.hibernate.HibernateException(could not instantiate QueryTranslatorFactory: org.hibernate.hql.ast.ASTQueryTranslatorFactory) at org.hibernate.cfg.SettingsFactory.createQueryTranslatorFactory(SettingsFactory.java:391)
Do you have any ideas why I get this error? I try to find anything related to this from google but found nothing useful.
Weirdest thing is that it was working beginning of this week and suddenly stopped working.
Edit.
So the reason for this was that there were duplicated jar files of hibernate in classpath.