How to fix tomcat issue on Azure Portal?
I developed a Java JSP web application that includes:
Servlets
JSP Pages
Models and Controllers
The web application runs successfully on a local environment with a local database.
To deploy the application on Azure, I followed the steps outlined below:
Created a Resource Group.
Configured the Web App by specifying details such as the app name, stack, and server.
Set Up the Database by providing the server name, username, and password.
Configured Networking, allowing public access by adding client addresses and IP addresses.
Enabled FTPS Authentication for secure file transfer.
Reviewed and created the Web App.
Once the Azure Web App was set up, I verified the database connection using MySQL Workbench. I created a database and uploaded the tables and data into the database.
I successfully ran the application on a local Tomcat server, and the login functionality worked as expected.
Next, I deployed the application by uploading the WAR file using FTPS credentials via FileZilla. After restarting the application on Azure, the web app ran successfully. However, when attempting to log in, the application crashed, giving a 400 error.