I've been trying to get CAS Management v6 to work with a JPA service 
registry, but it seems to be stuck with JSON.  After logging into the 
management Web app, I never see any of the services that are stored in my 
database.  The only services that display are ones created via the 
management web app and are stored in JSON at /etc/cas/services-repo/  I've 
tried committing too, but the new service never makes it to the database.

Now, I can see services being pulled from my database in the log file.  
Here's a snippet below:
-----------
2019-08-22 13:23:55,847 DEBUG 
[org.apereo.cas.services.AbstractServicesManager] - <Adding registered 
service [^(https|imaps)://.*]>
2019-08-22 13:23:55,847 DEBUG 
[org.apereo.cas.services.AbstractServicesManager] - <Adding registered 
service [^https://www.apereo.org]>
2019-08-22 13:23:55,847 DEBUG 
[org.apereo.cas.services.AbstractServicesManager] - <Adding registered 
service [^http://localhost:8080.*]>
2019-08-22 13:23:55,848 INFO 
[org.apereo.cas.services.AbstractServicesManager] - <Loaded [7] service(s) 
from [JpaServiceRegistry].>
------------

I've added the JPA service registry to build.gradle and I do not have the 
JSON service registry in build.gradle.

The management.properties file looks like this:
----------------------------------
cas.server.name=https://poc-sso.scad.edu
cas.server.prefix=${cas.server.name}/cas-web

server.port=8444
server.ssl.keyStore=file:/etc/cas/newks
server.ssl.keyStorePassword=CHANGEME
server.ssl.keyPassword=CHANGEME

mgmt.serverName=https://ppoc-sso.scad.edu:8444
mgmt.adminRoles[0]=ROLE_ADMIN
mgmt.userPropertiesFile=file:/etc/cas/config/users.json

logging.config=file:/etc/cas/config/log4j2-management.xml

cas.authn.attributeRepository.stub.attributes.UDC_IDENTIFIER:   
UDC_IDENTIFIER
cas.authn.attributeRepository.stub.attributes.cn:               cn
cas.authn.attributeRepository.stub.attributes.displayName:      displayName
cas.authn.attributeRepository.stub.attributes.mail:             mail
cas.authn.attributeRepository.stub.attributes.sn:               sn
cas.authn.attributeRepository.stub.attributes.uid:              uid

#cas.serviceRegistry.initFromJson=false
cas.serviceRegistry.jpa.user=${CAS_DB_USER}
cas.serviceRegistry.jpa.password=${CAS_DB_PW}
cas.serviceRegistry.jpa.driverClass=oracle.jdbc.OracleDriver
cas.serviceRegistry.jpa.url=${CAS_DB_URL}
cas.serviceRegistry.jpa.dialect=org.hibernate.dialect.Oracle12cDialect

cas.serviceRegistry.jpa.healthQuery=select 1 from dual
cas.serviceRegistry.jpa.ddlAuto=update
cas.serviceRegistry.jpa.pool.minSize=3
cas.serviceRegistry.jpa.pool.maxSize=20
cas.serviceRegistry.jpa.pool.maxWait=2000
cas.serviceRegistry.jpa.pool.timeoutMillis=1000
----------------------------------

Any help would be appreciated.

Thanks in advance,
Mike

-- 
- 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 cas-user+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/02a3d5b8-2df5-47da-abb5-f4dbff2b8188%40apereo.org.

Reply via email to