Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Index.html not available (404) on Tomcat #3133

Open
RouvenZ opened this issue Dec 11, 2023 · 1 comment
Open

Index.html not available (404) on Tomcat #3133

RouvenZ opened this issue Dec 11, 2023 · 1 comment

Comments

@RouvenZ
Copy link

RouvenZ commented Dec 11, 2023

Dear all,

sadly, we cannot get our mapfish to work properly.

Context

Describe the bug

The request for the http://localhost:8080/print/index.html fails after deployment, as does the one for http://localhost:8080/print/ folder in general.

How to reproduce

  • put the .war-file (renamed as print.war) in the webapps directory
  • start Tomcat
  • wait for full deployment
  • try to reach (given on the same machine and port 8080) http://localhost:8080/print/index.html

Actual results
The deployment works and the resulting /print/ folder contains an index.html-file. If copied to the local drive and opened there, the following shows:

index.html

However, if one tries to reach the localhost-link directly, the request for the index.html returns a 404-error.

Seemingly, it is not due to a connectivity issue of the Tomcat itself, as a deployment of the sample war works and http://localhost:8080/sample/ can be reached as expected.

Question
Is this a known issue with older versions of Tomcat (ours is a bit outdated, I know), or what could be the reason for this?

Thank you all for your support and have a nice evening!

Kind regards
Rouven

@RouvenZ
Copy link
Author

RouvenZ commented Feb 27, 2024

Update: It has to do nothing with either the Tomcat version or the mapfish version. We updated to Tomcat 10.1.19 and also tried with the older Mapfish version 3.22.0 to try and apply the solution proposed in issue 1215 (see here).

As before, the Tomcat displays the webapp in its manager pane, but http://localhost:8080/print/ comes back with a 404 error as before.

@RouvenZ RouvenZ changed the title Index.html not available (404) - possible compatibility issue? Index.html not available (404) on Tomcat Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant