Bug 980200

Summary: Seam2.3 examples "Duplicate component name" errors in JBDS
Product: [Retired] JBoss Enterprise WFK Platform 2 Reporter: Marek Schmidt <maschmid>
Component: SeamAssignee: Marek Novotny <mnovotny>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Marek Schmidt <maschmid>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.3.0CC: snagarwa
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Known Issue
Doc Text:
JBoss Developer Studio is confused due to two components.xml files in a project, even if one of them is a test-only file. JBoss Developer Studio generates 'Duplicate component name' error when importing Seam examples. To work around this issue, rename the test components.xml file (for example, components-test.xml) and update the shrinkwrap code in the test accordingly (for example, .addAsWebInfResource("components-test.xml", "components.xml").
Story Points: ---
Clone Of: Environment:
JBDS 7.0.0.Beta2
Last Closed: 2013-07-22 13:03:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Marek Schmidt 2013-07-01 17:03:29 UTC
Description of problem:

Importing seam examples into JBDS leads to 'Duplicate component name" errors. The problem is that JBDS doesn't understand src/test as a separate folder where test resources go and is confused by the test-only "component.xml" file.

This issue tracks JBDS issue: https://issues.jboss.org/browse/JBDS-2675

Version-Release number of selected component (if applicable):
WFK 2.3.0.CR1


Workaround is to rename the test components.xml to e.g. components-test.xml and update the shrinkwrap code in the test accordingly.

Comment 1 Sneha 2013-07-04 11:36:06 UTC
Updated doc text.