It typically means one of two things. 1. You have an incorrect version of JPA on the classpath (we require JPA2) 2. You have both JPA1 and JPA2 on the classpath, and its just completely confused.
I would recommend checking your HIbernate dependencies. This is the most often cause of the issue. On Sun, Aug 29, 2010 at 4:11 PM, petefox <[email protected]> wrote: > Ok! Thank you for the information! > > I'm always getting the following error and thought this is because my > costum binder: > > 2010-08-29 21:22:57,681 ERROR > [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/cas].[cas]] > - <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) > at > org.hibernate.validator.engine.resolver.DefaultTraversableResolver.isReachable(DefaultTraversableResolver.java:112) > > ... > at > org.jasig.cas.web.init.SafeDispatcherServlet.service_aroundBody2(SafeDispatcherServlet.java:115) > at > org.jasig.cas.web.init.SafeDispatcherServlet.service_aroundBody3$advice(SafeDispatcherServlet.java:44) > at > org.jasig.cas.web.init.SafeDispatcherServlet.service(SafeDispatcherServlet.java:1) > > Hmm but where's then my problem? Must I adjust the following entries in > deployerConfigContext.xml? > > <bean id="serviceRegistryDao" > class="org.jasig.cas.services.JpaServiceRegistryDaoImpl" > p:entityManagerFactory-ref="entityManagerFactory" /> > > <!-- This is the EntityManagerFactory configuration for Hibernate > --> > <bean id="entityManagerFactory" > class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"> > <property name="dataSource" ref="dataSource"/> > <property name="jpaVendorAdapter"> > <bean > class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"> > <property name="generateDdl" value="true"/> > <property name="showSql" value="true" /> > </bean> > </property> > <property name="jpaProperties"> > <props> > <prop > key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop> > <prop > key="hibernate.hbm2ddl.auto">update</prop> > </props> > </property> > </bean> > > <bean id="transactionManager" > class="org.springframework.orm.jpa.JpaTransactionManager"> > <property name="entityManagerFactory" > ref="entityManagerFactory"/> > </bean> > > <tx:annotation-driven transaction-manager="transactionManager"/> > > Thank you for your help! > -- > 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
