cuba.webContextName property error

Hello,
I have two wars (app, app-core). When I start the tomcat with them, an error occurs. In the app, the property cuba.webContextName is app, and in the app-core the property cuba.webContextName is app-core. What could be the problem?

Thanks

2018-12-11 10:55:25.753 ERROR [localhost-startStop-1] com.haulmont.cuba.core.sys.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.18.RELEASE.jar:4.3.18.RELEASE]
	at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:222) ~[spring-beans-4.3.18.RELEASE.jar:4.3.18.RELEASE]
	at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:86) ~[spring-beans-4.3.18.RELEASE.jar:4.3.18.RELEASE]
	at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:283) ~[spring-context-4.3.18.RELEASE.jar:4.3.18.RELEASE]
	at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:163) ~[spring-context-4.3.18.RELEASE.jar:4.3.18.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:687) ~[spring-context-4.3.18.RELEASE.jar:4.3.18.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:525) ~[spring-context-4.3.18.RELEASE.jar:4.3.18.RELEASE]
	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) ~[spring-context-4.3.18.RELEASE.jar:4.3.18.RELEASE]

forget it, it is already solved

Just for reference:

When we switched from single-war to multi-war, file app.war was missing app-web-0.1-SNAPSHOT.jar in WEB-INF/lib. It was solved by including it manually until we find out why is it missing.

1 Like

Hi,
Could you share what is the problem? We have same error here.

Hi,

Could you please share the solution how it resolved?
I have similar issue am facing.

Thanks