geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter L. Berghold" <>
Subject Geronimo learning woes: Hibernate.
Date Wed, 02 Apr 2008 19:40:13 GMT
Hi folks,

I asked a similar question last week and I'm still scratching my head here.

In order to track down what I'm missing I created a very simple
application using Hibernate (if such exists) against a local database
defining only one table.

I've created my geronimo-web.xml file that looks like:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="">


Simple... simple...

The only JSP page does this:

 	Mytest mt = new Mytest(new Date().toString(),"A Field");
 	MytestDAO dao = new MytestDAO();;


Simple... simple...

What I'm seeing happen is the data never gets saved.  Looking at the
logs I see a variety of errors that pique my interest.

%%%% Error Creating SessionFactory %%%%
java.lang.ClassCastException: java.util.HashSet

being one and

%%%% Error Creating SessionFactory %%%%
org.hibernate.MappingException: Could not read mappings from resource:

being another and even more interesting is

Caused by: org.hibernate.DuplicateMappingException: Duplicate
class/entity mapping

What the...?

What is special about deploying Hibernate based apps under Geronimo that
web searches haven't revealed, or will Hibernate even work under Geronimo?

The HibernateSessionFactory that I'm using is pretty stock stuff that
you find on the website.  Looking at the book
"Professional Apache Geronimo" yields no mention of Hibernate at all
which is really making me begin to wonder.

Anybody got any ideas out there?


Peter L. Berghold                   Unix Professional
Peter@Berghold.Net             AIM: redcowdawg YIM: blue_cowdawg
"Those who fail to learn from history are condemned to repeat it."

View raw message