uaa problem

280 views
Skip to first unread message

Leandro David Cacciagioni

unread,
Dec 16, 2014, 4:35:44 PM12/16/14
to vcap...@cloudfoundry.org
Guys I'm doing a AWS deployment using postgresql as database and I'm having the following issue at the uaa:

[2014-12-16 21:32:38.640] uaa - 9485 [http-bio-8080-exec-2] .... ERROR --- DispatcherServlet: Context initialization failed
org
.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.context.support.PropertySourcesPlaceholderC
onfigurer#0'
: Cannot resolve reference to bean 'applicationProperties' while setting bean property 'properties'; nested exception is org.springframewor
k
.beans.factory.BeanCreationException: Error creating bean with name 'applicationProperties' defined in class path resource [spring/env.xml]: Cannot re
solve reference to bean
'platformProperties' while setting bean property 'propertiesArray' with key [0]; nested exception is org.springframework.beans.
factory
.NoSuchBeanDefinitionException: No bean named 'platformProperties' is defined

Any ideas from where could this come?

Thanks,
Leandro.-

Aleksey Zalesov

unread,
Dec 17, 2014, 11:50:45 AM12/17/14
to vcap...@cloudfoundry.org
Try to add this string to your uaa properties in deployment manifest:

    spring_profiles: postgres

--
Aleksey

Filip Hanik

unread,
Dec 17, 2014, 11:54:09 AM12/17/14
to vcap...@cloudfoundry.org
Leandro,
most likely there are errors at startup. The entire log would help, to find the first error


Filip


--
You received this message because you are subscribed to the Google Groups "Cloud Foundry Developers" group.
To view this discussion on the web visit https://groups.google.com/a/cloudfoundry.org/d/msgid/vcap-dev/d0bf0501-d8ce-41ea-aaa9-a6cae77d4455%40cloudfoundry.org.

To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.

Filip Hanik

unread,
Dec 17, 2014, 11:56:01 AM12/17/14
to vcap...@cloudfoundry.org
On Wed, Dec 17, 2014 at 9:50 AM, Aleksey Zalesov <aleksey...@altoros.com> wrote:
Try to add this string to your uaa properties in deployment manifest:

    spring_profiles: postgres


I don't see that property being read anywhere

The inherited value for uaa.yml spring_profiles comes from properties.uaadb.db_scheme, and the value if you use postgresql, would be 'postgresql'



 

--
You received this message because you are subscribed to the Google Groups "Cloud Foundry Developers" group.

Zalesov Aleksey

unread,
Dec 17, 2014, 12:12:45 PM12/17/14
to vcap...@cloudfoundry.org
I copied this property from working manifest, but now I see it is deprecated and can not make a point.

I have properties.uaadb.db_scheme = ‘postgresql’ in my manifest.yml,  but properties.ccdb.db_scheme = ‘postgres’. Seems confusing because they use the same db.

On 17 Dec 2014, at 19:55, Filip Hanik <fha...@pivotal.io> wrote:

On Wed, Dec 17, 2014 at 9:50 AM, Aleksey Zalesov <aleksey...@altoros.com> wrote:
Try to add this string to your uaa properties in deployment manifest:

    spring_profiles: postgres


I don't see that property being read anywhere

The inherited value for uaa.yml spring_profiles comes from properties.uaadb.db_scheme, and the value if you use postgresql, would be 'postgresql'



 
--
Aleksey



On Wednesday, December 17, 2014 12:35:44 AM UTC+3, Leandro David Cacciagioni wrote:
Guys I'm doing a AWS deployment using postgresql as database and I'm having the following issue at the uaa:
[2014-12-16 21:32:38.640] uaa - 9485 [http-bio-8080-exec-2] .... ERROR --- DispatcherServlet:Context initialization failed
org
.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.context.support.PropertySourcesPlaceholderC
onfigurer#0'
: Cannot resolve reference to bean 'applicationProperties' while setting bean property 'properties'; nested exception is org.
springframewor
k
.beans.factory.BeanCreationException: Error creating bean with name 'applicationProperties' definedin class path resource [spring/env.xml]: Cannot re
solve reference to bean 
'platformProperties' while setting bean property 'propertiesArray' with key [0]; nested exception is org.springframework.beans.

factory
.NoSuchBeanDefinitionException: No bean named 'platformProperties' is defined
Any ideas from where could this come?

