tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jieryn <jie...@gmail.com>
Subject Re: TomEE 7.0.1 + Arquillian + Java 8
Date Wed, 02 Nov 2016 20:40:31 GMT
Yep, thanks!

    <dependency>
      <groupId>org.jboss.shrinkwrap.resolver</groupId>
      <artifactId>shrinkwrap-resolver-depchain</artifactId>
      <type>pom</type>
      <exclusions>
        <exclusion>
          <groupId>javax.enterprise</groupId>
          <artifactId>cdi-api</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.jboss.shrinkwrap.resolver</groupId>
      <artifactId>shrinkwrap-resolver-api-maven</artifactId>
    </dependency>

That fixed it for me.

On Wed, Nov 2, 2016 at 4:17 PM, Romain Manni-Bucau
<rmannibucau@gmail.com> wrote:
> Cdi api jar of ee 6 in the deps
>
> Le 2 nov. 2016 21:07, "jieryn" <jieryn@gmail.com> a écrit :
>
>> Some of my Arquillian tests are now failing with the following error.
>> Many tests pass fine, any hints?
>>
>> Caused by: org.apache.tomee.catalina.TomEERuntimeException:
>> org.apache.openejb.OpenEJBException: Creating application failed:
>> /home/jieryn/workspaces/acme/com.acme.base/web/jaxrs/
>> hostname/target/arquillian-tomee-app-working-dir/0/
>> 43856ea1-3352-4faf-b42b-56878fb34091:
>> Class org.apache.webbeans.conversation.ConversationStorageBean does
>> not implement the requested interface
>> javax.enterprise.inject.spi.BeanAttributes
>>         at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(
>> TomcatWebAppBuilder.java:1269)
>>         at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(
>> TomcatWebAppBuilder.java:1115)
>>         at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(
>> GlobalListenerSupport.java:133)
>>         at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(
>> LifecycleBase.java:94)
>>         at org.apache.catalina.core.StandardContext.startInternal(
>> StandardContext.java:5076)
>>         at org.apache.catalina.util.LifecycleBase.start(
>> LifecycleBase.java:152)
>>         ... 97 more
>> Caused by: org.apache.openejb.OpenEJBException: Creating application
>> failed: /home/jieryn/workspaces/acme/com.acme.base/web/jaxrs/
>> hostname/target/arquillian-tomee-app-working-dir/0/
>> 43856ea1-3352-4faf-b42b-56878fb34091:
>> Class org.apache.webbeans.conversation.ConversationStorageBean does
>> not implement the requested interface
>> javax.enterprise.inject.spi.BeanAttributes
>>         at org.apache.openejb.assembler.classic.Assembler.
>> createApplication(Assembler.java:1039)
>>         at org.apache.openejb.assembler.classic.Assembler.
>> createApplication(Assembler.java:717)
>>         at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(
>> TomcatWebAppBuilder.java:1257)
>>         ... 102 more
>> Caused by: java.lang.IncompatibleClassChangeError: Class
>> org.apache.webbeans.conversation.ConversationStorageBean does not
>> implement the requested interface
>> javax.enterprise.inject.spi.BeanAttributes
>>         at org.apache.webbeans.component.BeanAttributesImpl.<init>(
>> BeanAttributesImpl.java:59)
>>         at org.apache.webbeans.component.third.ThirdpartyBeanImpl.<
>> init>(ThirdpartyBeanImpl.java:41)
>>         at org.apache.webbeans.component.third.
>> PassivationCapableThirdpartyBeanImpl.<init>(PassivationCapableThirdpartyBe
>> anImpl.java:32)
>>         at org.apache.webbeans.container.BeanManagerImpl.addInternalBean(
>> BeanManagerImpl.java:373)
>>         at org.apache.webbeans.conversation.ConversationManager.<init>(
>> ConversationManager.java:69)
>>         at org.apache.webbeans.config.WebBeansContext.<init>(
>> WebBeansContext.java:158)
>>         at org.apache.webbeans.config.WebBeansContext.<init>(
>> WebBeansContext.java:116)
>>         at org.apache.openejb.cdi.ThreadSingletonServiceImpl.initialize(
>> ThreadSingletonServiceImpl.java:171)
>>         at org.apache.openejb.cdi.CdiBuilder.build(CdiBuilder.java:41)
>>         at org.apache.openejb.assembler.classic.Assembler.
>> createApplication(Assembler.java:911)
>>

Mime
View raw message