Skip to main content



      Home
Home » Archived » Buckminster » Missing CSpec source required by component type osgi.bundle(can't get the project to materialize )
Missing CSpec source required by component type osgi.bundle [message #647716] Fri, 07 January 2011 19:05 Go to next message
Eclipse UserFriend
I am following the tutorial http://www.ralfebert.de/blog/eclipsercp/rcp_builds I got the code to build inside of Eclipse. Now I'm trying to get it to run on disk. ( I eventually will get it building in a CI system, not Hudson). So I exported the code to a disk location.
Here is my cquery:
<?xml version="1.0" encoding="UTF-8"?>
<cq:componentQuery xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0" resourceMap="site.rmap">
<cq:rootRequest name="com.example.mail.site" componentType="osgi.bundle"/>
</cq:componentQuery>

and my rmap:

<?xml version="1.0" encoding="UTF-8"?>
<rmap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.eclipse.org/buckminster/RMap-1.0"
xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0" xmlns:mp="http://www.eclipse.org/buckminster/MavenProvider-1.0"
xmlns:pp="http://www.eclipse.org/buckminster/PDEMapProvider-1.0">
<searchPath name="resources">
<provider readerType="local" componentTypes="osgi.bundle,eclipse.feature"
mutable="true" source="true">
<uri format="file:{0}/{1}">
<bc:propertyRef key="workspace.root" />
<bc:propertyRef key="buckminster.component" />
</uri>
</provider>
</searchPath>
<locator searchPathRef="resources" />
</rmap>

here is my script file I pass to Buckminster:
clean
importtargetdefinition -A com.example.mail.site/rcp.target
import --continueonerror com.example.mail.site/site.cquery
build

I run Buckminster in the parent directory of all of the plugins/features. Here is what I get when I run Buckminster:

~/wip/mail$ ../buckminster/buckminster --loglevel INFO --scriptfile mail.buckminster.commands -data buckWs
INFO: clean
INFO: importtargetdefinition '-A' 'com.example.mail.site/rcp.target'
INFO: import '--continueonerror' 'com.example.mail.site/site.cquery'
ERROR [0001] : No suitable provider for component com.example.mail.site:osgi.bundle was found in resourceMap file:/usr/local/google/home/mrrussell/wip/mail/com.example.m ail.site/site.rmap
ERROR [0001] : No suitable provider for component com.example.mail.site:osgi.bundle was found in searchPath resources
ERROR [0001] : Resolution attempt ended with exception: Provider local(file:/usr/local/google/home/mrrussell/wip/mail/buckWs/ com.example.mail.site): Missing CSpec source required by component type osgi.bundle
ERROR Provider local(file:/usr/local/google/home/mrrussell/wip/mail/buckWs/ com.example.mail.site): Missing CSpec source required by component type osgi.bundle
INFO: TAG-ID 0001 = Query for com.example.mail.site:osgi.bundle

ERROR [0000] : Attempt to use an unresolved node. Request is com.example.mail.site:osgi.bundle
ERROR: Errors and Warnings
org.eclipse.core.runtime.CoreException: Errors and Warnings
at org.eclipse.buckminster.runtime.BuckminsterException.wrap(Bu ckminsterException.java:96)
at org.eclipse.buckminster.core.materializer.MaterializationJob .internalRun(MaterializationJob.java:149)
at org.eclipse.buckminster.core.materializer.MaterializationJob .run(MaterializationJob.java:125)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Contains: [0000] : Attempt to use an unresolved node. Request is com.example.mail.site:osgi.bundle


I'm trying to prove to some of my coworkers we should move to buckminster. I have to show them something on Monday so any help would be appreciated.

Thanks in Advance for all of the help.

Re: Missing CSpec source required by component type osgi.bundle [message #647723 is a reply to message #647716] Sat, 08 January 2011 01:28 Go to previous messageGo to next message
Eclipse UserFriend
Hi Mark,
You get the message:

" local(file:/usr/local/google/home/mrrussell/wip/mail/buckWs/ com.example.mail.site): Missing CSpec source required by
component type osgi.bundle"

This means two things:

1. Buckminster is looking for an OSGi bundle that is named com.example.mail.site. Is that really a bundle? Perhaps your
CQUERY should be changed to query for a feature?

2. Buckminster does find the folder, but once there, it cannot locate what it needs in order to make sense of the bundle
it was expected to find. I.e. there's no META-INF/MANIFEST.MF in the buckWS/com.example.mail.site folder.

HTH,
- thomas

On 2011-01-08 01:05, Mark Russell wrote:
> I am following the tutorial http://www.ralfebert.de/blog/eclipsercp/rcp_builds I got the code to build inside of
> Eclipse. Now I'm trying to get it to run on disk. ( I eventually will get it building in a CI system, not Hudson). So I
> exported the code to a disk location.
> Here is my cquery:
> <?xml version="1.0" encoding="UTF-8"?>
> <cq:componentQuery xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0" resourceMap="site.rmap">
> <cq:rootRequest name="com.example.mail.site" componentType="osgi.bundle"/>
> </cq:componentQuery>
>
> and my rmap:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <rmap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.eclipse.org/buckminster/RMap-1.0"
> xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0" xmlns:mp="http://www.eclipse.org/buckminster/MavenProvider-1.0"
> xmlns:pp="http://www.eclipse.org/buckminster/PDEMapProvider-1.0">
> <searchPath name="resources">
> <provider readerType="local" componentTypes="osgi.bundle,eclipse.feature"
> mutable="true" source="true">
> <uri format="file:{0}/{1}">
> <bc:propertyRef key="workspace.root" />
> <bc:propertyRef key="buckminster.component" />
> </uri>
> </provider>
> </searchPath>
> <locator searchPathRef="resources" />
> </rmap>
>
> here is my script file I pass to Buckminster:
> clean
> importtargetdefinition -A com.example.mail.site/rcp.target import --continueonerror com.example.mail.site/site.cquery
> build
>
> I run Buckminster in the parent directory of all of the plugins/features. Here is what I get when I run Buckminster:
> ~/wip/mail$ ../buckminster/buckminster --loglevel INFO --scriptfile mail.buckminster.commands -data buckWs INFO: clean
> INFO: importtargetdefinition '-A' 'com.example.mail.site/rcp.target'
> INFO: import '--continueonerror' 'com.example.mail.site/site.cquery'
> ERROR [0001] : No suitable provider for component com.example.mail.site:osgi.bundle was found in resourceMap
> file:/usr/local/google/home/mrrussell/wip/mail/com.example.m ail.site/site.rmap
> ERROR [0001] : No suitable provider for component com.example.mail.site:osgi.bundle was found in searchPath resources
> ERROR [0001] : Resolution attempt ended with exception: Provider
> local(file:/usr/local/google/home/mrrussell/wip/mail/buckWs/ com.example.mail.site): Missing CSpec source required by
> component type osgi.bundle
> ERROR Provider local(file:/usr/local/google/home/mrrussell/wip/mail/buckWs/ com.example.mail.site): Missing CSpec source
> required by component type osgi.bundle
> INFO: TAG-ID 0001 = Query for com.example.mail.site:osgi.bundle
>
> ERROR [0000] : Attempt to use an unresolved node. Request is com.example.mail.site:osgi.bundle
> ERROR: Errors and Warnings
> org.eclipse.core.runtime.CoreException: Errors and Warnings
> at org.eclipse.buckminster.runtime.BuckminsterException.wrap(Bu ckminsterException.java:96)
> at org.eclipse.buckminster.core.materializer.MaterializationJob .internalRun(MaterializationJob.java:149)
> at org.eclipse.buckminster.core.materializer.MaterializationJob .run(MaterializationJob.java:125)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
> Contains: [0000] : Attempt to use an unresolved node. Request is com.example.mail.site:osgi.bundle
>
>
> I'm trying to prove to some of my coworkers we should move to buckminster. I have to show them something on Monday so
> any help would be appreciated.
>
> Thanks in Advance for all of the help.
>
>
Re: Missing CSpec source required by component type osgi.bundle [message #647846 is a reply to message #647723] Sun, 09 January 2011 19:54 Go to previous messageGo to next message
Eclipse UserFriend
Thomas, thanks for getting back to me. You are correct com.example.mail.site was a feature so I changed the CQUERY to be an eclipse feature.

it now looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<cq:componentQuery xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0" resourceMap="site.rmap">
<cq:rootRequest name="com.example.mail.site" componentType="eclipse.feature"/>
</cq:componentQuery>

here is a directory listing of com.example.mail.site:
drwxr-x--- 2 mrrussell eng 4096 Jan 9 15:26 ./
drwxr-x--- 6 mrrussell eng 4096 Jan 9 15:32 ../
-rw-r----- 1 mrrussell eng 376 Jan 9 15:26 .project
-rw-r----- 1 mrrussell eng 301 Jan 9 15:26 buckminster.properties
-rw-r----- 1 mrrussell eng 27 Jan 9 15:26 build.properties
-rw-r----- 1 mrrussell eng 590 Jan 9 15:26 feature.xml
-rw-r----- 1 mrrussell eng 503 Jan 9 15:26 rcp.target
-rw-r----- 1 mrrussell eng 244 Jan 9 15:26 site.cquery
-rw-r----- 1 mrrussell eng 718 Jan 9 15:26 site.rmap

Here is what I get when I run Buckminster:
. . .
import '--continueonerror' 'com.example.mail.site/site.cquery'
Platform install location: /usr/local/google/home/mrrussell/wip/buckminster
Target platform provided by class org.eclipse.buckminster.pde.internal.PDETargetPlatform
com.example.mail.site:eclipse.feature: Using resolver rmap
com.example.mail.site:eclipse.feature: Using resolver Local resolver
com.example.mail.site:eclipse.feature: Trying provider local(materialized)
No materialization found for com.example.mail.site:eclipse.feature
com.example.mail.site:eclipse.feature: Trying provider local(workspace)
No open workspace project found that corresponds to com.example.mail.site:eclipse.feature
com.example.mail.site:eclipse.feature: Trying provider local(target)
com.example.mail.site:eclipse.feature: Rejecting provider eclipse.platform(feature/com.example.mail.site): No component match was found
com.example.mail.site:eclipse.feature: Using resource map file:/usr/local/google/home/mrrussell/wip/mail/com.example.m ail.site/site.rmap
com.example.mail.site:eclipse.feature: Using search path resources
com.example.mail.site:eclipse.feature: Trying provider local(file:{0}/{1}[file:/usr/local/google/home/mrrussell/wip /mail/buckWs/com.example.mail.site])
com.example.mail.site:eclipse.feature: Found match
com.example.mail.site:eclipse.feature: Using provider local(file:{0}/{1}[file:/usr/local/google/home/mrrussell/wip /mail/buckWs/com.example.mail.site])
com.example.mail.site:eclipse.feature: Resolution attempt ended with exception: Provider local(file:/usr/local/google/home/mrrussell/wip/mail/buckWs/ com.example.mail.site): Missing CSpec source required by component type eclipse.feature
com.example.mail.site:eclipse.feature: No provider was found that could resolve the request
ERROR [0001] : No suitable provider for component com.example.mail.site:eclipse.feature was found in resourceMap file:/usr/local/google/home/mrrussell/wip/mail/com.example.m ail.site/site.rmap
ERROR [0001] : No suitable provider for component com.example.mail.site:eclipse.feature was found in searchPath resources
ERROR [0001] : Resolution attempt ended with exception: Provider local(file:/usr/local/google/home/mrrussell/wip/mail/buckWs/ com.example.mail.site): Missing CSpec source required by component type eclipse.feature
ERROR Provider local(file:/usr/local/google/home/mrrussell/wip/mail/buckWs/ com.example.mail.site): Missing CSpec source required by component type eclipse.feature
INFO: TAG-ID 0001 = Query for com.example.mail.site:eclipse.feature

ERROR [0000] : Attempt to use an unresolved node. Request is com.example.mail.site:eclipse.feature
ERROR: Errors and Warnings
org.eclipse.core.runtime.CoreException: Errors and Warnings
at org.eclipse.buckminster.runtime.BuckminsterException.wrap(Bu ckminsterException.java:96)
at org.eclipse.buckminster.core.materializer.MaterializationJob .internalRun(MaterializationJob.java:149)
at org.eclipse.buckminster.core.materializer.MaterializationJob .run(MaterializationJob.java:125)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Contains: [0000] : Attempt to use an unresolved node. Request is com.example.mail.site:eclipse.feature


It looks like com.example.mail.site is a feature and has the correct meta data to be a feature. But I can not get Buckminster to build it. I know I'm doing something wrong I just can't see it.

Thanks again
Mark R Russell
Google


Re: Missing CSpec source required by component type osgi.bundle [message #647856 is a reply to message #647846] Mon, 10 January 2011 02:08 Go to previous messageGo to next message
Eclipse UserFriend
The only things I can think of is that you either have a corrupt feature.xml or build.properties. Does the feature.xml
contain a feature with another name than 'com.example.mail.site'? Does Buckminster have read permissions?

- thomas


On 2011-01-10 01:54, Mark Russell wrote:
> Thomas, thanks for getting back to me. You are correct com.example.mail.site was a feature so I changed the CQUERY to be
> an eclipse feature.
>
> it now looks like this:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <cq:componentQuery xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0" resourceMap="site.rmap">
> <cq:rootRequest name="com.example.mail.site" componentType="eclipse.feature"/>
> </cq:componentQuery>
>
> here is a directory listing of com.example.mail.site:
> drwxr-x--- 2 mrrussell eng 4096 Jan 9 15:26 ./
> drwxr-x--- 6 mrrussell eng 4096 Jan 9 15:32 ../
> -rw-r----- 1 mrrussell eng 376 Jan 9 15:26 .project
> -rw-r----- 1 mrrussell eng 301 Jan 9 15:26 buckminster.properties
> -rw-r----- 1 mrrussell eng 27 Jan 9 15:26 build.properties
> -rw-r----- 1 mrrussell eng 590 Jan 9 15:26 feature.xml
> -rw-r----- 1 mrrussell eng 503 Jan 9 15:26 rcp.target
> -rw-r----- 1 mrrussell eng 244 Jan 9 15:26 site.cquery
> -rw-r----- 1 mrrussell eng 718 Jan 9 15:26 site.rmap
>
> Here is what I get when I run Buckminster:
> . .
> import '--continueonerror' 'com.example.mail.site/site.cquery'
> Platform install location: /usr/local/google/home/mrrussell/wip/buckminster
> Target platform provided by class org.eclipse.buckminster.pde.internal.PDETargetPlatform
> com.example.mail.site:eclipse.feature: Using resolver rmap
> com.example.mail.site:eclipse.feature: Using resolver Local resolver
> com.example.mail.site:eclipse.feature: Trying provider local(materialized)
> No materialization found for com.example.mail.site:eclipse.feature
> com.example.mail.site:eclipse.feature: Trying provider local(workspace)
> No open workspace project found that corresponds to com.example.mail.site:eclipse.feature
> com.example.mail.site:eclipse.feature: Trying provider local(target)
> com.example.mail.site:eclipse.feature: Rejecting provider eclipse.platform(feature/com.example.mail.site): No component
> match was found
> com.example.mail.site:eclipse.feature: Using resource map file:/usr/local/google/home/mrrussell/wip/mail/com.example.m
> ail.site/site.rmap
> com.example.mail.site:eclipse.feature: Using search path resources
> com.example.mail.site:eclipse.feature: Trying provider local(file:{0}/{1}[file:/usr/local/google/home/mrrussell/wip
> /mail/buckWs/com.example.mail.site])
> com.example.mail.site:eclipse.feature: Found match com.example.mail.site:eclipse.feature: Using provider
> local(file:{0}/{1}[file:/usr/local/google/home/mrrussell/wip /mail/buckWs/com.example.mail.site])
> com.example.mail.site:eclipse.feature: Resolution attempt ended with exception: Provider
> local(file:/usr/local/google/home/mrrussell/wip/mail/buckWs/ com.example.mail.site): Missing CSpec source required by
> component type eclipse.feature
> com.example.mail.site:eclipse.feature: No provider was found that could resolve the request
> ERROR [0001] : No suitable provider for component com.example.mail.site:eclipse.feature was found in resourceMap
> file:/usr/local/google/home/mrrussell/wip/mail/com.example.m ail.site/site.rmap
> ERROR [0001] : No suitable provider for component com.example.mail.site:eclipse.feature was found in searchPath resources
> ERROR [0001] : Resolution attempt ended with exception: Provider
> local(file:/usr/local/google/home/mrrussell/wip/mail/buckWs/ com.example.mail.site): Missing CSpec source required by
> component type eclipse.feature
> ERROR Provider local(file:/usr/local/google/home/mrrussell/wip/mail/buckWs/ com.example.mail.site): Missing CSpec source
> required by component type eclipse.feature
> INFO: TAG-ID 0001 = Query for com.example.mail.site:eclipse.feature
>
> ERROR [0000] : Attempt to use an unresolved node. Request is com.example.mail.site:eclipse.feature
> ERROR: Errors and Warnings
> org.eclipse.core.runtime.CoreException: Errors and Warnings
> at org.eclipse.buckminster.runtime.BuckminsterException.wrap(Bu ckminsterException.java:96)
> at org.eclipse.buckminster.core.materializer.MaterializationJob .internalRun(MaterializationJob.java:149)
> at org.eclipse.buckminster.core.materializer.MaterializationJob .run(MaterializationJob.java:125)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
> Contains: [0000] : Attempt to use an unresolved node. Request is com.example.mail.site:eclipse.feature
>
>
> It looks like com.example.mail.site is a feature and has the correct meta data to be a feature. But I can not get
> Buckminster to build it. I know I'm doing something wrong I just can't see it.
>
> Thanks again
> Mark R Russell
> Google
>
>
>
Re: Missing CSpec source required by component type osgi.bundle [message #649757 is a reply to message #647856] Thu, 20 January 2011 09:32 Go to previous messageGo to next message
Eclipse UserFriend
Sorry it took so long to get back. I've been burried in work for the past few weeks.

here is the feature.xml:

~/wip/mail$ cat com.example.mail.site/feature.xml
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="com.example.mail.site"
label="Site"
version="1.0.0.qualifier"
provider-name="EXAMPLE">

<description>
Mail Sample
</description>

<copyright url="http://google.com/copyright">
Copyright 2011
</copyright>

<license>
EPL
</license>

<includes
id="com.example.mail.feature"
version="0.0.0"/>

</feature>

it looks correct to me.

all files have read permission by me who is running Buckminster. Is there any way to turn on some tracing to see what is going on?
Re: Missing CSpec source required by component type osgi.bundle [message #649893 is a reply to message #647846] Thu, 20 January 2011 16:24 Go to previous messageGo to next message
Eclipse UserFriend
On 2011-01-10 01:54:51 +0100, Mark Russell said:

> com.example.mail.site:eclipse.feature: Using resource map
> file:/usr/local/google/home/mrrussell/wip/mail/com.example.m
> ail.site/site.rmap
> com.example.mail.site:eclipse.feature: Using search path resources
> com.example.mail.site:eclipse.feature: Trying provider
> local(file:{0}/{1}[file:/usr/local/google/home/mrrussell/wip
> /mail/buckWs/com.example.mail.site])
> com.example.mail.site:eclipse.feature: Found match
> com.example.mail.site:eclipse.feature: Using provider
> local(file:{0}/{1}[file:/usr/local/google/home/mrrussell/wip
> /mail/buckWs/com.example.mail.site])
> com.example.mail.site:eclipse.feature: Resolution attempt ended with
> exception: Provider
> local(file:/usr/local/google/home/mrrussell/wip/mail/buckWs/
> com.example.mail.site): Missing CSpec source required by component type
> eclipse.feature
> com.example.mail.site:eclipse.feature: No provider was found that could
> resolve the request
> ERROR [0001] : No suitable provider for component
> com.example.mail.site:eclipse.feature was found in resourceMap
> file:/usr/local/google/home/mrrussell/wip/mail/com.example.m
> ail.site/site.rmap
> ERROR [0001] : No suitable provider for component
> com.example.mail.site:eclipse.feature was found in searchPath resources
> ERROR [0001] : Resolution attempt ended with exception: Provider
> local(file:/usr/local/google/home/mrrussell/wip/mail/buckWs/
> com.example.mail.site): Missing CSpec source required by component type
> eclipse.feature
> ERROR Provider
> local(file:/usr/local/google/home/mrrussell/wip/mail/buckWs/
> com.example.mail.site): Missing CSpec source required by component type
> eclipse.feature
> INFO: TAG-ID 0001 = Query for com.example.mail.site:eclipse.feature

Hi Mark,

your feature 'com.example.mail.site' seems to be located at
'/usr/local/google/home/mrrussell/wip/mail/com.example.mail. site' but
the provider in your RMap does direct to
'/usr/local/google/home/mrrussell/wip/mail/buckWs/
com.example.mail.site'. So am I right if I say that there is no
'com.example.mail.site' feature in you 'buckWS' Workspace directory? If
that's the case you may move the 'com.example.mail.site' folder into
the 'buckWs'. Or you have to change your RMap.

Maybe I was able to help...

- Matthias
Re: Missing CSpec source required by component type osgi.bundle [message #649914 is a reply to message #649893] Thu, 20 January 2011 18:16 Go to previous message
Eclipse UserFriend
Matthias:
thanks for pointing that out to me. I don't know how many hours I looked at that and still missed it. Thanks for a second set of eyes. It works now.

-Mark

[Updated on: Thu, 20 January 2011 18:17] by Moderator

Previous Topic:RMAP issue with prebuilt plugins (attempt 2)
Next Topic:Product installed with optional bundles not included in any of its features
Goto Forum:
  


Current Time: Sun Aug 31 14:04:22 EDT 2025

Powered by FUDForum. Page generated in 0.04303 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top