Bug 1124501

Summary: Duplicate Name: The name "GreetingService" must be unique among services, references and component services.
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Tomas Rohovsky <trohovsk>
Component: SwitchYardAssignee: Rob Cernich <rcernich>
Status: NEW --- QA Contact: Matej Melko <mmelko>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.0 GACC: oskutka, soa-p-jira
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 Tomas Rohovsky 2014-07-29 16:00:08 UTC
I have two composite services and two component services (each associated to a component with different implementation) - all services have the same name. The tooling shows error markers with the message: "Duplicate Name: The name "GreetingService" must be unique among services, references and component services."

But it is possible to deploy such an application, with no warning from the maven-switchyard-plugin and no warning from the runtime. If bindings on those services are invoked (each contains HTTP binding with a different context path), then one component implementation is invoked each time.

It should be disallowed to deploy such an application.

See the attached reproducer for more details.