Bug 900434 (JBPAPP6-960) - WebSecurityJBossSimpleRoleMappingTestCase and WebSecurityJBossWebXmlSecurityRolesTestCase fail consistently on IBMJDK due to multiple Archive deployments with the same Target
Summary: WebSecurityJBossSimpleRoleMappingTestCase and WebSecurityJBossWebXmlSecurityR...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: JBPAPP6-960
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Testsuite
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: EAP 6.0.1
Assignee: Madhumita Sadhukhan
QA Contact:
URL: http://jira.jboss.org/jira/browse/JBP...
Whiteboard:
Depends On:
Blocks: JBPAPP6-1159
TreeView+ depends on / blocked
 
Reported: 2012-05-15 08:34 UTC by Madhumita Sadhukhan
Modified: 2014-06-28 12:31 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-10-04 13:27:46 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JBPAPP6-960 0 None None None Never

Description Madhumita Sadhukhan 2012-05-15 08:34:46 UTC
project_key: JBPAPP6

https://hudson.qa.jboss.com/hudson/view/EAP6/view/EAP6-AS-Testsuite/job/eap-60-as-testsuite-RHEL6-buildIBMJDK6_testrunIBMJDK16/lastCompletedBuild/testReport/org.jboss.as.test.integration.web.security.form/WebSecurityJBossWebXmlSecurityRolesTestCase/org_jboss_as_test_integration_web_security_form_WebSecurityJBossWebXmlSecurityRolesTestCase/

org.jboss.as.test.integration.web.security.form.WebSecurityJBossWebXmlSecurityRolesTestCase and WebSecurityJBossSimpleRoleMappingTestCase fail consistently on IBM JDK due to following stacktrace:

Error Message

Can not add multiple org.jboss.shrinkwrap.api.Archive archive deployments with the same archive name _DEFAULT_ that target the same target _DEFAULT_

Stacktrace

java.lang.IllegalArgumentException: Can not add multiple org.jboss.shrinkwrap.api.Archive archive deployments with the same archive name _DEFAULT_ that target the same target _DEFAULT_
	at org.jboss.arquillian.container.spi.client.deployment.DeploymentScenario.validateNotSameArchiveAndSameTarget(DeploymentScenario.java:371)
	at org.jboss.arquillian.container.spi.client.deployment.DeploymentScenario.addDeployment(DeploymentScenario.java:48)
	at org.jboss.arquillian.container.test.impl.client.deployment.DeploymentGenerator.generateDeployment(DeploymentGenerator.java:81)
	at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)

Not sure why this is affected only on IBM JDK as this is not seen on other JDK
However with reference to https://issues.jboss.org/browse/ARQ-858

will having different war/archive names in the tests help?

Comment 1 Madhumita Sadhukhan 2012-05-15 08:37:56 UTC
Peter I am assigning this to you please take a look and feel free to reassign if this does not concern you.

Comment 2 Rajesh Rajasekaran 2012-06-06 22:54:54 UTC
Josef, can you investigate? 

Comment 3 Rajesh Rajasekaran 2012-06-06 23:02:04 UTC
Link: Added: This issue is a dependency of JBPAPP-9188


Comment 4 Josef Cacek 2012-06-11 11:58:33 UTC
The main problem comes from the JDKs. When Arquillian uses Class.getMethods() on a test class, then
- Oracle JDK returns one static method deployment()
- but IBM JDK return two - one from the test itself and one from the parent class.

I'll make a workaround in the tests to fix this.

Comment 5 Josef Cacek 2012-06-11 13:12:18 UTC
Git Pull Request: Added: https://github.com/jbossas/jboss-as/pull/2478, https://github.com/jbossas/jboss-as/pull/2480


Comment 6 Josef Cacek 2012-06-12 09:12:38 UTC
Merged into AS7 upstream - master and 7.1 branches.

Comment 8 Anne-Louise Tangring 2012-11-13 20:07:54 UTC
Docs QE Status: Removed: NEW 



Note You need to log in before you can comment on or make changes to this bug.