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
- Gitter Chatroom: https://gitter.im/apereo/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 on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/9d67d267-9433-4554-b4fe-e8a0c1c2c425n%40apereo.org.

Reply via email to