You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Rudy De Busscher (Created) (JIRA)" <ji...@apache.org> on 2012/02/20 15:20:31 UTC

[jira] [Created] (DELTASPIKE-94) beans.xml in arquillian deployment artifacts for integration testing needs to be in WEB-INF to support WebLogic 12c

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

        

[jira] [Commented] (DELTASPIKE-94) beans.xml in arquillian deployment artifacts for integration testing needs to be in WEB-INF to support WebLogic 12c

Posted by "Rudy De Busscher (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DELTASPIKE-94?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13215552#comment-13215552 ] 

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

When changes are made in BeanManagerProviderTest, There is an exception during deployment

org.jboss.weld.exceptions.DeploymentException: WELD-001414 Bean name is ambiguous. Name extraNameBean resolves to beans [Managed Bean [class org.apache.deltaspike.test.core.api.provider.TestBean] with qualifiers [@Any @Default @Named], Managed Bean [class org.apache.deltaspike.test.core.api.provider.TestBean] with qualifiers [@Any @Default @Named]]"}}

I need to investigate further
                
> 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

        

[jira] [Commented] (DELTASPIKE-94) beans.xml in arquillian deployment artifacts for integration testing needs to be in WEB-INF to support WebLogic 12c

Posted by "Dan Allen (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DELTASPIKE-94?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13215866#comment-13215866 ] 

Dan Allen commented on DELTASPIKE-94:
-------------------------------------

Correct, the test class should not be added to the archive as Arquillian will add it for you.
                
> 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

        

[jira] [Resolved] (DELTASPIKE-94) beans.xml in arquillian deployment artifacts for integration testing needs to be in WEB-INF to support WebLogic 12c

Posted by "Rudy De Busscher (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DELTASPIKE-94?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rudy De Busscher resolved DELTASPIKE-94.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 0.2-incubating
    
> 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
>             Fix For: 0.2-incubating
>
>
> 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

        

[jira] [Commented] (DELTASPIKE-94) beans.xml in arquillian deployment artifacts for integration testing needs to be in WEB-INF to support WebLogic 12c

Posted by "Rudy De Busscher (Commented) (JIRA)" <ji...@apache.org>.
    [ 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