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.