Thanks. You saved me much time. As it turns out GF 2.1.1 can't be upgraded to JPA 2 persistence and I can't go to GF 3....
So, what is the last version of CAS to use JPA 1? I assume 3.3.5. Bryan Wooten [email protected] Work: 801.585.9323 Cell: 801.414.3593 From: Scott Battaglia [mailto:[email protected]] Sent: Wednesday, June 30, 2010 10:33 AM To: [email protected] Subject: Re: [cas-user] Yet one more 3.4.2 issue Its not you, its dependencies :-) CAS 3.4.2 uses JPA 2.0. You're using JPA1 probably, which means either the JPA 2 jars are missing or both are being included. I'm not familiar with GlassFish so I'm not sure how easy it is to control the version. Hopefully we have a GlassFish expert. I tend to use Tomcat which gives me a bit more control (at the expense of some nice features that other containers might have) On Wed, Jun 30, 2010 at 12:27 PM, Bryan Wooten <[email protected]<mailto:[email protected]>> wrote: When I login I get this error: [#|2010-06-30T10:16:29.295-0600|SEVERE|sun-appserver2.1|javax.enterprise.system.container.web|_ThreadID=29;_ThreadName=httpSSLWorkerThread-8602-0;_RequestID=926a69d4-5c96-4abb-8143-575729c38c59;|StandardWrapperValve[cas]: PWC1406: Servlet.service() for servlet cas threw exception java.lang.NoSuchMethodError: javax.persistence.Persistence.getPersistenceUtil()Ljavax/persistence/PersistenceUtil; at org.hibernate.validator.engine.resolver.JPATraversableResolver.isReachable(JPATraversableResolver.java:33) I wonder if this is related to the change I had to make to the persistence.xml file. <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" version="1.0"> I had to change version="2.0" to version="1.0" otherwise cas would not load on my Glassfish 2.1.1 server. I also notice that my cas.war is missing *persistence*.jar files that my older version of cas.war contains. Again, I assume I am doing something wrong. Thanks, Bryan Wooten [email protected]<mailto:[email protected]> Work: 801.585.9323 Cell: 801.414.3593 -- You are currently subscribed to [email protected]<mailto:[email protected]> as: [email protected]<mailto:[email protected]> To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
