Re: [cas-user] CAS5.3.3 Service Registry is always empty?

2018-09-07 Thread Yan Zhou
that was it!!

i changed spring.application.name without realizing it has an impact on 
property loading.

Thx so much.

Yan

On Friday, September 7, 2018 at 1:24:18 PM UTC-4, rbon wrote:
>
> Yan,
>
> Have you changed spring.application.name (should be cas by default)? See 
> https://apereo.github.io/cas/5.3.x/installation/Configuration-Server-Management.html#standalone
> In default 5.3, I do not see application.yml. Do you need it? Does 
> cas.properties load if you delete application.yml?
>
> Ray
>
> On Fri, 2018-09-07 at 07:44 -0700, Yan Zhou wrote:
>
> Thanks for the suggestion, I figured out something that is strange to me.  
> I am building cas.war and deploy to tomcat8.  
>
> I have externalized a directory containing three configuration files: 
> application.yml, log4j2.xml and cas.properties. 
>
> if I put this following in cas.properties, it does not load my service 
> definitions. 
>
> cas.serviceRegistry.json.location=file:///C:/mydir/cas5-server/etc/cas/services
>   
>   
> #
> #  
> cas.serviceRegistry.json.location=c:/mydir/cas5-server/etc/cas/services
>   // this does not work, either. 
> #
>
> but if I put this in application.yml, it does work.
>
> cas:
>   serviceRegistry:
> json:
>   location: file:///C:/mydir/cas5-server/etc/cas/services
>
>
> Why is cas.properties not loaded, but application.yml is loaded (even 
> though two files are in the same directory, specified 
> by -Dcas.standalone.configurationDirectory?
>
> Thanks,
> Yan
>
> On Thursday, September 6, 2018 at 3:28:57 PM UTC-4, Jon Hawkesworth wrote: 
>
> Hmm, is your customized cas.properties even getting loaded? 
>
> Worth checking is where you are running cas from. If you are developing 
> say on D: drive it might be looking for the cas.properties in 
> D:\etc\cas\config. 
>
> To debug, I recommend upping the log level to debug in your log4j2.xml for 
> the core cas packages. 
>
> Hope this helps, 
>
> Jon
> On 6 Sep 2018 19:26, "Yan Zhou"  wrote:
>
>
> Yes, I do have the dependency.  
>
> I also removed   cas.serviceRegistry.initFromJson   from cas.properties, 
> so that it default to false.
>
> I am still not loading any service definition.  How can I debug this in 
> CAS?
>
> Yan 
>
>
> On Thursday, September 6, 2018 at 2:19:51 PM UTC-4, David Curry wrote:
>
> Do you have this in pom.xml: 
>
> 
> org.apereo.cas
> cas-server-support-json-service-registry
> ${cas.version}
> 
>
> (you should)? 
>
> --
>
> DAVID A. CURRY, CISSP
> *DIRECTOR OF INFORMATION SECURITY*
> INFORMATION TECHNOLOGY
>
> 71 FIFTH AVE., 9TH FL., NEW YORK, NY 10003
> +1 212 229-5300 x4728 • david.cu...@newschool.edu
>
> [image: The New School]
>
>
> On Thu, Sep 6, 2018 at 2:13 PM Yan Zhou  wrote:
>
> Hello,  
>
> This is my external cas.properties, 
>
> ## windows
> cas.serviceRegistry.json.location=file:///C:/mydir/cas/services  
> cas.serviceRegistry.initFromJson=true
>
> Here is my QuestLocal-1001.json under  c:/mydir/cas/services, But I am 
> not loading any service definition.  See below for logs.
>
> {
>   "@class" : "org.apereo.cas.services.RegexRegisteredService",
>   "serviceId" : "^https?://.*",
>   "name" : "QuestLocal",
>   "id" : 1001,
>   "description" : "This service definition",
>   "evaluationOrder" : 1,
>   "attributeReleasePolicy" : {
> "@class" : "org.apereo.cas.services.ReturnAllAttributeReleasePolicy"
>},   
>   "properties" : {
> "@class" : "java.util.HashMap",
> "jwtAsServiceTicket" : {
>   "@class" : 
> "org.apereo.cas.services.DefaultRegisteredServiceProperty",
>   "values" : [ "java.util.HashSet", [ "true" ] ]
> }
>   }  
> }
>
> What am I missing?
>
> Thx!
> Yan
>
> 2018-09-06 13:47:47,711 WARN 
> [org.apereo.cas.config.CasCoreServicesConfiguration] -  used as the persistence storage for retrieving and persis
> ting service definitions. Changes that are made to service definitions 
> during runtime WILL be LOST when the web server is restarted. Ideally for 
> production, you
>  need to choose a storage option (JDBC, etc) to store and track service 
> definitions.>
> 2018-09-06 13:47:47,711 DEBUG 
> [org.apereo.cas.services.DefaultServiceRegistryExecutionPlan] - 
>  xecution plan>
> 2018-09-06 13:47:47,710 DEBUG 
> [org.apereo.cas.services.AbstractServicesManager] -  registry [InMemoryServiceRegistry] into the execution pla
> norg.apereo.cas.services.ChainingServiceRegistry@e311f93]>
> 2018-09-06 13:47:47,713 INFO 
> [org.apereo.cas.services.AbstractServicesManager] -  from [InMemoryServiceRegistry].>
> 2018-09-06 13:48:47,715 DEBUG 
> [org.apereo.cas.services.AbstractServicesManager] -  [org.apereo.cas.services.ChainingServiceRegistry@e311f9
> 3]>
>
> -- 
> - 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.
> T

