Catalina/localhost/app_name-core.xml not used

Hi,
using Cuba 7.3 on Windows server with Tomcat 8.5x I have the issue, that the ../Catalina/localhost/app_name-core.xml is not used.

I am using a singlewar file, and have a buildTask like this:

task buildWarQa(type: CubaWarBuilding) {
    appProperties = ['cuba.automaticDatabaseUpdate' : false,
		'cuba.webPort': 8444,
        'cuba.connectionUrlList': 'https://server.com:8444/app_name-core',
		'cuba.webHostName': 'server.com',
		'cuba.webAppUrl': 'https://server.com:8444/app_name',
		'cuba.web.loginDialogDefaultUser':'',
		'cuba.web.loginDialogDefaultPassword':'',
		'cuba.web.productionMode':true,
		'cuba.web.loginDialogPoweredByLinkVisible':false,
		'cuba.trustedClientPermittedIpList' : '127.0.0.1, 10.37.*.*, 10.38.*.*'
	]
    singleWar = true
    includeContextXml = true
    includeJdbcDriver = true
    appHome = 'app_home'
    webXmlPath = 'modules/web/web/WEB-INF/single-war-web.xml'
    coreContextXmlPath = 'modules/core/web/META-INF/context_qa.xml'
}

Instead of the ../Catalina/localhost/app_name-core.xml the added modules/core/web/META-INF/context_qa.xml is used

On my local PC, using 2 .war files for web and core, it works like expected.

Any idea what’s wrong?

KR
Roland

Hi Roland,

What is the name of your WAR?
I believe the context.xml name must be .../Catalina/localhost/<war-name>.xml

Regards,
Konstantin

Hi Konstantin,
app_name.war.
On my local PC I called the file app_name-core.xml, which works fine, not having a single .war file.
On the server I tried the same, but did not work… here I have a singleWarFile with name: app_name.war and no app_name-core.war.
I was following the documentation which says, …-core.xml to be used.

Shall I just call it app_name.xml, without the -core, because it is a singleWarFile?
Will try that…

Regards
Roland

Hi Konstantin,

works now. Thx!!!
For singleWarFiles I do not have to add the -core…

Regards
Roland

1 Like