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

Bug 364977

Summary: Buckminster PSF provider not working
Product: z_Archived Reporter: Volker Stolz <stolz+bugzilla>
Component: BuckminsterAssignee: buckminster.core-inbox <buckminster.core-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: thomas
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: other   
Whiteboard:

Description Volker Stolz CLA 2011-11-28 12:16:00 EST
Build Identifier: Buckminster 3.7 headless

After discussion with Thomas H. in http://www.eclipse.org/forums/index.php/t/262003/, this feature may indeed be broken. Two sample files with bogus data are available for testing. The actual error message indicates that XML processing fails or does not have all necessary data available.

-bash-3.00$ ./buckminster -L debug -data ~/workspace import ../workspace/rcos.cquery 
import '../workspace/rcos.cquery'
Platform install location: /rpool/localhome/vs/bucky37-hudson
Target platform provided by class org.eclipse.buckminster.pde.internal.PDETargetPlatform
edu.unu.iist.rcos.mm.resources:eclipse.feature: Using resolver rmap
edu.unu.iist.rcos.mm.resources:eclipse.feature: Using resolver Local resolver
edu.unu.iist.rcos.mm.resources:eclipse.feature: Trying provider local(materialized)
No materialization found for edu.unu.iist.rcos.mm.resources:eclipse.feature
edu.unu.iist.rcos.mm.resources:eclipse.feature: Trying provider local(workspace)
No open workspace project found that corresponds to edu.unu.iist.rcos.mm.resources:eclipse.feature
edu.unu.iist.rcos.mm.resources:eclipse.feature: Trying provider local(target)
edu.unu.iist.rcos.mm.resources:eclipse.feature: Rejecting provider eclipse.platform(feature/edu.unu.iist.rcos.mm.resources): No component match was found
ERROR   [0001] : org.xml.sax.SAXParseException: cvc-elt.4.2: Cannot resolve 'psf:PSFProvider' to a type definition for element 'rm:provider'.: file:/rpool/localhome/vs/workspace/rcos.rmap at line: 5 column: 34
INFO:  TAG-ID 0001 = Query for edu.unu.iist.rcos.mm.resources:eclipse.feature

1) rcos.rmap

<rm:rmap xmlns:rm="http://www.eclipse.org/buckminster/RMap-1.0" xmlns:xi="http://www.w3.org/2001/XMLSchema-instance" xmlns:psf="http://www.eclipse.org/buckminster/PSFProvider-1.0">
 <rm:locator pattern="edu.unu" searchPathRef="rCOS"/>
 <rm:searchPath name="rCOS">
<rm:provider xi:type="psf:PSFProvider" psfFile="rCOS-Modeler.psf" readerType="svn" componentTypes="osgi.bundle,eclipse.feature,buckminster"
  mutable="false" source="true">
       <rm:uri format="http://svn.re.po/path/" />
</rm:provider>
</rm:searchPath>
</rm:rmap>

2) rcos.cquery
<?xml version="1.0" encoding="UTF-8"?>
<cq:componentQuery xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0" resourceMap="file:rcos.rmap">
   <cq:rootRequest name="edu.unu.iist.rcos.mm.resources" componentType="eclipse.feature"/>
</cq:componentQuery>

Reproducible: Always

Steps to Reproduce:
1. Get Buckminster (headless), install Buckminster PSF support
2. try to import the attached CQUERY