R
R
Romka212020-04-13 12:10:04
Java
Romka21, 2020-04-13 12:10:04

Upload war file to TomCat, 404 error when trying to access?

Hello everyone, I've run into this problem.
A simple Springboot application, essentially a REST service with an index page
. Two servers, one on Windows 10, the other on Cent OS.
On both TomCat servers, Java is the same version.
When loading a war file on Windows, everything is fine, the application is loaded onto the server, starts, displays an index.html page when it tries to access it. Everything works as if from a local server, I can also connect normally from other devices on my home network.
And on Linux, the war file loads, starts without errors, but when trying to access TomCat gives an error 404.
TomCat is working on Linux, web applications written on the Vaadin framework work fine on it

. Please help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
perl_demon, 2020-04-13
@perl_demon

If the war file is loaded via the web (from the manager application), then most likely it is the limitation on the maximum size of the war file, which is 50MB by default. You can change it in this file: webapps/manager/WEB-INF/web.xml in the . Well, or deploy by copying war to the webapps folder.

O
Orkhan, 2020-04-13
Hasanly @azerphoenix

Have you tried restarting the application after uploading war'nick?
Also be sure to check the server logs.
Have you ruled out contextPath related errors? For example, if you have a link to the template added by hardcode href="/contact", then if context is available, it may not work. And accordingly, for example, through thymeleaf it is necessary to add both th:href="@{/contact}"
Reasons for 404 can be different ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question