Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure webapp Tomcat 8 configuration

I have switched from a tomcat 8 webapp of the azure marketplace to the new native webapp (configuration ui).

The Web app configuratiou ui now allows to setup a tomcat 7 or 8 directly (no need to use a custom webapp from the marketplace)

Using the marketplace tomcat, it was possible to setup tomcat config files (like Web.xml) using ftp because the bin directory was exposed: d:\home\site\wwwroot\bin\tomcatxxxx

Now, with the configuration ui, the virtual machine which embed the tomcat does not expose the bin directory: I can see from the console that the windows server has 3 versions of tomcat in the program files directory but I have no way to edit files in this directory.

Someone knows how to change tomcat configuration for the new configuration ui? I want to setup the java options and increase the xms and xmx settings plus change the default tomcat user session timeout.

Thanks

like image 649
existenz31 Avatar asked Aug 27 '15 08:08

existenz31


1 Answers

After few search, a Microsoft tech guy answered my question on Azure Forum: Setup Tomcat using web.config

More details on the web.config content and way to put it on the webapp directory: Add a Java application to Azure App Service Web Apps

Basically, the tomcat application can be setup using a web.config file. This file has to be upload on home\site\wwwroot\ by FTP or using the Kudu Azure extension (nice one).

This way works for both tomcat webapp from the marketplace AND tomcat webapp from the new configuration UI.

like image 94
existenz31 Avatar answered Oct 09 '22 06:10

existenz31