I don't know which package, but chances are you have transitive dependencies that are pulled in. Take a look at your WEB-INF/lib directory and you likely will find duplicate jars. Remove and exclude them.
Also, the JDBC module should automatically pull in the hibernate jar needed. You don't need to declare it separately, unless what ships is causing issues for you. > -----Original Message----- > From: Christian Rohmann [mailto:[email protected]] > Sent: Monday, September 7, 2015 7:56 AM > To: [email protected] > Subject: Re: [cas-user] Where is persistence.xml in 4.0.x (JPA Ticket > Registry) > > Hey Misagh, > > thanks very much for the quick reply. > > > On 09/07/2015 03:21 PM, Misagh Moayyed wrote: > > You have JAR/dependency conflict. Examine your lib directory and > > remove/exclude duplicates. > > Sorry, but I don't quite understand. What package do you believe is in > conflict then? Hibernate? What would the pom.xml then need to contain in > order to get this to work? I currently have: > > --- cut --- > [...] > <dependency> > <!-- JPA (Core) --> > <groupId>org.hibernate</groupId> > <artifactId>hibernate-core</artifactId> > <version>${hibernate.core.version}</version> > <scope>runtime</scope> > </dependency> > > <dependency> > <!-- JPA (Entity Manager) --> > <groupId>org.hibernate</groupId> > <artifactId>hibernate-entitymanager</artifactId> > <version>${hibernate.core.version}</version> > <scope>runtime</scope> > </dependency> > > <dependency> > <!-- JPA (JDBC Connection Pooling) --> > <groupId>c3p0</groupId> > <artifactId>c3p0</artifactId> > <version>0.9.1.2</version> > <scope>runtime</scope> > </dependency> > > <dependency> > <!-- JPA (JDBC MySQL Connector) --> > <groupId>mysql</groupId> > <artifactId>mysql-connector-java</artifactId> > <version>5.1.36</version> > <scope>runtime</scope> > </dependency> > > <dependency> > <!-- Authentication (JDBC Backend) --> > <groupId>org.jasig.cas</groupId> > <artifactId>cas-server-support-jdbc</artifactId> > <version>${cas.version}</version> > </dependency> > [...] > --- cut --- > > > > Regards > > Christian > > -- > 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
