Hello
I was following the JPA Ticket Registiry tutorial on
https://jasig.github.io/cas/4.0.x/installation/JPA-Ticket-Registry.html
but had problems getting Spring+Hibernate to work.
In CAS 3.x there was as persistence.xml that was inherited from
cas-server-webapp when using the Maven overlay s
This is now handled by the packagesToScan setting. See this file for reference:
https://github.com/Jasig/cas/blob/master/cas-server-webapp-support/src/test/resources/jpaTestApplicationContext.xml
I have updated the docs.
CAS should work with all versions of Hibernate. What error did you get?
-
Hallo
When using packagesToScan, it works fine without persistence.xml!
Did you only update the dev/4.1 or also the 4.0 documentation? Because it's not
yet there and 4.0 seems to be the current stable.
BTW, the 4.1 docs also add org.jasig.cas.adaptors.jdbc to the list which is not
in your examp
Hibernate 4.3 is the first version to implement the JPA 2.1 spec. And it's thus
expecting the JPA 2.1 API jar on the classpath, not the JPA 2.0 API jar. Some
“dependencies dance” might be required here (Maven excludes, etc.)
Cheers,
D.
> On May 27, 2015, at 10:02 AM, Christian Brunotte wrote:
Hey cas-users, Dimitry,
On Wednesday, May 27, 2015 at 4:18:54 PM UTC+2, Dmitriy Kopylenko wrote:
>
> Hibernate 4.3 is the first version to implement the JPA 2.1 spec. And it's
> thus expecting the JPA 2.1 API jar on the classpath, not the JPA 2.0 API
> jar. Some “dependencies dance” might be req
-user] Where is persistence.xml in 4.0.x (JPA Ticket
Registry)
Hey cas-users, Dimitry,
On Wednesday, May 27, 2015 at 4:18:54 PM UTC+2, Dmitriy Kopylenko wrote:
Hibernate 4.3 is the first version to implement the JPA 2.1 spec. And it's
thus expecting the JPA 2.1 API jar on the classpath, no
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 w
x27;t need to declare it separately, unless what ships is
causing issues for you.
> -Original Message-
> From: Christian Rohmann [mailto:crohm...@netcologne.de]
> Sent: Monday, September 7, 2015 7:56 AM
> To: cas-user@lists.jasig.org
> Subject: Re: [cas-user] Where is pers
Christian,
You can run the dependency command which will give you a tree of all
packages and versions being used in your build. Look for duplicates with
different versions.
>From the root of your project:
mvn dependency:tree
Ray
On 2015-09-07 07:56, Christian Rohmann wrote:
> Hey Misagh,
>
> tha
Hello again,
On 09/08/2015 05:54 PM, Ray Bon wrote:
> mvn dependency:tree
--- cut ---
[INFO] xxx.xx:myprojectname:war:123.123-SNAPSHOT
[INFO] +- org.jasig.cas:cas-server-webapp:war:4.1.0-RC2:runtime
[INFO] +- c3p0:c3p0:jar:0.9.1.2:runtime
[INFO] +- mysql:mysql-connector-java:jar:5.1.36:runtim
ts.jasig.org
> Subject: Re: [cas-user] Where is persistence.xml in 4.0.x (JPA Ticket
> Registry)
>
> Hello again,
>
> On 09/08/2015 05:54 PM, Ray Bon wrote:
> > mvn dependency:tree
>
> --- cut ---
> [INFO] xxx.xx:myprojectname:war:123.123-SNAPSHOT
> [INFO]
------
??:"Dmitriy Kopylenko";
:2015??5??27??(??) 10:18
??:"cas-user";
:Re: [cas-user] Where is persistence.xml in 4.0.x (JPA Ticket Registry)
Hibernate 4.3 is the first version to implement the JPA 2.1 spec. And it'
12 matches
Mail list logo