Perfect! Happy it works Khalid ;) On Thu, Dec 27, 2018, 8:43 PM Khalid HORRI <[email protected] wrote:
> Hi guys, > Thanks for yours replies, I reclone the repo and the error is gone > > On Thu, Dec 27, 2018 at 2:14 PM Federico Mariani < > [email protected]> wrote: > > > Hi Khalid, > > I started the application with 'mvn clean install tomee:run' and tested > the > > following URLs, all of them are working: > > http://localhost:8080/mp-metrics-counted/weather/day/status > > http://localhost:8080/mp-metrics-counted/weather/week/status > > http://localhost:8080/mp-metrics-counted/metrics > > http://localhost:8080/mp-metrics-counted/metrics/application > > > > > http://localhost:8080/mp-metrics-counted/metrics/application/weather_week_status > > > > > http://localhost:8080/mp-metrics-counted/metrics/application/weather_day_status > > > > Could the context root with version number be the problem? > > (/mp-metrics-counted-8.0.0-SNAPSHOT) > > > > Il giorno mer 26 dic 2018 alle ore 23:51 Khalid HORRI < > > [email protected]> > > ha scritto: > > > > > Hi everyone, > > > In the mp-metrics-counted example I run the following command: mvn > clean > > > install tomee:run so the server is started,I check the URL : GET > > > > > > http://localhost:8080/mp-metrics-counted-8.0.0-SNAPSHOT/weather/day/status > > > , > > > the server return what is expected. but when chcking this URL GET > > > > > > > > > http://localhost:8080/mp-metrics-counted/metrics/application/weather_day_status > > > I get this error : > > > > > > No root resource matching request path > > > > /mp-metrics-counted-8.0.0-SNAPSHOT/metrics/application/weather_day_status > > > has been found, Relative Path: /metrics/application/weather_day_status. > > > Please enable FINE/TRACE log level for more details. > > > dÚc. 26, 2018 10:27:24 PM > > > org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper toResponse > > > AVERTISSEMENT: javax.ws.rs.WebApplicationException > > > at > > > > > > > > > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:162) > > > at > > > > > > > > > org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:91) > > > at > > > > > > > > > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263) > > > at > > > > > > > > > org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) > > > at > > > > > > > > > org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:240) > > > at > > > > > > > > > org.apache.openejb.server.cxf.rs.CxfRsHttpListener.onMessage(CxfRsHttpListener.java:187) > > > at > > > org.apache.openejb.server.rest.RsServlet.service(RsServlet.java:53) > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) > > > at > > > > > > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) > > > at > > > > > > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) > > > at > > > org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) > > > at > > > > > > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) > > > at > > > > > > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) > > > at > > > > > > > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) > > > at > > > > > > > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) > > > at > > > org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:44) > > > at > > > > > > > > > org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) > > > at > > > > > > > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) > > > at > > > > > > > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) > > > at > > > > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) > > > at > > > > > > > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) > > > at > > > > > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) > > > at > > > > > > > > > org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070) > > > at > > > > > > > > > org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611) > > > at > > > org.apache.tomcat.util.net > > > .JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316) > > > at > > > > > > > > > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > > > at > > > > > > > > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > > > at > > > > > > > > > org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) > > > at java.lang.Thread.run(Thread.java:745) > > > > > > -- > > > *تحياتي* > > > Cordialement, > > > Best regards > > > --------------------------------------------------------------- > > > *خالد حري* > > > Khalid HORRI > > > Consultant Technique en Java/JEE > > > > > > > > -- > *تحياتي* > Cordialement, > Best regards > --------------------------------------------------------------- > *خالد حري* > Khalid HORRI > Consultant Technique en Java/JEE >
