Hi all,
I was forced to switch to 4.0.2 ( due to tomcat classloader issues & incompatible jars leaking into my app ) and now I got a problem with hibernate. Named queries do not work anymore - well,
they work once and then:
java.lang.NoClassDefFoundError: java/lang/ref/Reference
at org.apache.commons.collections.ReferenceMap$Entry.getKey(Unknown Source)
at org.apache.commons.collections.ReferenceMap.getEntry(Unknown Source)
at org.apache.commons.collections.ReferenceMap.get(Unknown Source)
at net.sf.hibernate.impl.SessionFactoryImpl.get(SessionFactoryImpl.java:252)
at net.sf.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:287)
at net.sf.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:1562)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1533)
at net.sf.hibernate.impl.QueryImpl.list(QueryImpl.java:39)
at de.jtec.user.hibernate.HibernateUserManager.getUsers(HibernateUserManager.java:298)
( stacktrace culled )
I use HB 2.1.7 , and my hibernate config is:
<session-factory>
<property name="show_sql">false</property>
<property name="use_outer_join">false</property>
<property name="connection.driver_class">org.hsqldb.jdbcDriver</property>
<property name="connection.username">sa</property>
<property name="connection.password"/>
<property name="connection.datasource">java:/securityds</property>
<property name="dialect">net.sf.hibernate.dialect.HSQLDialect</property>
<property name="cache.use_query_cache">false</property>
<mapping resource="de/jtec/user/hibernate/EntityImpl.hbm.xml"/>
<mapping resource="de/jtec/user/hibernate/BaseProperty.hbm.xml"/>
</session-factory>
In my code I do nothing more than getNamedQuery() and query.list()
Obviously I'm missing something important, but what?
tia,
_________________ Got new hibernate xdoclet plugin? http://www.sourceforge.net/projects/xdoclet-plugins/
... Momentan auf der Suche nach neuen Projekt ode Festanstellung....
|