Hi,
Have you increased the âMaximum memory poolâ value for your Tomcat server?
As described here [url=https://doc.cuba-platform.com/manual-6.2/tomcat_war_deployment.html?_ga=1.141922353.2030361064.1466500126]https://doc.cuba-platform.com/manual-6.2/tomcat_war_deployment.html[/url]?
One of the possible reason is that the Tomcat lacks of memory. But in this case the tomcat manager should show running = false state of the application.
It is very hard to guess what may be wrong. Try to find some errors in logs (the tomcat/logs directory).
Hi,
what would be an optimal value for âMaximum memory poolâ value for your Tomcat server? (sample-sales application scenario )
anyway no error has reported into tomcat logs
Hi
It is still hard to say what may be wrong without viewing any logs.
I have tried to deploy âSalesâ sample project to Tomcat on my Windows system and discovered a few possible reasons of why the application fails to start:
At first, the âbuildWarâ task could be configured improperly:
If the includeJdbcDriver and includeContextXml options are not set to true, the corresponding files should be manually put on server.
If we use HSQLDB in our project, it is better to enable that options. Also set the hsqlInProcess = true.
The following buildWar task should pass in most cases:
The second is, that the single-war-web.xml could contain mistakes.
Let me share a method of how that file could be easily generated without copying code from documentation:
open the PROJECT PROPERTIES tab of navigation panel
press the âCloud deployment settingsâ page
find the âCustom web.xml pathâ property and press the Generate button near it
As a result modules/web/web/WEB-INF/single-war-web.xml will appear in your project. It is suitable for singleWar deployment.
Also, the Tomcat could incorrectly deploy the WAR. To prevent mistakes:
stop the service
erase the app folder (if your project has the âappâ-prefix) from the tomcat/webapps directory.
make sure you have no undeployed WARs in /webapps
put the generated WAR to /webapps
start the service
When the Tomcat server starts, it should deploy the WAR and erase it after successful deployment.
If still unsuccessful, try to find some exceptions in the catalina.log.
Hi Rostislav ,
first of all thank for the response
database used for sample-sales application is SQL Server 2008 R2 on Windows Server 2012
Previously i have added this gradle task to build.gradle project file
task buildWar(type: CubaWarBuilding) {
appHome = ââŚâ
webXmlPath = âmodules/web/web/WEB-INF/single-war-web.xmlâ
appProperties = [âcuba.automaticDatabaseUpdateâ:âtrueâ]
includeJdbcDriver = true
includeContextXml = true
}
(so no hsqlInProcess proprieties used because i have SQL Server as DBMS )
single-war-web.xml used is attached on this message (take from the documentation) ⌠vaadin production is TRUE
the only differences is
a. the method used for the creation of war file , Iâve used Eclipse Jee Neon a instead of Cubo Studio features
b. increase Maximum memory pool to 6144MB
with this new scenario after accessing to the startup page i recieve the error messagge attached
(seams something related to Vaadin modules )