Thanks,
Leandro.-

-- 
You received this message because you are subscribed to the Google Groups "Cloud Foundry Developers" group.
To view this discussion on the web visit https://groups.google.com/a/cloudfoundry.org/d/msgid/vcap-dev/4f298f17-5e37-48d8-bf60-121cf9f2c89a%40cloudfoundry.org.


To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.

-- 
You received this message because you are subscribed to a topic in the Google Groups "Cloud Foundry Developers" group.
To view this discussion on the web visit https://groups.google.com/a/cloudfoundry.org/d/msgid/vcap-dev/CANXYgqG%2BRQaz8EcviJ6K8A1nCL0yDjhPoiEPAJX1MYS-2617GA%40mail.gmail.com.

Leandro David Cacciagioni

unread,
Dec 17, 2014, 12:32:39 PM12/17/14
to vcap...@cloudfoundry.org
Fixed but changing the db_scheme to postgresql in place of postgres

Thanks,
Leandro.-
Cacciagioni, Leandro David
leandro...@gmail.com
System Administrator - Development Operations
lcacciagioni.github.io - about.me/cacciald
Cel: +549 341 3673294
--

Musket

unread,
Jan 4, 2015, 11:48:04 PM1/4/15
to vcap...@cloudfoundry.org
I am getting below problem when deploying the uaa on my private cloud foundry

Could anyone please suggest what i am doing wrong .... there is no documentation that how to change the configuration and others

