Thanks! Yes, even with the configs, the endpoints still register, because they are scanned by the REST annotation.
I did add something to unregister the endpoints if we found a servlet registration to /*, which is the problematic pattern that gets overriden by the REST deployment: https://github.com/apache/tomee/blob/4ade980c56276a2ad4f2df921e12314e38e881cf/tomee/tomee-microprofile/mp-common/src/main/java/org/apache/tomee/microprofile/TomEEMicroProfileListener.java#L33 <https://github.com/apache/tomee/blob/4ade980c56276a2ad4f2df921e12314e38e881cf/tomee/tomee-microprofile/mp-common/src/main/java/org/apache/tomee/microprofile/TomEEMicroProfileListener.java#L33> For some reason, it might not be working for your case. Are you able to debug and see what is going on? Anyway, I think that we should grab those configs and also plug them in there, so they always force the specifying endpoint to skip deployment if they are turned off. Cheers, Roberto > On 29 Jan 2019, at 18:40, j4fm <[email protected]> wrote: > > Hey Roberto, nice one and congrats with the M2 release. I guessed you were > busy with that. > > With the configuration settings I mentioned in my previous post (they are in > the system.properties file), I do still see endpoints registered for an app > as here: > > INFO [main] org.apache.openejb.server.cxf.rs.CxfRsHttpListener.logEndpoints > REST Application: http://localhost:8080/webapp1/ > -> org.apache.openejb.server.rest.InternalApplication@22cf6dad > INFO [main] org.apache.openejb.server.cxf.rs.CxfRsHttpListener.logEndpoints > > Service URI: http://localhost:8080/webapp1/health -> > Pojo > org.apache.geronimo.microprofile.impl.health.cdi.CdiHealthChecksEndpoint > INFO [main] org.apache.openejb.server.cxf.rs.CxfRsHttpListener.logEndpoints > > GET http://localhost:8080/webapp1/health -> > Response getChecks() > INFO [main] org.apache.openejb.server.cxf.rs.CxfRsHttpListener.logEndpoints > > Service URI: http://localhost:8080/webapp1/metrics -> > Pojo org.apache.geronimo.microprofile.metrics.jaxrs.CdiMetricsEndpoints > INFO [main] org.apache.openejb.server.cxf.rs.CxfRsHttpListener.logEndpoints > > GET http://localhost:8080/webapp1/metrics -> Object > getJson(SecurityContext, UriInfo) > INFO [main] org.apache.openejb.server.cxf.rs.CxfRsHttpListener.logEndpoints > > GET http://localhost:8080/webapp1/metrics -> String > getText(SecurityContext, UriInfo) > INFO [main] org.apache.openejb.server.cxf.rs.CxfRsHttpListener.logEndpoints > > GET http://localhost:8080/webapp1/metrics/{registry} -> Object > getJson(String, SecurityContext, UriInfo) > INFO [main] org.apache.openejb.server.cxf.rs.CxfRsHttpListener.logEndpoints > > GET http://localhost:8080/webapp1/metrics/{registry} -> String > getText(String, SecurityContext, UriInfo) > INFO [main] org.apache.openejb.server.cxf.rs.CxfRsHttpListener.logEndpoints > > GET http://localhost:8080/webapp1/metrics/{registry}/{metric} -> Object > getJson(String, String, SecurityContext, UriInfo) > INFO [main] org.apache.openejb.server.cxf.rs.CxfRsHttpListener.logEndpoints > > GET http://localhost:8080/webapp1/metrics/{registry}/{metric} -> String > getText(String, String, SecurityContext, UriInfo) > INFO [main] org.apache.openejb.server.cxf.rs.CxfRsHttpListener.logEndpoints > > OPTIONS http://localhost:8080/webapp1/metrics/{registry} -> > Object getMetadata(String, SecurityContext, UriInfo) > INFO [main] org.apache.openejb.server.cxf.rs.CxfRsHttpListener.logEndpoints > > OPTIONS http://localhost:8080/webapp1/metrics/{registry}/{metric} -> > Object getMetadata(String, String, SecurityContext, UriInfo) > INFO [main] org.apache.openejb.server.cxf.rs.CxfRsHttpListener.logEndpoints > > Service URI: http://localhost:8080/webapp1/openapi -> > Pojo org.apache.geronimo.microprofile.openapi.jaxrs.OpenAPIEndpoint > INFO [main] org.apache.openejb.server.cxf.rs.CxfRsHttpListener.logEndpoints > > GET http://localhost:8080/webapp1/openapi -> > OpenAPI get() > > > There is a custom servlet with url patterns of a custom file type extension > e.g *.cah and *.wcb specific to the software. Everything else is going to > the default tomee servlet. > > The software has filters that are all with a url pattern of "/*". One of > those filters is for the handling of tenantid from the URL > /webapp1/<tenantid>/... validating it against the database and forwarded to > /webapp1name/app/webapp2 with an attribute set for the tenantid added from > the filter. The URL remains the same in the browser i.e. the > /webapp1/<tenantid>/... format. > > Everything gets 404 from JAXRSFilter which is in the chain after the > software's own filters. > > > > > -- > Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Dev-f982480.html
