jhipster / generator-jhipster

JHipster is a development platform to quickly generate, develop, & deploy modern web applications & microservice architectures.
https://www.jhipster.tech
Apache License 2.0
21.5k stars 4.02k forks source link

.war error 404 in tomcat 9 #24758

Closed Johann771 closed 5 months ago

Johann771 commented 9 months ago
Overview of the issue

I got 404 when i deploy my .war package in tomcat-9.0.84, since the 6.7.1 --> 8.1.0 upgrade

Motivation for or Use Case

it worked on 6.7.1

Reproduce the error

Generate a monolithic app with jhipster 8.1.0

Related issues

No

Suggest a Fix
JHipster Version(s)

8.1.0

JHipster configuration

WARNING! Since JHipster v8, the jhipster command will not use the locally installed generator-jhipster. If you want to execute the locally installed generator-jhipster, run: npx jhipster

    ██╗ ██╗   ██╗ ████████╗ ███████╗   ██████╗ ████████╗ ████████╗ ███████╗
    ██║ ██║   ██║ ╚══██╔══╝ ██╔═══██╗ ██╔════╝ ╚══██╔══╝ ██╔═════╝ ██╔═══██╗
    ██║ ████████║    ██║    ███████╔╝ ╚█████╗     ██║    ██████╗   ███████╔╝

██╗ ██║ ██╔═══██║ ██║ ██╔════╝ ╚═══██╗ ██║ ██╔═══╝ ██╔══██║ ╚██████╔╝ ██║ ██║ ████████╗ ██║ ██████╔╝ ██║ ████████╗ ██║ ╚██╗ ╚═════╝ ╚═╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═╝ https://www.jhipster.tech Welcome to JHipster v8.1.0

Welcome to the JHipster Information Sub-Generator

jhipser-sampler@0.0.1-SNAPSHOT /home/jweytens/JhipserSampler
└── generator-jhipster@8.1.0
JHipster configuration not found
Environment and Tools

java version "21.0.1" 2023-10-17 LTS Java(TM) SE Runtime Environment (build 21.0.1+12-LTS-29) Java HotSpot(TM) 64-Bit Server VM (build 21.0.1+12-LTS-29, mixed mode, sharing)

git version 2.39.2

node: v20.10.0 npm: 10.2.3

'docker' command could not be found WARNING! Current location doesn't contain a valid JHipster application

Congratulations, JHipster execution is complete! If you find JHipster useful consider sponsoring the project https://www.jhipster.tech/sponsors/

Thanks for using JHipster!

{ "generator-jhipster": { "applicationType": "monolith", "authenticationType": "jwt", "baseName": "jhipserSampler", "buildTool": "maven", "cacheProvider": null, "clientFramework": "angular", "clientTestFrameworks": [], "clientTheme": "zephyr", "clientThemeVariant": "primary", "creationTimestamp": 1704466217500, "databaseType": "sql", "devDatabaseType": "mysql", "devServerPort": 4200, "enableGradleEnterprise": null, "enableHibernateCache": null, "enableSwaggerCodegen": false, "enableTranslation": true, "entities": [], "feignClient": false, "gradleEnterpriseHost": null, "jhipsterVersion": "8.1.0", "languages": ["en"], "messageBroker": false, "microfrontend": null, "microfrontends": [], "nativeLanguage": "en", "packageName": "com.mycompany.myapp", "prodDatabaseType": "mysql", "reactive": true, "searchEngine": false, "serverPort": null, "serverSideOptions": [], "serviceDiscoveryType": false, "testFrameworks": [], "websocket": false, "withAdminUi": true } }

Entity configuration(s) entityName.json files generated in the .jhipster directory
Browsers and Operating System

Windows 10, WSL2 debian to generate the project

atomfrede commented 9 months ago

What does trigger the 404? The general application/frontend or a backend api call?

Johann771 commented 9 months ago

The general app, i see the app on tomcat manager but when i click, 404. To install the app i just dropped the file.war in the webapps folder.

mshima commented 5 months ago

JHipster only supports root context path out of the box. The file should be named ROOT.war.

Context path should be configured at build time at bundlers. Closing since the current reproduction steps is invalid/not supported.