--
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
Visit this group at http://groups.google.com/a/apereo.org/group/cas-user/.
On Dec 2, 2015, at 11:28 AM, frank...@tcg.com wrote:I did not use overlay approach. I checked out 4.1.x the code and built it. I guess that by default Service Registry is JSON based and Ticket registry is JPA based. So I am not sure why there is multiple transaction manager.I do not think it is a code issue because if I switch to use DefaultTicketRegistry and everything works fine.I will try the overlay approach now and will report back what happened.thanksFrank
First, you want to make sure you are using 4.1.2. No snapshots. Second, if you can post your overlay somewhere that we can locally try to connect to a database, that would be helpful. Otherwise, there is no troubleshooting this in an easy way.
From: frank...@tcg.com [mailto:frank...@tcg.com]
Sent: Wednesday, December 2, 2015 8:49 PM
To: jasig-cas-user <jasig-c...@googlegroups.com>
Cc: cas-...@apereo.org; mmoa...@unicon.net
Subject: Re: [cas-user] 4.1.2: JpaTicketRegistry: No transactional EntityManager available
You are right. The default is JSON service registry + InMemory ticket registry.
I changed InMemory ticket registry to JPA registry because my goal was to make CAS work with JpaRegistry. I got the error "No transactional entitymanager available". It looked like at lease two other users (Robert and Tai) had the exact same error as me.
The version that I had the problem was 4.1.12-SNAPSHOT.
However, I did try the overlay approach tonight based on this github code (https://github.com/leleuj/cas-overlay-demo)
CAS version was 4.1.0 after cloning the repo and switch to 4.1.x branch. The database that I used was MySQL 5.7.9.
I got a different error "no transaction is in progress] from registry". (see below)
In both overlay and non-overlay approach, TGT was created and persisted successfully in the database. But the trouble was with ST. Any suggestions will be appreciated.
WHO: casuser+password
WHAT: TGT-**********************************************wt6cjyxwng-cas01.example.org
ACTION: TICKET_GRANTING_TICKET_CREATED
APPLICATION: CAS
WHEN: Wed Dec 02 22:27:20 EST 2015
CLIENT IP ADDRESS: 192.168.1.15
SERVER IP ADDRESS: 192.168.1.15
=============================================================
>
2015-12-02 22:27:20,993 ERROR [org.jasig.cas.ticket.registry.JpaTicketRegistry] - <Error getting ticket [TGT-**********************************************wt6cjyxwng-cas01.example.org, javax.persistence.TransactionRequiredException: no transaction is in progress] from registry.>
2015-12-02 22:27:20,994 ERROR [org.jasig.cas.ticket.registry.JpaTicketRegistry] - <Error getting ticket [TGT-**********************************************wt6cjyxwng-cas01.example.org, javax.persistence.TransactionRequiredException: no transaction is in progress] from registry.>
This turned out to be a bug with the entity manager prematurely closing. This will be fixed in 4.1.3; You can try to test this with 4.1.3 SNAPSHOT for the time being until it’s released in a couple of weeks.
From: cas-...@apereo.org [mailto:cas-...@apereo.org] On Behalf Of Jean L.
Sent: Sunday, December 6, 2015 3:18 PM
To: jasig-cas-user <jasig-c...@googlegroups.com>
Cc: cas-...@apereo.org
Subject: Re: [cas-user] 4.1.2: JpaTicketRegistry: No transactional EntityManager available
Hi,
Patched. Much appreciated.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.