Re: [cas-user] CAS5.3.3 Service Registry is always empty?

2018-09-07 Thread Ray Bon
Yan,

Have you changed spring.application.name (should be cas by default)? See 
https://apereo.github.io/cas/5.3.x/installation/Configuration-Server-Management.html#standalone
In default 5.3, I do not see application.yml. Do you need it? Does 
cas.properties load if you delete application.yml?

Ray

On Fri, 2018-09-07 at 07:44 -0700, Yan Zhou wrote:
Thanks for the suggestion, I figured out something that is strange to me.  I am 
building cas.war and deploy to tomcat8.

I have externalized a directory containing three configuration files: 
application.yml, log4j2.xml and cas.properties.

if I put this following in cas.properties, it does not load my service 
definitions.

cas.serviceRegistry.json.location=file:///C:/mydir/cas5-server/etc/cas/services
#
#  cas.serviceRegistry.json.location=c:/mydir/cas5-server/etc/cas/services  
// this does not work, either.
#

but if I put this in application.yml, it does work.

cas:
  serviceRegistry:
json:
  location: file:///C:/mydir/cas5-server/etc/cas/services


Why is cas.properties not loaded, but application.yml is loaded (even though 
two files are in the same directory, specified by 
-Dcas.standalone.configurationDirectory?

Thanks,
Yan

On Thursday, September 6, 2018 at 3:28:57 PM UTC-4, Jon Hawkesworth wrote:
Hmm, is your customized cas.properties even getting loaded?

Worth checking is where you are running cas from. If you are developing say on 
D: drive it might be looking for the cas.properties in D:\etc\cas\config.

To debug, I recommend upping the log level to debug in your log4j2.xml for the 
core cas packages.

Hope this helps,

Jon
On 6 Sep 2018 19:26, "Yan Zhou" > wrote:

Yes, I do have the dependency.

I also removed   cas.serviceRegistry.initFromJson   from cas.properties, so 
that it default to false.

I am still not loading any service definition.  How can I debug this in CAS?

Yan


On Thursday, September 6, 2018 at 2:19:51 PM UTC-4, David Curry wrote:
Do you have this in pom.xml:


org.apereo.cas
cas-server-support-json-service-registry
${cas.version}


(you should)?


--

DAVID A. CURRY, CISSP
DIRECTOR OF INFORMATION SECURITY
INFORMATION TECHNOLOGY

71 FIFTH AVE., 9TH FL., NEW YORK, NY 10003
+1 212 229-5300 x4728 • david.cu...@newschool.edu

[The New School]


On Thu, Sep 6, 2018 at 2:13 PM Yan Zhou  wrote:
Hello,

This is my external cas.properties,

## windows
cas.serviceRegistry.json.location=file:///C:/mydir/cas/services
cas.serviceRegistry.initFromJson=true

Here is my QuestLocal-1001.json under  c:/mydir/cas/services, But I am not 
loading any service definition.  See below for logs.

{
  "@class" : "org.apereo.cas.services.RegexRegisteredService",
  "serviceId" : "^https?://.*",
  "name" : "QuestLocal",
  "id" : 1001,
  "description" : "This service definition",
  "evaluationOrder" : 1,
  "attributeReleasePolicy" : {
"@class" : "org.apereo.cas.services.ReturnAllAttributeReleasePolicy"
   },
  "properties" : {
"@class" : "java.util.HashMap",
"jwtAsServiceTicket" : {
  "@class" : "org.apereo.cas.services.DefaultRegisteredServiceProperty",
  "values" : [ "java.util.HashSet", [ "true" ] ]
}
  }
}

What am I missing?

Thx!
Yan

2018-09-06 13:47:47,711 WARN 
[org.apereo.cas.config.CasCoreServicesConfiguration] - 
2018-09-06 13:47:47,711 DEBUG 
[org.apereo.cas.services.DefaultServiceRegistryExecutionPlan] - 
2018-09-06 13:47:47,710 DEBUG [org.apereo.cas.services.AbstractServicesManager] 
- 
2018-09-06 13:47:47,713 INFO [org.apereo.cas.services.AbstractServicesManager] 
- 
2018-09-06 13:48:47,715 DEBUG [org.apereo.cas.services.AbstractServicesManager] 
- 

--
- 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+u...@apereo.org.

To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/905510e3-9497-4029-8df2-e025291026d7%40apereo.org.



--
- 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+u...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/021e8dbe-5d1c-4b11-ae65-bec30fe39fef%40apereo.org

Re: [cas-user] CAS5.3.3 Service Registry is always empty?

2018-09-07 Thread Yan Zhou
Thanks for the suggestion, I figured out something that is strange to me.  
I am building cas.war and deploy to tomcat8. 

I have externalized a directory containing three configuration files: 
application.yml, log4j2.xml and cas.properties. 

if I put this following in cas.properties, it does not load my service 
definitions. 

cas.serviceRegistry.json.location=file:///C:/mydir/cas5-server/etc/cas/services 
 
  
#
#  cas.serviceRegistry.json.location=c:/mydir/cas5-server/etc/cas/services  
// this does not work, either. 
#

but if I put this in application.yml, it does work.

cas:
  serviceRegistry:
json:
  location: file:///C:/mydir/cas5-server/etc/cas/services


Why is cas.properties not loaded, but application.yml is loaded (even 
though two files are in the same directory, specified 
by -Dcas.standalone.configurationDirectory?

Thanks,
Yan

On Thursday, September 6, 2018 at 3:28:57 PM UTC-4, Jon Hawkesworth wrote:
>
> Hmm, is your customized cas.properties even getting loaded? 
>
> Worth checking is where you are running cas from. If you are developing 
> say on D: drive it might be looking for the cas.properties in 
> D:\etc\cas\config. 
>
> To debug, I recommend upping the log level to debug in your log4j2.xml for 
> the core cas packages. 
>
> Hope this helps, 
>
> Jon
> On 6 Sep 2018 19:26, "Yan Zhou" > wrote:
>
>
> Yes, I do have the dependency. 
>
> I also removed   cas.serviceRegistry.initFromJson   from cas.properties, 
> so that it default to false.
>
> I am still not loading any service definition.  How can I debug this in 
> CAS?
>
> Yan
>
>
> On Thursday, September 6, 2018 at 2:19:51 PM UTC-4, David Curry wrote:
>
>> Do you have this in pom.xml:
>>
>> 
>> org.apereo.cas
>> cas-server-support-json-service-registry
>> ${cas.version}
>> 
>>
>> (you should)? 
>>
>> --
>>
>> DAVID A. CURRY, CISSP
>> *DIRECTOR OF INFORMATION SECURITY*
>> INFORMATION TECHNOLOGY
>>
>> 71 FIFTH AVE., 9TH FL., NEW YORK, NY 10003
>> +1 212 229-5300 x4728 • david.cu...@newschool.edu
>>
>> [image: The New School]
>>
>>
>> On Thu, Sep 6, 2018 at 2:13 PM Yan Zhou  wrote:
>>
>>> Hello, 
>>>
>>> This is my external cas.properties, 
>>>
>>> ## windows
>>> cas.serviceRegistry.json.location=file:///C:/mydir/cas/services  
>>> cas.serviceRegistry.initFromJson=true
>>>
>>> Here is my QuestLocal-1001.json under  c:/mydir/cas/services, But I 
>>> am not loading any service definition.  See below for logs.
>>>
>>> {
>>>   "@class" : "org.apereo.cas.services.RegexRegisteredService",
>>>   "serviceId" : "^https?://.*",
>>>   "name" : "QuestLocal",
>>>   "id" : 1001,
>>>   "description" : "This service definition",
>>>   "evaluationOrder" : 1,
>>>   "attributeReleasePolicy" : {
>>> "@class" : "org.apereo.cas.services.ReturnAllAttributeReleasePolicy"
>>>},   
>>>   "properties" : {
>>> "@class" : "java.util.HashMap",
>>> "jwtAsServiceTicket" : {
>>>   "@class" : 
>>> "org.apereo.cas.services.DefaultRegisteredServiceProperty",
>>>   "values" : [ "java.util.HashSet", [ "true" ] ]
>>> }
>>>   }  
>>> }
>>>
>>> What am I missing?
>>>
>>> Thx!
>>> Yan
>>>
>>> 2018-09-06 13:47:47,711 WARN 
>>> [org.apereo.cas.config.CasCoreServicesConfiguration] - >> used as the persistence storage for retrieving and persis
>>> ting service definitions. Changes that are made to service definitions 
>>> during runtime WILL be LOST when the web server is restarted. Ideally for 
>>> production, you
>>>  need to choose a storage option (JDBC, etc) to store and track service 
>>> definitions.>
>>> 2018-09-06 13:47:47,711 DEBUG 
>>> [org.apereo.cas.services.DefaultServiceRegistryExecutionPlan] - 
>>> >> xecution plan>
>>> 2018-09-06 13:47:47,710 DEBUG 
>>> [org.apereo.cas.services.AbstractServicesManager] - >> registry [InMemoryServiceRegistry] into the execution pla
>>> norg.apereo.cas.services.ChainingServiceRegistry@e311f93]>
>>> 2018-09-06 13:47:47,713 INFO 
>>> [org.apereo.cas.services.AbstractServicesManager] - >> from [InMemoryServiceRegistry].>
>>> 2018-09-06 13:48:47,715 DEBUG 
>>> [org.apereo.cas.services.AbstractServicesManager] - >> [org.apereo.cas.services.ChainingServiceRegistry@e311f9
>>> 3]>
>>>
>>> -- 
>>> - 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+u...@apereo.org.
>>>
>>> To view this discussion on the web visit 
>>> https://groups.google.com/a/apereo.org/d/msgid/cas-user/905510e3-9497-4029-8df2-e025291026d7%40apereo.org
>>>  
>>> 
>>> .
>>>
>> -- 
> - Website: https://

Re: [cas-user] CAS5.3.3 Service Registry is always empty?

2018-09-06 Thread Jon Hawkesworth
Hmm, is your customized cas.properties even getting loaded?

Worth checking is where you are running cas from. If you are developing say
on D: drive it might be looking for the cas.properties in
D:\etc\cas\config.

To debug, I recommend upping the log level to debug in your log4j2.xml for
the core cas packages.

Hope this helps,

Jon
On 6 Sep 2018 19:26, "Yan Zhou"  wrote:


Yes, I do have the dependency.

I also removed   cas.serviceRegistry.initFromJson   from cas.properties, so
that it default to false.

I am still not loading any service definition.  How can I debug this in CAS?

Yan


On Thursday, September 6, 2018 at 2:19:51 PM UTC-4, David Curry wrote:

> Do you have this in pom.xml:
>
> 
> org.apereo.cas
> cas-server-support-json-service-registry
> ${cas.version}
> 
>
> (you should)?
>
> --
>
> DAVID A. CURRY, CISSP
> *DIRECTOR OF INFORMATION SECURITY*
> INFORMATION TECHNOLOGY
>
> 71 FIFTH AVE., 9TH FL., NEW YORK, NY 10003
> +1 212 229-5300 x4728 • david.cu...@newschool.edu
>
> [image: The New School]
>
>
> On Thu, Sep 6, 2018 at 2:13 PM Yan Zhou  wrote:
>
>> Hello,
>>
>> This is my external cas.properties,
>>
>> ## windows
>> cas.serviceRegistry.json.location=file:///C:/mydir/cas/services
>> cas.serviceRegistry.initFromJson=true
>>
>> Here is my QuestLocal-1001.json under  c:/mydir/cas/services, But I
>> am not loading any service definition.  See below for logs.
>>
>> {
>>   "@class" : "org.apereo.cas.services.RegexRegisteredService",
>>   "serviceId" : "^https?://.*",
>>   "name" : "QuestLocal",
>>   "id" : 1001,
>>   "description" : "This service definition",
>>   "evaluationOrder" : 1,
>>   "attributeReleasePolicy" : {
>> "@class" : "org.apereo.cas.services.ReturnAllAttributeReleasePolicy"
>>},
>>   "properties" : {
>> "@class" : "java.util.HashMap",
>> "jwtAsServiceTicket" : {
>>   "@class" :
>> "org.apereo.cas.services.DefaultRegisteredServiceProperty",
>>   "values" : [ "java.util.HashSet", [ "true" ] ]
>> }
>>   }
>> }
>>
>> What am I missing?
>>
>> Thx!
>> Yan
>>
>> 2018-09-06 13:47:47,711 WARN
>> [org.apereo.cas.config.CasCoreServicesConfiguration] - > used as the persistence storage for retrieving and persis
>> ting service definitions. Changes that are made to service definitions
>> during runtime WILL be LOST when the web server is restarted. Ideally for
>> production, you
>>  need to choose a storage option (JDBC, etc) to store and track service
>> definitions.>
>> 2018-09-06 13:47:47,711 DEBUG
>> [org.apereo.cas.services.DefaultServiceRegistryExecutionPlan] -
>> > xecution plan>
>> 2018-09-06 13:47:47,710 DEBUG
>> [org.apereo.cas.services.AbstractServicesManager] - > registry [InMemoryServiceRegistry] into the execution pla
>> norg.apereo.cas.services.ChainingServiceRegistry@e311f93]>
>> 2018-09-06 13:47:47,713 INFO
>> [org.apereo.cas.services.AbstractServicesManager] - > from [InMemoryServiceRegistry].>
>> 2018-09-06 13:48:47,715 DEBUG
>> [org.apereo.cas.services.AbstractServicesManager] - > [org.apereo.cas.services.ChainingServiceRegistry@e311f9
>> 3]>
>>
>> --
>> - 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+u...@apereo.org.
>>
>> To view this discussion on the web visit
>> https://groups.google.com/a/apereo.org/d/msgid/cas-user/905510e3-9497-4029-8df2-e025291026d7%40apereo.org
>> 
>> .
>>
> --
- 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/021e8dbe-5d1c-4b11-ae65-bec30fe39fef%40apereo.org

.

-- 
- 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-us

Re: [cas-user] CAS5.3.3 Service Registry is always empty?

2018-09-06 Thread Yan Zhou

Yes, I do have the dependency. 

I also removed   cas.serviceRegistry.initFromJson   from cas.properties, so 
that it default to false.

I am still not loading any service definition.  How can I debug this in CAS?

Yan

On Thursday, September 6, 2018 at 2:19:51 PM UTC-4, David Curry wrote:
>
> Do you have this in pom.xml:
>
> 
> org.apereo.cas
> cas-server-support-json-service-registry
> ${cas.version}
> 
>
> (you should)? 
>
> --
>
> DAVID A. CURRY, CISSP
> *DIRECTOR OF INFORMATION SECURITY*
> INFORMATION TECHNOLOGY
>
> 71 FIFTH AVE., 9TH FL., NEW YORK, NY 10003
> +1 212 229-5300 x4728 • david.cu...@newschool.edu 
>
> [image: The New School]
>
>
> On Thu, Sep 6, 2018 at 2:13 PM Yan Zhou > 
> wrote:
>
>> Hello, 
>>
>> This is my external cas.properties, 
>>
>> ## windows
>> cas.serviceRegistry.json.location=file:///C:/mydir/cas/services  
>> cas.serviceRegistry.initFromJson=true
>>
>> Here is my QuestLocal-1001.json under  c:/mydir/cas/services, But I 
>> am not loading any service definition.  See below for logs.
>>
>> {
>>   "@class" : "org.apereo.cas.services.RegexRegisteredService",
>>   "serviceId" : "^https?://.*",
>>   "name" : "QuestLocal",
>>   "id" : 1001,
>>   "description" : "This service definition",
>>   "evaluationOrder" : 1,
>>   "attributeReleasePolicy" : {
>> "@class" : "org.apereo.cas.services.ReturnAllAttributeReleasePolicy"
>>},   
>>   "properties" : {
>> "@class" : "java.util.HashMap",
>> "jwtAsServiceTicket" : {
>>   "@class" : 
>> "org.apereo.cas.services.DefaultRegisteredServiceProperty",
>>   "values" : [ "java.util.HashSet", [ "true" ] ]
>> }
>>   }  
>> }
>>
>> What am I missing?
>>
>> Thx!
>> Yan
>>
>> 2018-09-06 13:47:47,711 WARN 
>> [org.apereo.cas.config.CasCoreServicesConfiguration] - > used as the persistence storage for retrieving and persis
>> ting service definitions. Changes that are made to service definitions 
>> during runtime WILL be LOST when the web server is restarted. Ideally for 
>> production, you
>>  need to choose a storage option (JDBC, etc) to store and track service 
>> definitions.>
>> 2018-09-06 13:47:47,711 DEBUG 
>> [org.apereo.cas.services.DefaultServiceRegistryExecutionPlan] - 
>> > xecution plan>
>> 2018-09-06 13:47:47,710 DEBUG 
>> [org.apereo.cas.services.AbstractServicesManager] - > registry [InMemoryServiceRegistry] into the execution pla
>> norg.apereo.cas.services.ChainingServiceRegistry@e311f93]>
>> 2018-09-06 13:47:47,713 INFO 
>> [org.apereo.cas.services.AbstractServicesManager] - > from [InMemoryServiceRegistry].>
>> 2018-09-06 13:48:47,715 DEBUG 
>> [org.apereo.cas.services.AbstractServicesManager] - > [org.apereo.cas.services.ChainingServiceRegistry@e311f9
>> 3]>
>>
>> -- 
>> - 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+u...@apereo.org .
>> To view this discussion on the web visit 
>> https://groups.google.com/a/apereo.org/d/msgid/cas-user/905510e3-9497-4029-8df2-e025291026d7%40apereo.org
>>  
>> 
>> .
>>
>

-- 
- 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/021e8dbe-5d1c-4b11-ae65-bec30fe39fef%40apereo.org.


Re: [cas-user] CAS5.3.3 Service Registry is always empty?

2018-09-06 Thread David Curry
Do you have this in pom.xml:


org.apereo.cas
cas-server-support-json-service-registry
${cas.version}


(you should)?

--

DAVID A. CURRY, CISSP
*DIRECTOR OF INFORMATION SECURITY*
INFORMATION TECHNOLOGY

71 FIFTH AVE., 9TH FL., NEW YORK, NY 10003
+1 212 229-5300 x4728 • david.cu...@newschool.edu

[image: The New School]


On Thu, Sep 6, 2018 at 2:13 PM Yan Zhou  wrote:

> Hello,
>
> This is my external cas.properties,
>
> ## windows
> cas.serviceRegistry.json.location=file:///C:/mydir/cas/services
> cas.serviceRegistry.initFromJson=true
>
> Here is my QuestLocal-1001.json under  c:/mydir/cas/services, But I am
> not loading any service definition.  See below for logs.
>
> {
>   "@class" : "org.apereo.cas.services.RegexRegisteredService",
>   "serviceId" : "^https?://.*",
>   "name" : "QuestLocal",
>   "id" : 1001,
>   "description" : "This service definition",
>   "evaluationOrder" : 1,
>   "attributeReleasePolicy" : {
> "@class" : "org.apereo.cas.services.ReturnAllAttributeReleasePolicy"
>},
>   "properties" : {
> "@class" : "java.util.HashMap",
> "jwtAsServiceTicket" : {
>   "@class" :
> "org.apereo.cas.services.DefaultRegisteredServiceProperty",
>   "values" : [ "java.util.HashSet", [ "true" ] ]
> }
>   }
> }
>
> What am I missing?
>
> Thx!
> Yan
>
> 2018-09-06 13:47:47,711 WARN
> [org.apereo.cas.config.CasCoreServicesConfiguration] -  used as the persistence storage for retrieving and persis
> ting service definitions. Changes that are made to service definitions
> during runtime WILL be LOST when the web server is restarted. Ideally for
> production, you
>  need to choose a storage option (JDBC, etc) to store and track service
> definitions.>
> 2018-09-06 13:47:47,711 DEBUG
> [org.apereo.cas.services.DefaultServiceRegistryExecutionPlan] -
>  xecution plan>
> 2018-09-06 13:47:47,710 DEBUG
> [org.apereo.cas.services.AbstractServicesManager] -  registry [InMemoryServiceRegistry] into the execution pla
> norg.apereo.cas.services.ChainingServiceRegistry@e311f93]>
> 2018-09-06 13:47:47,713 INFO
> [org.apereo.cas.services.AbstractServicesManager] -  from [InMemoryServiceRegistry].>
> 2018-09-06 13:48:47,715 DEBUG
> [org.apereo.cas.services.AbstractServicesManager] -  [org.apereo.cas.services.ChainingServiceRegistry@e311f9
> 3]>
>
> --
> - 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/905510e3-9497-4029-8df2-e025291026d7%40apereo.org
> 
> .
>

