This project demonstrates an issue in TomEE where JAX-RS endpoints are incorrectly captured by a wildcard servlet (/*) after changes made in TOMEE-4406 and PR #1524.
JaxRsApplication.java: REST application with base path/apiHelloResource.java: REST endpoint at/helloWildcardServlet.java: Servlet with/*mapping that incorrectly captures REST requests
- 
Build the project:
./gradlew war - 
Deploy the WAR file (
build/libs/tomee-bug-demo.war) to TomEE - 
Access the application at:
http://localhost:8080/tomee-bug-demo/ 
- REST endpoint URL: 
http://localhost:8080/tomee-bug-demo/api/hello- Expected: JSON response from the REST endpoint
 - Actual: HTML response from the wildcard servlet