-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
Creating an application where the application is defined in the web.xml with a servlet-mapping of anything other than /* results in endpoints not being found, 404. There is a potential this is an issue with the WildFly integration. In the WildFly management model the resources show up on the deployment with the correct resource context path. However, if you try to access the end point you'll be presented with a 404.
Though not currently merged, when this is fixed the UriInfoMatchedResourceTemplateAppMappingTest will need to be enabled.
Example web.xml
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="https://jakarta.ee/xml/ns/jakartaee" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-app_5_0.xsd" version="5.0"> <servlet> <servlet-name>org.jboss.resteasy.test.resource.basic.UriInfoMatchedResourceTemplateAppMappingTest$TestApplication</servlet-name> <servlet-class>org.jboss.resteasy.plugins.server.servlet.HttpServlet30Dispatcher</servlet-class> <init-param> <param-name>jakarta.ws.rs.core.Application</param-name> <param-value>org.jboss.resteasy.test.resource.basic.UriInfoMatchedResourceTemplateAppMappingTest$TestApplication</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>org.jboss.resteasy.test.resource.basic.UriInfoMatchedResourceTemplateAppMappingTest$TestApplication</servlet-name> <url-pattern>test/*</url-pattern> </servlet-mapping> </web-app>