WS-Federation with JPA Ticket Registry fatal error

44 views
Skip to first unread message

abdelrahman halawa

unread,
Jul 2, 2019, 5:17:30 AM7/2/19
to CAS Developer
Hello,
I'm using CAS v5.3.9. I want to use WS-federation feature so I added these dependencies into pom.xml

<dependency>
<groupId>org.apereo.cas</groupId>
<artifactId>cas-server-support-ws-sts</artifactId>
<version>${cas.version}</version>
</dependency>
<dependency>
<groupId>org.apereo.cas</groupId>
<artifactId>cas-server-support-ws-idp</artifactId>
<version>${cas.version}</version>
</dependency>


After that, when I was adding JPA ticket registry {

<dependency>
<groupId>org.apereo.cas</groupId>
<artifactId>cas-server-support-jpa-ticket-registry</artifactId>
<version>${cas.version}</version>
</dependency>
 }

I got this error

2019-07-02 11:54:37,058 WARN [org.apereo.cas.web.CasWebApplicationContext] - <Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'casBeanValidationPostProcessor' defined in class path resource [org/apereo/cas/config/CasCoreUtilConfiguration.class]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration': Initialization of bean failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'ticketTransactionManager' defined in class path resource [org/apereo/cas/config/JpaTicketRegistryConfiguration.class]: Unsatisfied dependency expressed through method 'ticketTransactionManager' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ticketEntityManagerFactory' defined in class path resource [org/apereo/cas/config/JpaTicketRegistryConfiguration.class]: Invocation of init method failed; nested exception is org.hibernate.AnnotationException: No identifier specified for entity: org.apereo.cas.ticket.SecurityTokenTicket>

Any help?

abdelrahman halawa

unread,
Jul 2, 2019, 8:16:49 PM7/2/19
to CAS Developer
By the way, I solved that error by myself. If anyone faced this issue I will help him for free. Just send an email to me :)
Reply all
Reply to author
Forward
0 new messages