-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
The default profile is ignored when run a application generated with Jhipster 8.4.0 #26333
Comments
Can you please try with JHipster 8.5.0? FWIW, I've been unable to get MySQL to start in Docker with 8.5.0. See #26319 for more information. |
JHipster has completed the sample check This check uses |
Hi @mraible, the error remains in version 8.6.0. The application runs without error if the profile is informed (./mvnw -P dev), however, when changing any file in the backend it fails (same error) when performing the hot reload. Should I open a new issue? |
Overview of the issue
I generated an application with jhipster 8.4.0. When I try to run it using the ./mvnw command or npm run backend:debug, it does not display the default profile in the JHipster banner but the @spring.profiles.active@ placeholder. Furthermore, the application fails to create the LoggingConfigurarion bean, as it is unable to inject the value of the server.port property, as shown in the message below.
Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'server.port' in value "${server.port}"
This property is profile specific (application-dev.yml and application-prod.yml)
The application runs without error if the profile is informed (./mvnw -P dev), however, when changing any file in the backend it fails (same error) when performing the hot reload.
Motivation for or Use Case
The application should run without error using the default profile and shows the correct profile in the banner.
Reproduce the error
-Genarate a monolith JHipster 8.4.0
-Run the application with ./mvnw or npm run backend:debug
Related issues
This error appears to be related to issue #25979.
Suggest a Fix
N/A
JHipster Version(s)
8.4.0
JHipster configuration
██╗ ██║ ██╔═══██║ ██║ ██╔════╝ ╚═══██╗ ██║ ██╔═══╝ ██╔══██║
╚██████╔╝ ██║ ██║ ████████╗ ██║ ██████╔╝ ██║ ████████╗ ██║ ╚██╗
╚═════╝ ╚═╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═╝
https://www.jhipster.tech
Welcome to JHipster v8.4.0
Welcome to the JHipster Information Sub-Generator
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
Environment and Tools
openjdk version "17.0.6" 2023-01-17
OpenJDK Runtime Environment Temurin-17.0.6+10 (build 17.0.6+10)
OpenJDK 64-Bit Server VM Temurin-17.0.6+10 (build 17.0.6+10, mixed mode, sharing)
git version 2.25.1
node: v20.12.2
npm: 10.5.0
Docker version 24.0.1, build 6802122
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryBrowsers and Operating System
The text was updated successfully, but these errors were encountered: