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

JAX-RS sub resource is not recognised in Quarkus #3919

Closed
hantsy opened this issue Sep 8, 2019 · 2 comments · Fixed by #3977
Closed

JAX-RS sub resource is not recognised in Quarkus #3919

hantsy opened this issue Sep 8, 2019 · 2 comments · Fixed by #3977
Assignees
Labels
area/arc Issue related to ARC (dependency injection) area/resteasy-classic kind/bug Something isn't working
Milestone

Comments

@hantsy
Copy link
Contributor

hantsy commented Sep 8, 2019

Register sub resource in the parent resource.

public class PostResource{
    //other methods are omitted here.
    
   @Path("{id}/comments")
    public CommentResource commentResource() {
        return resourceContext.getResource(CommentResource.class);
    }    
} 

CommentResource is like this, it does not includ a @Path.

@RequestScoped
public class CommentResource {}

The details and workaround can be found on stackoverflow.
https://stackoverflow.com/questions/57820428/jax-rs-subresource-issue-in-quarkus

@hantsy hantsy added the kind/bug Something isn't working label Sep 8, 2019
@geoand
Copy link
Contributor

geoand commented Sep 8, 2019

@gsmet, @mkouba IIRC you were talking about this, right?

@mkouba
Copy link
Contributor

mkouba commented Sep 9, 2019

@geoand Yep, exactly.

@mkouba mkouba added area/arc Issue related to ARC (dependency injection) area/resteasy-classic labels Sep 9, 2019
@mkouba mkouba self-assigned this Sep 11, 2019
mkouba added a commit to mkouba/quarkus that referenced this issue Sep 11, 2019
mkouba added a commit to mkouba/quarkus that referenced this issue Sep 16, 2019
- resolves quarkusio#3919
- also restrict the bean types of JAX-RS resources and providers
@gsmet gsmet added this to the 0.23.0 milestone Sep 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/arc Issue related to ARC (dependency injection) area/resteasy-classic kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants