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

Problem with context path #71

Closed
diegosep opened this issue May 8, 2015 · 4 comments
Closed

Problem with context path #71

diegosep opened this issue May 8, 2015 · 4 comments
Labels

Comments

@diegosep
Copy link

diegosep commented May 8, 2015

I'm using this variable 'server.contextPath:/rio' in my applications.properties, but when the application starts, had problems
Did not find handler method for [/api/applications], and the applications fails to registry.

i tried to change this property

spring.boot.admin.contextPath=rio/api/applications

but the problem its the same, I can registry but now

Did not find handler method for [/rio/api/applications],

@joshiste
Copy link
Collaborator

joshiste commented May 9, 2015

Is the admin server a separate application? Sounds like it's the same you want to monitor?

So how are following properties set in the spring boot admin server:

  • server.contextPath

And following in the client who wants to register:

  • spring.boot.admin.url
  • spring.boot.admin.contextPath

Note you can also just append the /rio to spring.boot.admin.url ... internally spring.boot.admin.url and .contextPath are just getting concatenated...

@aruizp
Copy link

aruizp commented May 11, 2015

Hi, the admin server is in the same application.
server.contextPath=/rio
spring.boot.admin.url=http://localhost:8080
spring.boot.admin.contextPath=/rio/api/applications
The app appears in the list of spring admin, but only appears as OFFLINE.
If we check the logs the " Did not find handler method for [/api/applications]" Debug message appear.

If we remove the server.contextPath from the app its registered correctly.

Thanks in advance!

@joshiste
Copy link
Collaborator

First of all I recommend no to include the admin into the app you want to monitor..

This bug is due to this bug spring-cloud/spring-cloud-netflix#270
Try pinning the version of spring-cloud-netflix-core to 1.0.1.RELEASE (not tested)
In the meantime I'll update Spring Boot Admins dependencies.

@bosofelipe
Copy link

How to solve this problem?

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

No branches or pull requests

4 participants