Skip to content

byte0ne/tomee-10-servlet-jaxrs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TomEE Bug Demo

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.

Project Structure

  • JaxRsApplication.java: REST application with base path /api
  • HelloResource.java: REST endpoint at /hello
  • WildcardServlet.java: Servlet with /* mapping that incorrectly captures REST requests

How to Run

  1. Build the project:

    ./gradlew war
    
  2. Deploy the WAR file (build/libs/tomee-bug-demo.war) to TomEE

  3. Access the application at: http://localhost:8080/tomee-bug-demo/

Testing the Bug

  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published