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

Spring Boot Admin doesn't start when using java -jar #2920

Closed
iliyan-velichkov opened this issue Nov 21, 2023 · 1 comment
Closed

Spring Boot Admin doesn't start when using java -jar #2920

iliyan-velichkov opened this issue Nov 21, 2023 · 1 comment

Comments

@iliyan-velichkov
Copy link

iliyan-velichkov commented Nov 21, 2023

Spring Boot Admin Server information

  • Version:
    2.7.5

  • Spring Boot version:
    2.7.5

  • Configured Security:
    basic

  • Webflux or Servlet application:
    Servlet application

Client information

  • Spring Boot versions:
    2.7.5

  • Used discovery mechanism:
    self registration

  • Webflux or Servlet application:
    Servlet application

Description

Spring Boot Admin doesn't start when I start my app using java -jar
When I start it from the Eclipse using the following it works
image
I'm able to open the admin ui http://localhost:8080/spring-admin

Steps to reproduce:

  • Checkout my PR Spring Boot Admin Integration eclipse-dirigible/dirigible#3018
  • Execute the following
    mvn -T 1C clean install -D maven.test.skip=true -D skipTests -D maven.javadoc.skip=true -D license.skip=true
    java -jar build/application/target/dirigible-application-9.0.0-SNAPSHOT-executable.jar
    
  • open the admin UI http://localhost:8080/spring-admin
  • use admin/admin for login
  • you will see the following
    image

Start the app from the Eclipse

  • right click on DirigibleApplication -> Run as -> Java Application
  • open the admin UI http://localhost:8080/spring-admin
  • you will open the Admin UI
    image
@iliyan-velichkov
Copy link
Author

iliyan-velichkov commented Nov 23, 2023

I managed to fix this issue with the following PR: eclipse-dirigible/dirigible#3032
spring-boot-devtools version should match your Spring boot version, otherwise the actuator and spring boot admin don't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant