My Web 8 Content Deployer capability is not registered with the Discovery service (error from transport logs) and I'm trying to read the registered capabilities, but getting an error. I'm using this command:
java -jar discovery-registration.jar read
Error:
2016-04-15 01:11:26,445 INFO Main - Registration tool is run with following parameters:
2016-04-15 01:11:26,461 INFO Main - Configuration file: cd_storage_conf.xml
2016-04-15 01:11:26,461 INFO Main - The Command is: read
2016-04-15 01:11:26,461 INFO RegistrationTool - Reading configuration from file: 'cd_storage_conf.xml'
2016-04-15 01:11:26,601 INFO ODataClientProvider - Creating OData client
2016-04-15 01:11:28,305 INFO ODataClientProvider - Successfully created OData client
2016-04-15 01:11:28,320 INFO ODataClientProvider - Creating token provider for OAuth enabled OData client
2016-04-15 01:11:28,508 INFO DefaultDiscoveryClient - Capability: class com.sdl.web.discovery.datalayer.model.TokenServiceCapability not found.
2016-04-15 01:11:28,508 INFO ODataClientProvider - Creating token provider using TokenServiceUrl from configuration file
Exception in thread "main" java.lang.RuntimeException: com.sdl.delivery.configuration.ConfigurationException: The TokenServiceUrl
is missing from ConfigurationRepository element
at com.sdl.web.discovery.registration.ODataClientProvider.init(ODataClientProvider.java:61)
at com.sdl.web.discovery.registration.ODataClientProvider.<init>(ODataClientProvider.java:51)
at com.sdl.web.discovery.registration.RegistrationTool.<init>(RegistrationTool.java:46)
at com.sdl.web.discovery.registration.Main.main(Main.java:35)
Caused by: com.sdl.delivery.configuration.ConfigurationException: The TokenServiceUrl is missing from ConfigurationRepository elem
ent
at com.sdl.web.discovery.registration.ODataClientProvider.createTokenProvider(ODataClientProvider.java:99)
at com.sdl.web.discovery.registration.ODataClientProvider.init(ODataClientProvider.java:58)
... 3 more
Discovery cd_storage conf:
<ConfigRepository ServiceUri="http://localhost:8082/discovery.svc"
ConnectionTimeout="40000"
CacheEnabled="true"
CacheExpirationDuration="600"
ServiceMonitorPollDuration="10"
ClientId="registration"
ClientSecret="encrypted:HzfQh9wYwAKShDxCm4DnnBnysAz9PtbDMFXMbPszSVY=">
<Roles>
<Role Name="TokenServiceCapability" Url="http://localhost:8082/token.svc"/>
</Roles>
</ConfigRepository>