Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 322490

Summary: Service references to dependent projects do not work
Product: z_Archived Reporter: Sebastian <onceonly123>
Component: STPAssignee: Vincent Zurczak <vincent.zurczak>
Status: ASSIGNED --- QA Contact: Oisin Hurley <oisin.hurley>
Severity: normal    
Priority: P3 CC: vincent.zurczak
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Export of the two Eclipse projects to zip file none

Description Sebastian CLA 2010-08-12 05:24:56 EDT
While trying to implement the introducing-tours example from the
TuscanySCAInAction book, I ran into a bug: A reference from a composite 
to a composite located in another project or in a jar file does
not work.

Example:
There is a tours.composite file in an Eclipse project called
"Tours" which references a service like this:

<?xml version="1.0" encoding="UTF-8"? <sca:composite
xmlns:sca="http://www.osoa.org/xmlns/sca/1.0" name="tours" targetNamespace="http://tuscanyscatours.com/"
<sca:component name="TripBooking"

<sca:reference name="mytrips" target="TripProvider/Trips"
<sca:interface.java interface="com.tripprovider.Trips" /
</sca:reference

</sca:component

</sca:composite

When I use the SCA Builder or try to open the composite in the
SCA composite model editor, I get an
UnresolvedReferenceException for mytrips and the project
is marked as having an error.

Adding a project reference from Tours to Trips doesn't help, neither
does adding the Trips jar file to the project libraries.

The Java project compiles all right and the composites can be deployed together,
it's only the SCA Builder that is at fault.

-- Sebastian Millies

SOA Tools Platform
Version: 2.1.0.201006151053

Eclipse Version: Helios Release
Build id: 20100617-1415
Comment 1 Vincent Zurczak CLA 2010-08-12 05:28:49 EDT
Hi,

We are currently refactoring the SCA tools (including the SCA builder).
I will take a look at it and do the necessary.
Comment 2 Sebastian CLA 2010-08-12 05:30:08 EDT
Created attachment 176446 [details]
Export of the two Eclipse projects to zip file