I'm probably not seeing the problems because my pom didn't include any hibernate stuff. I'm in the process of updating to 3.5-beta2 (beta3 is incompatible with Spring 3.0). I have most of it changed locally but haven't had a chance to finish testing so I might not get it committed until tomorrow night.
Cheers, Scott On Mon, Jan 18, 2010 at 10:10 PM, Scott Battaglia <scott.battag...@gmail.com > wrote: > Strange that I don't have those errors. I'll upgrade to Hibernate > 3.5-beta3 though. > > Cheers, > Scott > > > > On Mon, Jan 18, 2010 at 12:42 PM, Marvin Addison <marvin.addi...@gmail.com > > wrote: > >> > That problem I believe stems from a possible classpath problem. >> >> I don't think so. Compare >> http://java.sun.com/javaee/5/docs/api/javax/persistence/Persistence.html >> and >> http://java.sun.com/javaee/6/docs/api/javax/persistence/Persistence.html; >> clearly getPersistenceUtil() is missing in the 1.0 API which is what >> the cas-server-core pom declares: >> >> <dependency> >> <groupId>javax.persistence</groupId> >> <artifactId>persistence-api</artifactId> >> <version>1.0</version> >> <scope>compile</scope> >> </dependency> >> >> Yet hibernate-validator 4.0.1.GA needs the 2.0 persistence-api: >> >> <dependency> >> <groupId>org.hibernate.java-persistence</groupId> >> <artifactId>jpa-api</artifactId> >> <version>2.0.Beta-20090815</version> >> <scope>compile</scope> >> <optional>true</optional> >> </dependency> >> >> I replaced the persistence-api dependency in cas-server-core with a >> renamed version of the 2.0-beta above and after many exclusions of >> org.hibernate:ejb-persistence (which is yet another name for >> persitence-api), I got past the NoSuchMethodError and onto a new >> error: >> >> Caused by: java.lang.AbstractMethodError: >> >> org.hibernate.ejb.HibernatePersistence.getProviderUtil()Ljavax/persistence/spi/ProviderUtil; >> at javax.persistence.Persistence$1.isLoaded(Persistence.java:76) >> at >> org.hibernate.validator.engine.resolver.JPATraversableResolver.isReachable(JPATraversableResolver.java:33) >> at >> org.hibernate.validator.engine.resolver.DefaultTraversableResolver.isReachable(DefaultTraversableResolver.java:112) >> >> This is presumably because the hibernate-entitymanager version is >> 3.4.0.GA, which is _not_ compatible with persistence-api 2.0. >> >> In short it looks like the root of the problem is incompatible >> versions of hibernate-entitymanager (3.4.0.GA) and hibernate-validator >> (4.0.1.GA). I would recommend consistent versions of all hibernate >> dependencies much like we do with spring to avoid this now and going >> forward. >> >> M >> >> -- >> You are currently subscribed to cas-dev@lists.jasig.org as: >> scott.battag...@gmail.com >> To unsubscribe, change settings or access archives, see >> http://www.ja-sig.org/wiki/display/JSG/cas-dev >> > > -- You are currently subscribed to cas-dev@lists.jasig.org as: arch...@mail-archive.com To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-dev