Has anybody found a solution for this? I'm on CAS 7.0.10 and I have this same issue.
On Thursday, February 29, 2024 at 9:50:23 AM UTC-6 Andrea Colajacomo wrote: > Ok, > so we are in two in searching for a solution > 😟 > > Il giorno gio 29 feb 2024 alle ore 15:52 Mitchell Bösecke < > [email protected]> ha scritto: > >> Unfortunately no I have not solved this. >> >> On Thu, Feb 29, 2024, 7:51 AM Andrea Colajacomo < >> [email protected]> wrote: >> >>> Hello Mitchell, >>> had you solved this issue? >>> >>> It seems to be still present also on version 7 >>> >>> Bye >>> Andrea >>> >>> >>> Il giorno venerdì 20 gennaio 2023 alle 07:20:56 UTC+1 Mitchell Bösecke >>> ha scritto: >>> >>>> Is there no bug tracker for this project to report bugs?? >>>> >>>> I found an incompatibility between libraries. The addition of >>>> ""org.apereo.cas:cas-server-support-pm-jdbc"" will prevent you from also >>>> adding *either *of the following: >>>> >>>> - "org.apereo.cas:cas-server-support-events-jpa" >>>> - "org.apereo.cas:cas-server-support-jpa-ticket-registry" >>>> >>>> In both cases you get a stack trace during application startup saying >>>> the following: >>>> >>>> Caused by: java.lang.ClassCastException: class >>>> org.springframework.beans.factory.support.NullBean cannot be cast to class >>>> javax.persistence.EntityManagerFactory >>>> (org.springframework.beans.factory.support.NullBean and >>>> javax.persistence.EntityManagerFactory are in unnamed module of loader >>>> org.springframework.boot.loader.LaunchedURLClassLoader @277050dc) >>>> >>>> *To replicate:* >>>> >>>> I start a new project using the CAS Initializer and version 6.6.4: >>>> >>>> mkdir cas-test >>>> cd cas-test >>>> curl -k https://casinit.herokuapp.com/starter.tgz -d casVersion=6.6.4 >>>> -d dependencies="core" | tar -xzvf - >>>> >>>> Add the following into the gradle.build file within the "dependencies" >>>> section: >>>> >>>> implementation "org.apereo.cas:cas-server-support-pm-webflow" >>>> implementation "org.apereo.cas:cas-server-support-pm-jdbc" >>>> >>>> implementation "org.apereo.cas:cas-server-support-jpa-ticket-registry" >>>> >>>> And update /etc/cas/config/cas.properties to have some basic setup: >>>> >>>> server.port=8444 >>>> >>>> cas.ticket.registry.jpa.driver-class=org.postgresql.Driver >>>> >>>> cas.ticket.registry.jpa.dialect=org.hibernate.dialect.PostgreSQL10Dialect >>>> cas.ticket.registry.jpa.enabled=true >>>> cas.ticket.registry.jpa.user=redacted >>>> cas.ticket.registry.jpa.password=redacted >>>> cas.ticket.registry.jpa.url=jdbc:postgresql://redacted >>>> >>>> Try to startup the application and it fails. If you remove the >>>> "support-pm-jdbc" module from the gradle file, it will startup just fine. >>>> >>> -- - Website: https://apereo.github.io/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- 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 [email protected]. To view this discussion visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/fe3c41ce-a498-4490-974c-8ea045f85d7an%40apereo.org.
