-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Strange Problem with JBoss 4.0.2
PostPosted: Sun Jun 19, 2005 2:06 pm 
Senior
Senior

Joined: Wed Aug 27, 2003 4:08 am
Posts: 178
Location: Wiesbaden, Germany
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....


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.