users@jersey.java.net

Re: [Jersey] Disabling JCDIComponentProviderFactory ?

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 03 May 2010 16:53:59 +0200

Hi Morten,

Is you project using CDI at all? if not then you can delete the
beans.xml.

Otherwise you are a bit stuck and all i can suggest is modifying the
jersey-server jar to remove:

   META-INF/services/javax.enterprise.inject.spi.Extension

Paul.

On May 3, 2010, at 4:11 PM, Morten wrote:

> In order to simplify things and escape from bug 516, I am trying to
> see if I avoid the build-in weld-jersey-glassfish integration.
>
> However, even if I remove all weld annotations from jersey and
> create my own jersey resource singleton instances, I still get an
> incorrect AmbiguousResolutionException from
> JCDIComponentProviderFactory about some other non-jersey related
> classes. Since these are not related to jersey and I am not using
> weld with jersey (and the exception is incorrect), it would be
> better if I can just get rid of JCDIComponentProviderFactory so that
> it is not called by jersey in my app.
>
> Is there a way to disabling JCDIComponentProviderFactor with jersey
> as is in glassfish 3.0 ?
>
> Cheers,
> Morten
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>