Hi Ivan,

Can you share a sample?

Em ter, 12 de mar de 2019 às 16:34, Ivan Junckes Filho <
ivanjunc...@gmail.com> escreveu:

> Hey guys, there is a very annoying bug when using rest client from cxf
> 3.2.7 in TomEE M2. When 2 apps have the same client the server throws the
> error below and shuts down?
>
> Shouldn't we allow different apps in the same server use the same client?
>
> *Error*
> Caused by: org.apache.webbeans.exception.WebBeansException:
> org.apache.webbeans.exception.DuplicateDefinitionException:
> PassivationCapable bean id is not unique:
> br.com.gbrsistemas.crvirtual.classificacao.SiemClassificacaoServiceClient
> bean:SiemClassificacaoServiceClient, WebBeansType:THIRDPARTY,
>
> Name:br.com.gbrsistemas.crvirtual.classificacao.SiemClassificacaoServiceClient,
> API
>
> Types:[br.com.gbrsistemas.crvirtual.classificacao.SiemClassificacaoServiceClient],
>
> Qualifiers:[javax.enterprise.inject.Default,org.eclipse.microprofile.rest.client.inject.RestClient,javax.enterprise.inject.Any],
> existing: SiemClassificacaoServiceClient, WebBeansType:THIRDPARTY,
>
> Name:br.com.gbrsistemas.crvirtual.classificacao.SiemClassificacaoServiceClient,
> API
>
> Types:[br.com.gbrsistemas.crvirtual.classificacao.SiemClassificacaoServiceClient],
>
> Qualifiers:[javax.enterprise.inject.Default,org.eclipse.microprofile.rest.client.inject.RestClient,javax.enterprise.inject.Any]
> at
>
> org.apache.webbeans.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:371)
> at
>
> org.apache.webbeans.event.NotificationManager.invokeObserverMethod(NotificationManager.java:818)
> at
>
> org.apache.webbeans.event.NotificationManager.fireEvent(NotificationManager.java:714)
> ... 42 more
>


-- 
Daniel "soro" Cunha
https://twitter.com/dvlc_

Reply via email to