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:
-
Like documentation:
-
There are differences here. With
Mode: jvm
, Tomcat did not start at all. Because useMode: Java
And result:
Hope this helps you.
Regards, Aleksey.
Aleskey,
Thank you very much
The problem was the appHome setting.
Cuba creates it by default with two dots.