You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Lorenzo Cerini <lo...@info-era.com> on 2007/09/11 09:37:47 UTC
tomcat and hibernate
Hello everybody,
i was to set up a tomcat webapp connected to a database through hibernate, but haven't been able.
First my environment: opensuse 10.0 + hibernate 3.2 +jdk1.6 +tomcat 5.5.
I created a HibernateListener and a HibernateUtil to manage sessions.
I registered the Listener int the web.xml.
When i restart tomcat, the system loads the Listener which try to get session from HibernateUtil,
which fails with:
java.lang.NoClassDefFoundError: org/hibernate/cfg/Configuration
But hibernate3.jar is in $WEBAPP/WEB-INF/lib folder, and it is not loaded. Other jars in this lib
folder are used with no trouble by this application.
If i put hibernate3.jar in $JDK/jre/lib/ext suddently everithing works fine.
Any Idea?
thanks in advance
--
Lorenzo Cerini
Info.era srl Trieste
tel. +39040.67027360
fax. +39040.67027363
----------------------------------------------
Le informazioni trasmesse sono da intendere solo per la persona e/o
societa' a cui sono indirizzate, possono contenere documenti confidenziali
e/o materiale riservato. Qualsiasi modifica, inoltro, diffusione o altro
utilizzo, relativo alle informazioni trasmesse, da parte di persone e/o
societa', diversi dai destinatari indicati, e' proibito ai sensi della legge
196/2003. Se Lei ha ricevuto questa mail per errore, per favore contatti
il mittente e cancelli queste informazioni da ogni computer.
----------------------------------------------
Please consider the environment before printing this mail note
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org