-
Notifications
You must be signed in to change notification settings - Fork 551
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
NPE on ServletContainer when using Spring Boot with Jersey #345
Comments
Hi @nytins - I have not tried to run a JAX-RS application inside SpringBoot. Do you have some sample code I can test with? |
Hi @sapessi I really want to use Jersey for JAX-RS but within Spring boot too. You can in any Spring boot setup depend on spring jersey starter jar. I have a small sample which is a bit old here: https://github.com/Lucas3oo/jersey-spring |
Hi, aws-serverless-java-container-jersey isn't used in this scenario and that's why Jersey fails with an NPE (WebComponent isn't initialized as org.glassfish.jersey.servlet.ServletContainer.init was never called). I think to make it work we need to combine the functionalities of aws-serverless-java-container-springboot2 and aws-serverless-java-container-jersey. |
Scenario
Trying to run a Spring Boot with Jersey api
Expected behavior
Returns successful response
Actual behavior
Returns 502 Bad Gateway error
Steps to reproduce
Full log output
The text was updated successfully, but these errors were encountered: