You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Romain Manni-Bucau (JIRA)" <ji...@apache.org> on 2018/03/25 14:36:00 UTC
[jira] [Resolved] (TOMEE-2182) Arquillian Test Causes
java.lang.IncompatibleClassChangeError
[ https://issues.apache.org/jira/browse/TOMEE-2182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Romain Manni-Bucau resolved TOMEE-2182.
---------------------------------------
Resolution: Invalid
Hi Gary,
you use javaee-api 6 which is javaee 6 instead of org.apache.tomee:javaee-api:7.0-1 which goes with tomee 7 to be javaee 7. This is what the error says.
Side note: javaee-api should be in scope provided and not compile
> Arquillian Test Causes java.lang.IncompatibleClassChangeError
> -------------------------------------------------------------
>
> Key: TOMEE-2182
> URL: https://issues.apache.org/jira/browse/TOMEE-2182
> Project: TomEE
> Issue Type: Bug
> Components: TomEE Arquillian Adapters
> Affects Versions: 7.0.4
> Reporter: Gary Murphy
> Priority: Major
>
> I am trying to create a very simple Arquillian test for EJBs using embedded TomEE. I get the following when I try to run the test:
> Caused by: java.lang.IncompatibleClassChangeError: Class org.apache.webbeans.conversation.ConversationStorageBean does not implement the requested interface javax.enterprise.inject.spi.BeanAttributes
> I found an item on the forum to exclude cdi-api, which I attempted to do, but that did not resolve the issue.
> The code can be found on GitHub at:
> https://github.com/hilbertglm/arquillian-example.git
> I suspect it is an issue with versions or POM setup, but I am stuck at this point.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)