hmm this example does not seem to be working:

https://github.com/ops4j/org.ops4j.pax.web/blob/master/samples/jetty-config-fragment/pom.xml


I just added the

<Fragment-Host>org.ops4j.pax.web.pax-web-jetty</Fragment-Host>

to the bundle instructions

and the jetty.xml to my resource folder of the project..

My bundle are now ignored by pax wicket, and pax web does not pickup the
jetty.xml :(

I just want some metrics for my web application so I can count concurrent
users, response times etc.. Any ideas on howto archieve that?



On Thu, Nov 22, 2018 at 12:14 PM nino martinez wael <
nino.martinez.w...@gmail.com> wrote:

> so this seems to be sort of a way:
>
> https://groups.google.com/forum/#!topic/ops4j/4SljkP-rBBQ
>
> Heres whats seems a better example:
>
>
> https://github.com/ops4j/org.ops4j.pax.web/blob/master/samples/jetty-config-fragment/pom.xml
>
>
> On Thu, Nov 22, 2018 at 12:08 PM nino martinez wael <
> nino.martinez.w...@gmail.com> wrote:
>
>> 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é <j...@nanthrax.net>
>> 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é
>>> jbono...@apache.org
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>>
>>
>>
>> --
>> Best regards / Med venlig hilsen
>> Nino Martinez
>>
>
>
> --
> Best regards / Med venlig hilsen
> Nino Martinez
>


-- 
Best regards / Med venlig hilsen
Nino Martinez

Reply via email to