-->
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: ClassCastException
PostPosted: Tue Apr 05, 2005 6:43 am 
Newbie

Joined: Wed Feb 23, 2005 8:48 am
Posts: 6
Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:
2.1.8

Hello,

has anyone encountered the following situtation: after a webapp executed under Tomcat 4 has been running for a long enough time, the following ClassCastException happens:

java.lang.ClassNotFoundException: net.sf.hibernate.engine.RowSelection
at org.apache.catalina.loader.WebappClassLoader.
loadClass(WebappClassLoader.java:1329)
at org.apache.catalina.loader.WebappClassLoader.
loadClass(WebappClassLoader.java:1289)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:301)
at net.sf.hibernate.dialect.PostgreSQLDialect.
supportsLimit(PostgreSQLDialect.java:119)
at net.sf.hibernate.loader.Loader.useLimit(Loader.java:735)
at net.sf.hibernate.loader.Loader.getResultSet(Loader.java:882)
at net.sf.hibernate.loader.Loader.doQuery(Loader.java:273)
at net.sf.hibernate.loader.Loader.
doQueryAndInitializeNonLazyCollections(Loader.java:138)
at net.sf.hibernate.loader.Loader.doList(Loader.java:1063)
at net.sf.hibernate.loader.Loader.list(Loader.java:1054)
at net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:854)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1554)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1531)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1527)

hibernate2.jar defintely includes net.sf.hibernate.engine.RowSelection and hibernate2.jar is definetly in CLASSPATH of the webapp. So this more like a bug in Tomcat and/or JVM, rather than Hibernate, but I'm asking here because someone might have encountered this before? Google didn't know anything about this either, so I'm happy to receive any kind of comments regarding this issue. I'm using Sun's J2SDK 1.4.2_06 on Linux/IA-32.


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.