Deploy on Linux/Centos 7

Hi, I’m rather new to all this.

I have written a small app and for the life of me do not understand the deployment guide. Is there a detailed guide somewhere explaining how to deploy to Tomcat on Centos/RHEL 7 or similar?

It is possible to get an actual WAR file?

When I try to deploy I get the following error in Tomcat management:

FAIL - Encountered exception org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/app]]

See the documentation.
Regarding WAR. Studio gives the instrument to generate WAR with the application. Such WAR could be successfully deployed with a minimum of additional setup.
For instance, for testing purposes, I often deploy applications on a brand new Tomcat (with default settings) using manager. And it works.

Under deployment settings in Studio you can define how you want your WAR files to be build.

For my use case (Tomcat on Ubuntu) I had to change the application path field to my physical installation directory, include jdbc and context.

Then in the searchbox you can find the BuildWar gradle task and execute it.

Copy the WAR files from your /build directory to the tomcat /webapp folder.

Hope this helps.

1 Like

We have updated our documentation for 6.7, adding deployment WAR to Tomcat on Ubuntu and CentOS.