tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rafael Pestano <rmpest...@gmail.com>
Subject Re: persistence.xml for unit tests
Date Fri, 26 Aug 2016 20:47:50 GMT
Hi Dimas,

it's green here, just add this line to your deployment:

  .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")

2016-08-26 16:42 GMT-03:00 dimas [via TomEE & OpenEJB] <
ml-node+s979440n4679944h37@n4.nabble.com>:

> Update:
>
> When i remove this from the pom:
>
>  <property name="javaagent">
>                 mvn:org.apache.sirona:sirona-javaagent:0.2-incubating:jar:shaded
>
>             </property>
>
> It doesn't fail with class loading issues anymore (that's good!), however
> still fails with this one:
>
> SEVERE - Exception sending context destroyed event to listener instance of
> class org.apache.myfaces.webapp.StartupServletContextListener
> javax.enterprise.inject.UnsatisfiedResolutionException: Api type
> [javax.enterprise.inject.spi.BeanManager] is not found with the
> qualifiers
> Qualifiers: [@javax.enterprise.inject.Default()]
> for injection into Method Injection Point, method name :
>  camelBeansPostProcessor, Bean Owner : [CdiCamelExtension,
> WebBeansType:EXTENSION, Name:null, API Types:[javax.enterprise.
> inject.spi.Extension,org.apache.camel.cdi.CdiCamelExtension,java.lang.Object],
> Qualifiers:[javax.enterprise.inject.Default,javax.enterprise.inject.Any]]
>         at org.apache.webbeans.util.InjectionExceptionUtil.
> throwUnsatisfiedResolutionException(InjectionExceptionUtil.java:65)
>         at org.apache.webbeans.container.InjectionResolver.
> getInjectionPointBean(InjectionResolver.java:279)
>         at org.apache.webbeans.event.ObserverMethodImpl.
> getMethodArguments(ObserverMethodImpl.java:369)
>         at org.apache.webbeans.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:215)
>
>         at org.apache.webbeans.event.NotificationManager.fireEvent(NotificationManager.java:676)
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://tomee-openejb.979440.n4.nabble.com/persistence-xml-for-unit-tests-
> tp4679874p4679944.html
> To start a new topic under TomEE Users, email
> ml-node+s979440n979441h44@n4.nabble.com
> To unsubscribe from TomEE Users, click here
> <http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=979441&code=cm1wZXN0YW5vQGdtYWlsLmNvbXw5Nzk0NDF8MTE1OTM0ODgyNg==>
> .
> NAML
> <http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>



-- 
Att,

Rafael M. Pestano

Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
http://rpestano.wordpress.com/
@realpestano




--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/persistence-xml-for-unit-tests-tp4679874p4679951.html
Sent from the TomEE Users mailing list archive at Nabble.com.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message