How should I do the dynamic import? in pax web?

PS after being to devoxx my memory seems to have been wiped, sorry..
-regards Nino

On Thu, Nov 22, 2018 at 11:08 AM Jean-Baptiste Onofré <[email protected]>
wrote:

> Hi Nino,
>
> com.codahale.metrics package is not part of Pax Web, that's why you have
> the ClassNotFoundException.
>
> Did you try a dynamic import ?
>
> Regards
> JB
>
> On 22/11/2018 11:05, nino martinez wael wrote:
> > Hi fellow karaflings
> >
> > I am have some trouble applying metrics to Jetty, I've tried doing so in
> > jetty.xml:
> >
> > <Set name="threadPool">
> > <New class="com.codahale.metrics.jetty9.InstrumentedQueuedThreadPool"/>
> > </Set>
> > <New id="metricshandler"
> > class="com.codahale.metrics.jetty9.InstrumentedHandler">
> > </New>
> >
> > <Set name="handler">
> > <New id="Handlers"
> > class="org.eclipse.jetty.server.handler.HandlerCollection">
> > <Call name="addHandler">
> > <Arg>
> > <Ref id="metricshandler"/>
> > </Arg>
> > </Call>
> > </New>
> > </Set>
> >
> > But get this:
> > Caused by: java.lang.ClassNotFoundException:
> > com.codahale.metrics.jetty9.InstrumentedQueuedThreadPool not found by
> > org.ops4j.pax.web.pax-web-jetty
> >
> > I am installing the required bundle with my feature:
> >
> > <bundle>mvn:io.dropwizard.metrics/metrics-jetty9/3.2.6</bundle>
> >
> >
> > But it seems jetty are not able to pick it up?
> >
> > --
> > Best regards / Med venlig hilsen
> > Nino Martinez
>
> --
> Jean-Baptiste Onofré
> [email protected]
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>


-- 
Best regards / Med venlig hilsen
Nino Martinez

Reply via email to