The problem was that I did not upgrade Hibernate Annotations to the
same version. When adding this to my pom.xml it works.
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-annotations</artifactId>
<version>${hibernate-core-version}</version>
</dependency>
The only thing in common with Tapestry is that I am overriding the
default version inherited from Tapestry-Hibernate, but since I have
spent some time on this, assuming Tapestry was more involved, I add the
complete additions to pom.xml in hope that it will save some time for
other Tapestry users.
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>${hibernate-core-version}</version>
<exclusions>
<exclusion>
<groupId>javax.transaction</groupId>
<artifactId>jta</artifactId>
</exclusion>
<!-- Make sure we use the version defined by tapestry-ioc. -->
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-annotations</artifactId>
<version>${hibernate-core-version}</version>
</dependency>
......
<properties>
<hibernate-core-version>3.5.5-Final</hibernate-core-version>
</properties>
Is there any reason why Tapestry 5.1 is not configured to use the latest
Hibernate version? I see that 5.2 is updated.
Thanks again Thiago!
Mats
____________________________________________
Mats Andersson
Ronsoft AB - Fridhemsvägen 8 - 372 25 Ronneby
Tel. 073-368 79 82
http://www.ronsoft.se
____________________________________________
Mats Andersson skrev 2010-08-24 18:14:
Thanks Thiago!
I have a few references to Hibernate in the project so you are
probably right about this. I will do some more tests.
Mats
____________________________________________
Mats Andersson
Ronsoft AB - Fridhemsvägen 8 - 372 25 Ronneby
Tel. 073-368 79 82
http://www.ronsoft.se
____________________________________________
Thiago H. de Paula Figueiredo skrev 2010-08-23 18:23:
On Mon, 23 Aug 2010 13:18:10 -0300, Mats Andersson
<mats.anders...@ronsoft.se> wrote:
I have encountered a problem with Hibernate 3.3.1.GA and I tried
to override the version with 3.5.5-Final in my project pom-file,
How did you do that? Have you checked if you don't have two Hibernate
versions in your app's classpath? It doesn't look as a Tapestry
problem to me from reading the stack trace.