{"action":"created","issue":{"url":"https://api.github.com/repos/trustedanalytics/user-management/issues/1","repository_url":"https://api.github.com/repos/trustedanalytics/user-management","labels_url":"https://api.github.com/repos/trustedanalytics/user-management/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/trustedanalytics/user-management/issues/1/comments","events_url":"https://api.github.com/repos/trustedanalytics/user-management/issues/1/events","html_url":"https://github.com/trustedanalytics/user-management/issues/1","id":139208141,"number":1,"title":"While running server with default configuration, following error massage is displayed.","user":{"login":"niteshsabankar","id":10688891,"avatar_url":"https://avatars.githubusercontent.com/u/10688891?v=3","gravatar_id":"","url":"https://api.github.com/users/niteshsabankar","html_url":"https://github.com/niteshsabankar","followers_url":"https://api.github.com/users/niteshsabankar/followers","following_url":"https://api.github.com/users/niteshsabankar/following{/other_user}","gists_url":"https://api.github.com/users/niteshsabankar/gists{/gist_id}","starred_url":"https://api.github.com/users/niteshsabankar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niteshsabankar/subscriptions","organizations_url":"https://api.github.com/users/niteshsabankar/orgs","repos_url":"https://api.github.com/users/niteshsabankar/repos","events_url":"https://api.github.com/users/niteshsabankar/events{/privacy}","received_events_url":"https://api.github.com/users/niteshsabankar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-08T08:08:07Z","updated_at":"2016-03-16T13:14:39Z","closed_at":null,"body":"$ mvn spring-boot:run -Dspring.cloud.propertiesFile=spring-cloud.properties\r\n.........................\r\n...(lots of Info)...\r\n.........................\r\norg.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [org.springframework.cloud.security.oauth2.resource.OAuth2ResourceConfiguration]; nested exception is java.lang.IllegalStateException: Error processing condition on org.springframework.cloud.security.oauth2.resource.ResourceServerTokenServicesConfiguration$JwtTokenServicesConfiguration\r\n        at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:494)\r\n        at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:275)\r\n        at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:229)\r\n        at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:485)\r\n        at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:275)\r\n        at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:229)\r\n        at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:196)\r\n        at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:165)\r\n        at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:306)\r\n        at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:239)\r\n        at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:254)\r\n        at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:94)\r\n        at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:606)\r\n        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:462)\r\n        at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)\r\n        at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686)\r\n        at org.springframework.boot.SpringApplication.run(SpringApplication.java:320)\r\n        at org.springframework.boot.SpringApplication.run(SpringApplication.java:957)\r\n        at org.springframework.boot.SpringApplication.run(SpringApplication.java:946)\r\n        at org.trustedanalytics.user.Application.main(Application.java:33)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n        at java.lang.reflect.Method.invoke(Method.java:498)\r\n        at org.springframework.boot.maven.RunMojo$LaunchRunner.run(RunMojo.java:418)\r\n        at java.lang.Thread.run(Thread.java:745)\r\nCaused by: java.lang.IllegalStateException: Error processing condition on org.springframework.cloud.security.oauth2.resource.ResourceServerTokenServicesConfiguration$JwtTokenServicesConfiguration\r\n        at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:58)\r\n        at org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:102)\r\n        at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:201)\r\n        at org.springframework.context.annotation.ConfigurationClassParser.processMemberClasses(ConfigurationClassParser.java:317)\r\n        at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:246)\r\n        at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:229)\r\n        at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:485)\r\n        ... 25 common frames omitted\r\nCaused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'vcap.services.sso.credentials.tokenKey' in string value \"${vcap.services.sso.credentials.tokenKey}\"\r\n        at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:174)\r\n        at org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:126)\r\n        at org.springframework.core.env.AbstractPropertyResolver.doResolvePlaceholders(AbstractPropertyResolver.java:204)\r\n        at org.springframework.core.env.AbstractPropertyResolver.resolveRequiredPlaceholders(AbstractPropertyResolver.java:178)\r\n        at org.springframework.core.env.AbstractPropertyResolver.resolveNestedPlaceholders(AbstractPropertyResolver.java:195)\r\n        at org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:87)\r\n        at org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:60)\r\n        at org.springframework.core.env.AbstractEnvironment.getProperty(AbstractEnvironment.java:511)\r\n        at org.springframework.cloud.security.oauth2.resource.ResourceServerTokenServicesConfiguration$JwtToken.getMatchOutcome(ResourceServerTokenServicesConfiguration.java:337)\r\n        at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:45)\r\n        ... 31 common frames omitted\r\n\r\n[WARNING]\r\njava.lang.reflect.InvocationTargetException\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n        at java.lang.reflect.Method.invoke(Method.java:498)\r\n        at org.springframework.boot.maven.RunMojo$LaunchRunner.run(RunMojo.java:418)\r\n        at java.lang.Thread.run(Thread.java:745)\r\nCaused by: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [org.springframework.cloud.security.oauth2.resource.OAuth2ResourceConfiguration]; nested exception is java.lang.IllegalStateException: Error processing condition on org.springframework.cloud.security.oauth2.resource.ResourceServerTokenServicesConfiguration$JwtTokenServicesConfiguration\r\n        at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:494)\r\n        at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:275)\r\n        at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:229)\r\n        at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:485)\r\n        at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:275)\r\n        at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:229)\r\n        at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:196)\r\n        at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:165)\r\n        at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:306)\r\n        at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:239)\r\n        at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:254)\r\n        at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:94)\r\n        at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:606)\r\n        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:462)\r\n        at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)\r\n        at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686)\r\n        at org.springframework.boot.SpringApplication.run(SpringApplication.java:320)\r\n        at org.springframework.boot.SpringApplication.run(SpringApplication.java:957)\r\n        at org.springframework.boot.SpringApplication.run(SpringApplication.java:946)\r\n        at org.trustedanalytics.user.Application.main(Application.java:33)\r\n        ... 6 more\r\nCaused by: java.lang.IllegalStateException: Error processing condition on org.springframework.cloud.security.oauth2.resource.ResourceServerTokenServicesConfiguration$JwtTokenServicesConfiguration\r\n        at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:58)\r\n        at org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:102)\r\n        at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:201)\r\n        at org.springframework.context.annotation.ConfigurationClassParser.processMemberClasses(ConfigurationClassParser.java:317)\r\n        at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:246)\r\n        at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:229)\r\n        at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:485)\r\n        ... 25 more\r\nCaused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'vcap.services.sso.credentials.tokenKey' in string value \"${vcap.services.sso.credentials.tokenKey}\"\r\n        at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:174)\r\n        at org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:126)\r\n        at org.springframework.core.env.AbstractPropertyResolver.doResolvePlaceholders(AbstractPropertyResolver.java:204)\r\n        at org.springframework.core.env.AbstractPropertyResolver.resolveRequiredPlaceholders(AbstractPropertyResolver.java:178)\r\n        at org.springframework.core.env.AbstractPropertyResolver.resolveNestedPlaceholders(AbstractPropertyResolver.java:195)\r\n        at org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:87)\r\n        at org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:60)\r\n        at org.springframework.core.env.AbstractEnvironment.getProperty(AbstractEnvironment.java:511)\r\n        at org.springframework.cloud.security.oauth2.resource.ResourceServerTokenServicesConfiguration$JwtToken.getMatchOutcome(ResourceServerTokenServicesConfiguration.java:337)\r\n        at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:45)\r\n        ... 31 more\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] BUILD FAILURE\r\n[INFO] ------------------------------------------------------------------------\r\n[INFO] Total time: 10.797 s\r\n[INFO] Finished at: 2016-03-08T13:19:06+05:30\r\n[INFO] Final Memory: 30M/72M\r\n[INFO] ------------------------------------------------------------------------\r\n[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.2.3.RELEASE:run (default-cli) on project user-management: An exception occured while running. null: InvocationTargetException: Failed to process import candidates for configuration class [org.springframework.cloud.security.oauth2.resource.OAuth2ResourceConfiguration]; nested exception is java.lang.IllegalStateException: Error processing condition on org.springframework.cloud.security.oauth2.resource.ResourceServerTokenServicesConfiguration$JwtTokenServicesConfiguration: Could not resolve placeholder 'vcap.services.sso.credentials.tokenKey' in string value \"${vcap.services.sso.credentials.tokenKey}\" -> [Help 1]\r\n[ERROR]\r\n[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.\r\n[ERROR] Re-run Maven using the -X switch to enable full debug logging.\r\n[ERROR]\r\n[ERROR] For more information about the errors and possible solutions, please read the following articles:\r\n[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException\r\n"},"comment":{"url":"https://api.github.com/repos/trustedanalytics/user-management/issues/comments/197321932","html_url":"https://github.com/trustedanalytics/user-management/issues/1#issuecomment-197321932","issue_url":"https://api.github.com/repos/trustedanalytics/user-management/issues/1","id":197321932,"user":{"login":"akdajnowski","id":9006105,"avatar_url":"https://avatars.githubusercontent.com/u/9006105?v=3","gravatar_id":"","url":"https://api.github.com/users/akdajnowski","html_url":"https://github.com/akdajnowski","followers_url":"https://api.github.com/users/akdajnowski/followers","following_url":"https://api.github.com/users/akdajnowski/following{/other_user}","gists_url":"https://api.github.com/users/akdajnowski/gists{/gist_id}","starred_url":"https://api.github.com/users/akdajnowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akdajnowski/subscriptions","organizations_url":"https://api.github.com/users/akdajnowski/orgs","repos_url":"https://api.github.com/users/akdajnowski/repos","events_url":"https://api.github.com/users/akdajnowski/events{/privacy}","received_events_url":"https://api.github.com/users/akdajnowski/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T13:14:39Z","updated_at":"2016-03-16T13:14:39Z","body":"Hi, \r\nas the error message states, you lack the vcap.services.sso.credentials.tokenKey variable value. You can provide it, among others, by exporting the VCAP_SERVICES_SSO_CREDENTIALS_TOKENKEY environment variable set to the address of your token key URI, e.g. \r\n```bash \r\n$ export VCAP_SERVICES_SSO_CREDENTIALS_TOKENKEY='http://uaa.<your-domain>/token_key'\r\n$ mvn spring-boot:run -Dspring.cloud.propertiesFile=spring-cloud.properties\r\n```\r\nPlease refer to the project's README for further details "}}