CAS 5.0.0 gradle overlay and JPA service registry

213 views
Skip to first unread message

mrcasa

unread,
Dec 7, 2016, 11:14:15 PM12/7/16
to CAS Community
Hello!

I'm trying to get JPA service registry working using gradle overlay.  Here is the exception I run into when I run cas.war -

2016-12-07 02:06:49,062 ERROR [org.springframework.boot.context.embedded.tomcat.TomcatStarter] - <Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name 'casLoggingConfiguration': Unsatisfied dependency expressed through field 'ticketRegistrySupport'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'casCoreTicketsConfiguration': Unsatisfied dependency expressed through field 'httpClient'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'casCoreAuthenticationConfiguration': Unsatisfied dependency expressed through field 'servicesManager'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'servicesManager' defined in class path resource [org/apereo/cas/config/CasCoreServicesConfiguration.class]: Unsatisfied dependency expressed through method 'servicesManager' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jpaServiceRegistryDao': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'inspektrAuditEntityManagerFactory' defined in class path resource [org/apereo/cas/audit/config/CasSupportJdbcAuditConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: jpaInspektrAuditContext] Unable to build Hibernate SessionFactory>
2016-12-07 02:06:49,125 WARN [org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext] - <Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat>

My build.gradle dependencies looks like -

dependencies {
    compile "org.apereo.cas:cas-server-webapp:${project.'cas.version'}@war"
    compile "org.apereo.cas:cas-server-support-jdbc:${project.'cas.version'}"
    compile "org.apereo.cas:cas-server-support-jdbc-drivers:${project.'cas.version'}"
    compile "org.apereo.cas:cas-server-support-audit-jdbc:${project.'cas.version'}"
    compile "org.apereo.cas:cas-server-support-jpa-service-registry:${project.'cas.version'}"
    compile "org.apereo.cas:cas-server-support-jpa-util:${project.'cas.version'}"
    compile "org.apereo.cas:cas-server-support-jpa-ticket-registry:${project.'cas.version'}"
}

Any help with figuring out the JPA dependencies will be much appreciated.

Thank you!

Roannel Fernandez

unread,
Mar 21, 2017, 3:55:14 PM3/21/17
to CAS Community
Reply all
Reply to author
Forward
0 new messages