War deployment on different Tomcat port

I need to deploy a Cuba 7 application on a Tomcat Windows Server configured to respond on port 80.
I tried all the suggestions in the documentation and in this forum, without success.
What are the exact steps?
Thank you so much

Hello Michele!

Can you show me your buildWar task?

Hello Aleksey.
This was my last attempt.

task buildWar(type: CubaWarBuilding) {
    singleWar = false
    appProperties = ['cuba.automaticDatabaseUpdate': true,
                     'cuba.webPort': 80,
                     'cuba.connectionUrlList': 'http://localhost:80/app-core'
    appHome = '../app_home'

appHome = '../app_home'
Why do you have two dots here? There must be one.

Show me please your Tomcat’s properties, all tabs.

P.S. What version of Windows are you using?

It’s a Windows 2008 R2 server with a default Tomcat Setup.
The only change I made is http port, from 8080 to 80.

tomcat_prop.pdf (92.2 KB)

I am preparing a test environment. I will repeat your case and write to you.

All done. I repeated your case, all works fine.
Points to pay attention to:

task buildWar(type: CubaWarBuilding) {
    appHome = './app_home'
    singleWar = false
    includeContextXml = true
    includeJdbcDriver = true
    appProperties = [
        'cuba.automaticDatabaseUpdate': true,
        'cuba.webPort': 80,
        'cuba.connectionUrlList': 'http://localhost:80/app-core'

In appHome = './app_home' ONE DOT ONLY, not TWO.

Tomcat settings:

  1. Like documentation:

  2. There are differences here. With Mode: jvm, Tomcat did not start at all. Because use Mode: Java

And result:

Hope this helps you.
Regards, Aleksey.

1 Like

Thank you very much
The problem was the appHome setting.
Cuba creates it by default with two dots.