10:29:26.026 WARN c.h.c.c.s.CubaClassPathXmlApplicationContext- Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name ‘cuba_web_MBeanExporter’ defined in class path resource [cuba-web-spring.xml]: Could not resolve placeholder ‘cuba.webContextName’ in value “${cuba.webContextName}.cuba:type=ConfigStorage”; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder ‘cuba.webContextName’ in value “${cuba.webContextName}.cuba:type=ConfigStorage”
10:29:26.032 ERROR c.h.c.c.s.AbstractWebAppContextLoader - Error initializing application
org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name ‘cuba_web_MBeanExporter’ defined in class path resource [cuba-web-spring.xml]: Could not resolve placeholder ‘cuba.webContextName’ in value “${cuba.webContextName}.cuba:type=ConfigStorage”; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder ‘cuba.webContextName’ in value “${cuba.webContextName}.cuba:type=ConfigStorage”
at org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:223) ~[spring-beans-4.3.23.RELEASE.jar:4.3.23.RELEASE]
at
Hi,
This property is mandatory for any CUBA application. It is usually set in web-app.properties, app.properties files of your project.
Probably you have broken chain of app.properties files and application components (appPropertiesConfig and appComponents properties) which is configured in web.xml files.
If you are using single WAR deployment, check the single-war-web.xml file.