Reading logs/stdout.log... OK
[CONTAINER] org.apache.coyote.http11.Http11NioProtocol         INFO    Initializing ProtocolHandler ["http-nio-61008"]
[CONTAINER] org.apache.catalina.startup.Catalina               INFO    Initialization processed in 651 ms
[CONTAINER] org.apache.catalina.core.StandardService           INFO    Starting service Catalina
[CONTAINER] org.apache.catalina.core.StandardEngine            INFO    Starting Servlet Engine: Apache Tomcat/8.0.15
[CONTAINER] org.apache.catalina.startup.HostConfig             INFO    Deploying web application directory /home/vcap/app/.java-buildpack/tomcat/webapps/ROOT
[CONTAINER] lina.core.ContainerBase.[Catalina].[localhost].[/] INFO    Initializing Spring FrameworkServlet 'spring'
[2015-01-05 04:41:32.410] cloudfoundry-identity-uaa - ???? [localhost-startStop-1] ....  INFO --- DispatcherServlet: FrameworkServlet 'spring': initialization started
[CONTAINER] n.spring.CloudProfileApplicationContextInitializer INFO    Adding 'cloud' to list of active profiles
[CONTAINER] g.CloudPropertySourceApplicationContextInitializer INFO    Adding 'cloud' PropertySource to ApplicationContext
[CONTAINER] udAutoReconfigurationApplicationContextInitializer INFO    Adding cloud service auto-reconfiguration to ApplicationContext
[CONTAINER] lina.core.ContainerBase.[Catalina].[localhost].[/] INFO    Testing for YAML resources at: ${UAA_CONFIG_URL}
[CONTAINER] lina.core.ContainerBase.[Catalina].[localhost].[/] INFO    Testing for YAML resources at: file:${UAA_CONFIG_PATH}/uaa.yml
[CONTAINER] lina.core.ContainerBase.[Catalina].[localhost].[/] INFO    Testing for YAML resources at: file:${CLOUD_FOUNDRY_CONFIG_PATH}/uaa.yml
[CONTAINER] lina.core.ContainerBase.[Catalina].[localhost].[/] INFO    Loading YAML environment properties from location: URL [file:${CLOUD_FOUNDRY_CONFIG_PATH}/uaa.yml]
[2015-01-05 04:41:32.932] cloudfoundry-identity-uaa - ???? [localhost-startStop-1] .... DEBUG --- YamlProcessor: Merging document (no matchers set){oauth={user={authorities=[openid, scim.me, cloud_controller.read, cloud_controller.write, cloud_controller_service_permissions.read, password.write, scim.userids, uaa.user, approvals.me, oauth.approvals]}}}
[2015-01-05 04:41:32.933] cloudfoundry-identity-uaa - ???? [localhost-startStop-1] .... DEBUG --- YamlProcessor: Loaded 1 document from YAML resource: class path resource [uaa.yml]
[2015-01-05 04:41:32.934] cloudfoundry-identity-uaa - ???? [localhost-startStop-1] ....  WARN --- YamlProcessor: Could not load map from URL [file:${CLOUD_FOUNDRY_CONFIG_PATH}/uaa.yml]: ${CLOUD_FOUNDRY_CONFIG_PATH}/uaa.yml (No such file or directory)
[CONTAINER] lina.core.ContainerBase.[Catalina].[localhost].[/] INFO    Loading log4j config from location: classpath:log4j.properties
[2015-01-05 04:41:32.968] cloudfoundry-identity-uaa - ???? [localhost-startStop-1] ....  INFO --- XmlWebApplicationContext: Refreshing WebApplicationContext for namespace 'spring-servlet': startup date [Mon Jan 05 04:41:32 UTC 2015]; root of context hierarchy
[2015-01-05 04:41:33.022] cloudfoundry-identity-uaa - ???? [localhost-startStop-1] ....  INFO --- XmlBeanDefinitionReader: Loading XML bean definitions from ServletContext resource [/WEB-INF/spring-servlet.xml]
[2015-01-05 04:41:33.191] cloudfoundry-identity-uaa - ???? [localhost-startStop-1] ....  INFO --- XmlBeanDefinitionReader: Loading XML bean definitions from class path resource [spring/data-source.xml]
[2015-01-05 04:41:33.256] cloudfoundry-identity-uaa - ???? [localhost-startStop-1] ....  INFO --- XmlBeanDefinitionReader: Loading XML bean definitions from class path resource [spring/env.xml]
[2015-01-05 04:41:33.332] cloudfoundry-identity-uaa - ???? [localhost-startStop-1] ....  INFO --- XmlBeanDefinitionReader: Loading XML bean definitions from ServletContext resource [/WEB-INF/spring/audit.xml]
[2015-01-05 04:41:33.381] cloudfoundry-identity-uaa - ???? [localhost-startStop-1] ....  INFO --- SpringSecurityCoreVersion: You are running with Spring Security Core 3.2.4.RELEASE
[2015-01-05 04:41:33.383] cloudfoundry-identity-uaa - ???? [localhost-startStop-1] ....  INFO --- SecurityNamespaceHandler: Spring Security 'config' module version is 3.2.4.RELEASE
[2015-01-05 04:41:33.412] cloudfoundry-identity-uaa - ???? [localhost-startStop-1] ....  INFO --- XmlBeanDefinitionReader: Loading XML bean definitions from ServletContext resource [/WEB-INF/spring/oauth-clients.xml]
[2015-01-05 04:41:33.444] cloudfoundry-identity-uaa - ???? [localhost-startStop-1] ....  INFO --- XmlBeanDefinitionReader: Loading XML bean definitions from ServletContext resource [/WEB-INF/spring/login-server-security.xml]
[2015-01-05 04:41:33.592] cloudfoundry-identity-uaa - ???? [localhost-startStop-1] ....  INFO --- XmlBeanDefinitionReader: Loading XML bean definitions from ServletContext resource [/WEB-INF/spring/oauth-endpoints.xml]
[2015-01-05 04:41:33.731] cloudfoundry-identity-uaa - ???? [localhost-startStop-1] ....  INFO --- XmlBeanDefinitionReader: Loading XML bean definitions from ServletContext resource [/WEB-INF/spring/scim-endpoints.xml]
[2015-01-05 04:41:33.815] cloudfoundry-identity-uaa - ???? [localhost-startStop-1] ....  INFO --- XmlBeanDefinitionReader: Loading XML bean definitions from ServletContext resource [/WEB-INF/spring/approvals-endpoints.xml]
[2015-01-05 04:41:33.858] cloudfoundry-identity-uaa - ???? [localhost-startStop-1] ....  INFO --- GlobalMethodSecurityBeanDefinitionParser: Expressions were enabled for method security but no SecurityExpressionHandler was configured. All hasPermision() expressions will evaluate to false.
[2015-01-05 04:41:33.869] cloudfoundry-identity-uaa - ???? [localhost-startStop-1] ....  INFO --- XmlBeanDefinitionReader: Loading XML bean definitions from ServletContext resource [/WEB-INF/spring/client-admin-endpoints.xml]
[2015-01-05 04:41:33.945] cloudfoundry-identity-uaa - ???? [localhost-startStop-1] ....  INFO --- XmlBeanDefinitionReader: Loading XML bean definitions from ServletContext resource [/WEB-INF/spring/resource-endpoints.xml]
[2015-01-05 04:41:34.003] cloudfoundry-identity-uaa - ???? [localhost-startStop-1] ....  INFO --- XmlBeanDefinitionReader: Loading XML bean definitions from ServletContext resource [/WEB-INF/spring/openid-endpoints.xml]
[2015-01-05 04:41:34.047] cloudfoundry-identity-uaa - ???? [localhost-startStop-1] ....  INFO --- XmlBeanDefinitionReader: Loading XML bean definitions from ServletContext resource [/WEB-INF/spring/password-endpoints.xml]
[2015-01-05 04:41:34.059] cloudfoundry-identity-uaa - ???? [localhost-startStop-1] ....  INFO --- XmlBeanDefinitionReader: Loading XML bean definitions from ServletContext resource [/WEB-INF/spring/codestore-endpoints.xml]
[CONTAINER] ing.DataSourceCloudServiceBeanFactoryPostProcessor INFO    Auto-reconfiguring beans of type javax.sql.DataSource
[CONTAINER] ry.reconfiguration.org.springframework.cloud.Cloud INFO    Trying connector creator type org.cloudfoundry.reconfiguration.org.springframework.cloud.service.relational.MysqlDataSourceCreator@25cd9442
[CONTAINER] ry.reconfiguration.org.springframework.cloud.Cloud INFO    Trying connector creator type org.cloudfoundry.reconfiguration.org.springframework.cloud.service.relational.PostgresqlDataSourceCreator@45a72ad5
[CONTAINER] ry.reconfiguration.org.springframework.cloud.Cloud INFO    Trying connector creator type org.cloudfoundry.reconfiguration.org.springframework.cloud.service.relational.MysqlDataSourceCreator@25cd9442
[CONTAINER] ry.reconfiguration.org.springframework.cloud.Cloud INFO    Trying connector creator type org.cloudfoundry.reconfiguration.org.springframework.cloud.service.relational.PostgresqlDataSourceCreator@45a72ad5
[CONTAINER] ry.reconfiguration.org.springframework.cloud.Cloud INFO    Trying connector creator type org.cloudfoundry.reconfiguration.org.springframework.cloud.service.relational.MysqlDataSourceCreator@25cd9442
[CONTAINER] ry.reconfiguration.org.springframework.cloud.Cloud INFO    Trying connector creator type org.cloudfoundry.reconfiguration.org.springframework.cloud.service.relational.PostgresqlDataSourceCreator@45a72ad5
[CONTAINER] k.cloud.service.relational.PooledDataSourceCreator INFO    Found Tomcat high-performance connection pool on the classpath. Using it for DataSource connection pooling.
[CONTAINER] ry.reconfiguration.org.springframework.cloud.Cloud INFO    Trying connector creator type org.cloudfoundry.reconfiguration.org.springframework.cloud.service.relational.MysqlDataSourceCreator@25cd9442
[CONTAINER] ry.reconfiguration.org.springframework.cloud.Cloud INFO    Trying connector creator type org.cloudfoundry.reconfiguration.org.springframework.cloud.service.relational.PostgresqlDataSourceCreator@45a72ad5
[CONTAINER] ry.reconfiguration.org.springframework.cloud.Cloud INFO    Trying connector creator type org.cloudfoundry.reconfiguration.org.springframework.cloud.service.relational.MysqlDataSourceCreator@25cd9442
[CONTAINER] ry.reconfiguration.org.springframework.cloud.Cloud INFO    Trying connector creator type org.cloudfoundry.reconfiguration.org.springframework.cloud.service.relational.PostgresqlDataSourceCreator@45a72ad5
[2015-01-05 04:41:34.974] cloudfoundry-identity-uaa - ???? [localhost-startStop-1] ....  WARN --- XmlWebApplicationContext: Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.context.support.PropertySourcesPlaceholderConfigurer#0': Cannot resolve reference to bean 'applicationProperties' while setting bean property 'properties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'applicationProperties' defined in class path resource [spring/env.xml]: Cannot resolve reference to bean 'platformProperties' while setting bean property 'propertiesArray' with key [0]; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'platformProperties' is defined
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:336)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1457)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1198)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)
    at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:150)
    at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:611)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
    at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:658)
    at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:624)
    at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:672)
    at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:543)
    at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:484)
    at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
    at javax.servlet.GenericServlet.init(GenericServlet.java:158)
    at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1241)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1154)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1041)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4944)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5230)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1069)
    at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1719)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'applicationProperties' defined in class path resource [spring/env.xml]: Cannot resolve reference to bean 'platformProperties' while setting bean property 'propertiesArray' with key [0]; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'platformProperties' is defined
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:336)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:359)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:157)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1457)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1198)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
    ... 35 more
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'platformProperties' is defined
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:641)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1157)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:280)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
    ... 47 more
[2015-01-05 04:41:34.990] cloudfoundry-identity-uaa - ???? [localhost-startStop-1] .... ERROR --- DispatcherServlet: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.context.support.PropertySourcesPlaceholderConfigurer#0': Cannot resolve reference to bean 'applicationProperties' while setting bean property 'properties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'applicationProperties' defined in class path resource [spring/env.xml]: Cannot resolve reference to bean 'platformProperties' while setting bean property 'propertiesArray' with key [0]; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'platformProperties' is defined
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:336)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1457)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1198)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)
    at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:150)
    at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:611)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
    at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:658)
    at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:624)
    at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:672)
    at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:543)
    at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:484)
    at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
    at javax.servlet.GenericServlet.init(GenericServlet.java:158)
    at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1241)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1154)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1041)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4944)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5230)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1069)
    at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1719)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'applicationProperties' defined in class path resource [spring/env.xml]: Cannot resolve reference to bean 'platformProperties' while setting bean property 'propertiesArray' with key [0]; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'platformProperties' is defined
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:336)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:359)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:157)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1457)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1198)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
    ... 35 more
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'platformProperties' is defined
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:641)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1157)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:280)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
    ... 47 more
[CONTAINER] lina.core.ContainerBase.[Catalina].[localhost].[/] SEVERE  StandardWrapper.Throwable
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.context.support.PropertySourcesPlaceholderConfigurer#0': Cannot resolve reference to bean 'applicationProperties' while setting bean property 'properties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'applicationProperties' defined in class path resource [spring/env.xml]: Cannot resolve reference to bean 'platformProperties' while setting bean property 'propertiesArray' with key [0]; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'platformProperties' is defined
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:336)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1457)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1198)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)
    at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:150)
    at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:611)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
    at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:658)
    at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:624)
    at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:672)
    at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:543)
    at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:484)
    at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
    at javax.servlet.GenericServlet.init(GenericServlet.java:158)
    at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1241)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1154)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1041)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4944)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5230)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1069)
    at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1719)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'applicationProperties' defined in class path resource [spring/env.xml]: Cannot resolve reference to bean 'platformProperties' while setting bean property 'propertiesArray' with key [0]; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'platformProperties' is defined
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:336)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:359)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:157)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1457)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1198)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
    ... 35 more
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'platformProperties' is defined
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:641)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1157)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:280)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
    ... 47 more

[CONTAINER] lina.core.ContainerBase.[Catalina].[localhost].[/] SEVERE  Servlet  threw load() exception
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'platformProperties' is defined
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:641)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1157)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:280)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:359)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:157)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1457)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1198)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1457)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1198)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)
    at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:150)
    at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:611)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
    at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:658)
    at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:624)
    at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:672)
    at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:543)
    at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:484)
    at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
    at javax.servlet.GenericServlet.init(GenericServlet.java:158)
    at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1241)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1154)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1041)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4944)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5230)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1069)
    at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1719)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

Filip Hanik

unread,
Jan 5, 2015, 1:27:40 PM1/5/15
to vcap...@cloudfoundry.org
No bean named 'platformProperties' is defined

This usually happens if you configure an invalid spring profile.
For example, the previous user had set it to 'postgres' rather than 'postgresql' 


Filip


--
You received this message because you are subscribed to the Google Groups "Cloud Foundry Developers" group.

Robert Gallagher

unread,
Jan 5, 2015, 1:34:43 PM1/5/15
to vcap...@cloudfoundry.org
Looks like you're running with the profile "cloud", so you're not using the default profile (or any of the database profiles) which defines the "platformProperties" bean.


Are you pushing the UAA as a CF app?

Reply all
Reply to author
Forward
0 new messages