deltaspike-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rudy De Busscher (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DELTASPIKE-94) beans.xml in arquillian deployment artifacts for integration testing needs to be in WEB-INF to support WebLogic 12c
Date Fri, 24 Feb 2012 11:19:48 GMT

    [ https://issues.apache.org/jira/browse/DELTASPIKE-94?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13215556#comment-13215556
] 

Rudy De Busscher commented on DELTASPIKE-94:
--------------------------------------------

Found it,

ShrinkWrapArchiveUtil.getArchives() returns also the jars for the tests artifacts which contains
the TestBean.  Adding the testBean.class to the Arquillian archive with .addClass() places
it twice in the war.  And hence the Exception.


                
> beans.xml in arquillian deployment artifacts for integration testing needs to be in WEB-INF
to support WebLogic 12c
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: DELTASPIKE-94
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-94
>             Project: DeltaSpike
>          Issue Type: Improvement
>          Components: Tests
>    Affects Versions: 0.1-incubating
>            Reporter: Rudy De Busscher
>            Assignee: Rudy De Busscher
>
> When the arquilian test artifact is deployed on WebLogic 12c, it isn't recognized as
needing CDI when there is no beans.xml in the WEB-INF.
> Therefor the command
> .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml")
> must be replaced by
> .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
> See also http://markmail.org/message/u3hdpzackhn74ivi 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message