-- 
- 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/CA%2Bd9XAOD5TmvHP_vx63ZG%3Dd-4HHfVO1_YgPN1X8c05epD2Zsfw%40mail.gmail.com.


[cas-user] CAS5.3.3 Service Registry is always empty?

2018-09-06 Thread Yan Zhou
Hello, 

This is my external cas.properties, 

## windows
cas.serviceRegistry.json.location=file:///C:/mydir/cas/services  
cas.serviceRegistry.initFromJson=true

Here is my QuestLocal-1001.json under  c:/mydir/cas/services, But I am 
not loading any service definition.  See below for logs.

{
  "@class" : "org.apereo.cas.services.RegexRegisteredService",
  "serviceId" : "^https?://.*",
  "name" : "QuestLocal",
  "id" : 1001,
  "description" : "This service definition",
  "evaluationOrder" : 1,
  "attributeReleasePolicy" : {
"@class" : "org.apereo.cas.services.ReturnAllAttributeReleasePolicy"
   },   
  "properties" : {
"@class" : "java.util.HashMap",
"jwtAsServiceTicket" : {
  "@class" : "org.apereo.cas.services.DefaultRegisteredServiceProperty",
  "values" : [ "java.util.HashSet", [ "true" ] ]
}
  }  
}

What am I missing?

Thx!
Yan

2018-09-06 13:47:47,711 WARN 
[org.apereo.cas.config.CasCoreServicesConfiguration] - 
2018-09-06 13:47:47,711 DEBUG 
[org.apereo.cas.services.DefaultServiceRegistryExecutionPlan] - 

2018-09-06 13:47:47,710 DEBUG 
[org.apereo.cas.services.AbstractServicesManager] - 
2018-09-06 13:47:47,713 INFO 
[org.apereo.cas.services.AbstractServicesManager] - 
2018-09-06 13:48:47,715 DEBUG 
[org.apereo.cas.services.AbstractServicesManager] - 

-- 
- 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/905510e3-9497-4029-8df2-e025291026d7%40apereo.org.