-->
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: Maven Hibernate libraries incompatible with Java 5?
PostPosted: Fri Mar 23, 2012 7:43 am 
Newbie

Joined: Tue Jun 07, 2005 7:37 am
Posts: 1
Hi,

I am trying to build a project with Maven 3 that is to be deployed on a Glassfish 2 Server running on Java 5. When deploying I get an Exception that seems to indicate that the Hibernate library that Maven included is incompatible with Java 5:

LifecycleException:
java.lang.UnsupportedClassVersionError: PWC1651: Class org.hibernate.ejb.HibernatePersistence has unsupported major or minor version numbers, which are greater
than those found in the Java Runtime Environment version 1.5.0_22

Here is how I added the dependency to Maven:

<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>4.1.1.Final</version>
</dependency>

I also included the JBoss Maven repository at https://repository.jboss.org/nexus/cont ... lic-jboss/

Any idea how I could get around that issue?

Thanks!


Björn


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.