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

RestHttpHostPortUrl not mapped to a root ClassNode with @ApplicationPath #1

Open
Phury opened this issue Mar 7, 2016 · 0 comments
Open

Comments

@Phury
Copy link

Phury commented Mar 7, 2016

VertxRsServer uses "/rest" as default root url for resteasy endpoints, however the javax.ws.rs.core.Application provided to build the resteasy context does not have an @ApplicationPath, this results in resources not being resolved correctly.
Resteasy looks for an url matching /authentication/login and not /rest/authentication/login

If configured with an empty jaxrs path, the application works correctly but then I cannot use a context (like /api) for my resources
Config config = Config .newBuilder() .withJaxrsPath("") .build(); VertxRsServer.newBuilder() .withConfig(config) .build();

The error happens in org.jboss.resteasy.core.registry.ClassNode#potentials
parameters:
path: /rest/authentication/login
start: 1
matches: empty
children: { "authentication" -> ClassNode: segment="authentication" }

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