Hudson-Buckminster No suitable provider [message #499609] |
Mon, 23 November 2009 09:33  |
Eclipse User |
|
|
|
Hi,
I´m trying to set up a buckminster headless Build of my Eclipse RCP. I´ve installed a hudson server and created a RCP Project while following the tutorial on http://www.ralfebert.de/blog/eclipsercp/rcp_builds/
Everything worked fine until I want to build my hudson-job.
When I´m try to build I get the following error:
Gestartet durch Benutzer anonymous
Commandline:
java -Dbuckminster.output.root=/C:/hudson/jobs/rcp_target/workspace//buckminster.output -Dbuckminster.temp.root=/C:/hudson/jobs/rcp_target/workspace//buckminster.temp -DtargetPlatformPath=C:/buckminsterTargetPlatform -jar plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar -application org.eclipse.buckminster.cmdline.headless -data /C:/hudson/jobs/rcp_target/workspace/ --loglevel info -S C:\hudson\jobs\rcp_target\builds\2009-11-23_15-13-24/commands.txt INFO: import 'file:///D:/workspaces/buckminster/com.example.target/target.mspec'
ERROR [0001] : No suitable provider for component com.example.target:eclipse.feature was found in resourceMap file:/D:/workspaces/buckminster/com.example.target/target-resources.rmap
ERROR [0001] : No suitable provider for component com.example.target:eclipse.feature was found in searchPath default
ERROR [0001] : Resolution attempt ended with exception: Provider local(file:///C:/hudson/jobs/rcp_target/workspace/com.example.target/): Missing CSpec source required by component type eclipse.feature
ERROR Provider local(file:///C:/hudson/jobs/rcp_target/workspace/com.example.target/): Missing CSpec source required by component type eclipse.feature
INFO: TAG-ID 0001 = Query for com.example.target:eclipse.feature
Archiviere Artefakte
Finished: FAILURE
I´ve checked my files and compared them to the ones in the tutorial. I think that everything is fine
I´ve even downloaded the original code from the tutorial which is available on [ CODEhttp://github.com/ralfebert/com.example.mail.buckminster][/CODE].
Doe´s anybody has a solution for my problem?
Thanks
[Updated on: Tue, 24 November 2009 01:58] by Moderator
|
|
|
Re: Hudson-Buckminster No suitable provider [message #499682 is a reply to message #499609] |
Mon, 23 November 2009 12:04   |
Eclipse User |
|
|
|
Hi,
I would say that it's very likely that your rmap simply points to a
wrong directory. You probably use a local resolver and look for
${buckminster.component} in workspace root?
It is important to know that buckminster component is the ID, the name
of the component. So if your feature ID is com.example.target, make sure
that the directory where to find that feature xml really is
'${workspace.root}/com.example.target'.
Many people seem to have suffixes like -feature, or .feature at their
feature projects. This will work as well with buckminster, but you need
to state that properly in the rmap. For example you can have 2 different
providers within a searchpath. One applies only for osgi.bundle and
points to something like file:{0}/{1} where {0} is workspace.root and
{1} is buckminster.component. The other only applies for eclipse.feature
component types and points to file:{0}/{1}-suffix
That way buckminster will look for the correct directory name depending
on the type of component.
As a side note, you have more / than necessary in your path:
file:///C:/hudson/jobs/rcp_target/workspace/com.example.targ et/
It should still work, but you might want to fix it anyway.
If that does not help you, it would be best if you'd post your rmap here
and explain how the physical structure of your workspace looks like.
Best regards,
Johannes
TW schrieb:
> Hi,
>
> I´m trying to set up a buckminster headless Build of my Eclipse RCP.
> I´ve installed a hudson server and created a RCP Project while following
> the tutorial on http://www.ralfebert.de/blog/eclipsercp/rcp_builds/
>
> Everything worked fine until I want to build my hudson-job.
>
> When I´m try to build I get the following error:
> Gestartet durch Benutzer anonymous
> Commandline: java
> -Dbuckminster.output.root=/C:/hudson/jobs/rcp_target/workspa ce//buckminster.output
> -Dbuckminster.temp.root=/C:/hudson/jobs/rcp_target/workspace //buckminster.temp
> -DtargetPlatformPath=C:/buckminsterTargetPlatform -jar
> plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715. jar
> -application org.eclipse.buckminster.cmdline.headless -data
> /C:/hudson/jobs/rcp_target/workspace/ --loglevel info -S
> C:\hudson\jobs\rcp_target\builds\2009-11-23_15-13-24/command s.txt INFO:
> import ' file:///D:/workspaces/buckminster/com.example.target/target. mspec'
> ERROR [0001] : No suitable provider for component
> com.example.target:eclipse.feature was found in resourceMap
> file:/D:/workspaces/buckminster/com.example.target/target-re sources.rmap
> ERROR [0001] : No suitable provider for component
> com.example.target:eclipse.feature was found in searchPath default
> ERROR [0001] : Resolution attempt ended with exception: Provider
> local( file:///C:/hudson/jobs/rcp_target/workspace/com.example.targ et/):
> Missing CSpec source required by component type eclipse.feature
> ERROR Provider
> local( file:///C:/hudson/jobs/rcp_target/workspace/com.example.targ et/):
> Missing CSpec source required by component type eclipse.feature
> INFO: TAG-ID 0001 = Query for com.example.target:eclipse.feature
>
> Archiviere Artefakte
> Finished: FAILURE
>
> I´ve checked my files and compared them to the ones in the tutorial. I
> think that everythink is fine I´ve even downloaded the original code
> from the tutorial which is available on
> [ CODEhttp://github.com/ralfebert/com.example.mail.buckminster][/CODE].
>
> Doe´s anybody has a solution for my problem?
> Thanks
|
|
|
|
Re: Hudson-Buckminster No suitable provider [message #499795 is a reply to message #499793] |
Tue, 24 November 2009 03:21   |
Eclipse User |
|
|
|
Hi,
I think there is a slight missunderstanding going on here. Your own
workspace does not count, when I say workspace, I talk about the
Workspace Hudson will create for your job. The Buckminster PlugIn will
set the eclipse data directory (eclipse workspace) for the build to the
hudson workspace, so those two are identical
> This is all information that I have.
> I´m confused about the error log of my previous message. There hudson
> wants to look for a cspeq in file:///C:/hudson/jobs ??
Exactly, all Hudson Workspaces are in HUDSON_HOME/jobs/JOB_NAME. This is
were your plugins/featues need to be during the build. You have two ways
of doing this, either by letting Buckminster checkout your projects, or
by letting Hudson checkout your projects. Since you're using a local
resolver, I guess you let Hudson do the checkout. Did you confirm that
your hudson job workspace has the right contents? i.e. you open the job,
click on 'Workspace' and see all your plugins and features there?
> Eclipse Buckminster 3.5; None: Info(Default); import
> file:///D:/workspaces/buckminster/com.example.target/target. mspec
This is probably not how you want to do it. Like stated earlier, Hudson
creates its own workspace for every job, so you should use it:
import file:/${WORKSPACE}/com.example.target/target.mspec
Best regards,
Johannes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Hudson-Buckminster No suitable provider [message #500447 is a reply to message #500360] |
Thu, 26 November 2009 03:52   |
Eclipse User |
|
|
|
Hi,
I have some good news but also bad news.
Good news:
Your fix seems to work. I can now export the target platform with the variable &{workspace} and set it as targetplatform successful.
The bad news:
My product build fails. I think this has nothing to do with the old bug or your plugin.
I will describe the error, maybe you did already see something like this. Otherwise I may open a new thread.
When I tried to export my product there was the following message in the error log:
The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project
Archiviere Artefakte
Finished: FAILURE
I searched the web and found, that this could has something to do with missing informations in the ".classpath" file in my com.example.mail plugin.
I did not even add the ".classpath" file to my starteam cvs, because I didn´t want to add all metadata files.
For testing purposes I added the .claspath file to my starteam and built the target platform and produt again.
The target platorm build succeeded like it did before. But the interesting thing happened with the product build.
Here the win32 and win64 build succeeded but the both linux and mac builds failed with the following message:
[ant] C:\Buckminsterheadless\plugins\org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
[ant] file:/C:/hudson/jobs/mailApp/workspace/arch/x86/os/macosx/ws/cocoa/buckminster.output/com.example.mail.feature_1.0.0-eclipse.feature/site.p2/
[ant] C:\hudson\jobs\mailApp\workspace\arch\x86\os\macosx\ws\cocoa\buckminster.output\com.example.mail.feature_1.0.0-eclipse.feature\Mail
[ant] Cannot complete the install because one or more required items could not be found.
[ant] Software being installed: mail 1.0.0.200911260948-340cLSJ--7S46yAw311_19220_TB (com.example.mail.product 1.0.0.200911260948-340cLSJ--7S46yAw311_19220_TB)
[ant] Missing requirement for filter (&(osgi.os=macosx)(osgi.ws=cocoa)(osgi.arch=x86)): Eclipse RCP 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6 (org.eclipse.rcp.feature.group 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6) requires 'org.eclipse.equinox.launcher.cocoa.macosx [1.0.1.R35x_v20090707]' but it could not be found
[ant] Cannot satisfy dependency:
[ant] From: Mail Feature 1.0.0.200911260948-340cLSJ--7S46yAw311_19220_TB (com.example.mail.feature.feature.group 1.0.0.200911260948-340cLSJ--7S46yAw311_19220_TB)
[ant] To: org.eclipse.rcp.feature.group [3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6]
[ant] Cannot satisfy dependency:
[ant] From: mail 1.0.0.200911260948-340cLSJ--7S46yAw311_19220_TB (com.example.mail.product 1.0.0.200911260948-340cLSJ--7S46yAw311_19220_TB)
[ant] To: com.example.mail.feature.feature.group [1.0.0.200911260948-340cLSJ--7S46yAw311_19220_TB]
[ant] Application failed, log file location: C:\Buckminsterheadless\configuration\1259225343890.log
ERROR: org.eclipse.core.runtime.CoreException: C:\hudson\jobs\mailApp\workspace\arch\x86\os\macosx\ws\cocoa\com.example.mail.feature\build\product.ant:22: Java returned: 13
org.eclipse.core.runtime.CoreException: C:\hudson\jobs\mailApp\workspace\arch\x86\os\macosx\ws\cocoa\com.example.mail.feature\build\product.ant:22: Java returned: 13
at org.eclipse.buckminster.ant.AntRunner.handleInvocationTargetException(AntRunner.java:189)
at org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:352)
at org.eclipse.buckminster.ant.actor.AntActor.internalPerform(AntActor.java:281)
at org.eclipse.buckminster.core.actor.AbstractActor.perform(AbstractActor.java:201)
at org.eclipse.buckminster.core.internal.actor.PerformManager$DirectActionInvocation.execute(PerformManager.java:151)
at org.eclipse.buckminster.core.internal.actor.PerformManager.internalPerform(PerformManager.java:507)
at org.eclipse.buckminster.core.internal.actor.PerformManager.perform(PerformManager.java:335)
at org.eclipse.buckminster.core.internal.actor.PerformManager.perform(PerformManager.java:350)
at org.eclipse.buckminster.core.commands.Perform.internalRun(Perform.java:118)
at org.eclipse.buckminster.core.commands.WorkspaceCommand.run(WorkspaceCommand.java:191)
at org.eclipse.buckminster.cmdline.AbstractCommand.basicRun(AbstractCommand.java:155)
at org.eclipse.buckminster.cmdline.Headless.run(Headless.java:341)
at org.eclipse.buckminster.cmdline.Headless.run(Headless.java:135)
at org.eclipse.buckminster.cmdline.Headless.start(Headless.java:189)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
Caused by: C:\hudson\jobs\mailApp\workspace\arch\x86\os\macosx\ws\cocoa\com.example.mail.feature\build\product.ant:22: Java returned: 13
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:622)
at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:455)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.buckminster.ant.AntRunner.run(AntRunner.java:344)
... 25 more
C:\hudson\jobs\mailApp\workspace\arch\x86\os\macosx\ws\cocoa\com.example.mail.feature\build\product.ant:22: Java returned: 13
Caused by:
Archiviere Artefakte
Finished: FAILURE
In this message a log is mentioned:
..
[ant] Application failed, log file location: C:\Buckminsterheadless\configuration\1259225343890.log
..
The information in the log says:
!SESSION 2009-11-26 09:49:03.609 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0_09
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Framework arguments: -application org.eclipse.equinox.p2.director -artifactRepository file:file:/C:/hudson/jobs/mailApp/workspace/arch/x86/os/macosx/ws/cocoa/buckminster.output/com.example.mail.feature_1.0.0-eclipse.feature/site.p2/ -metadataRepository file:file:/C:/hudson/jobs/mailApp/workspace/arch/x86/os/macosx/ws/cocoa/buckminster.output/com.example.mail.feature_1.0.0-eclipse.feature/site.p2/ -destination C:\hudson\jobs\mailApp\workspace\arch\x86\os\macosx\ws\cocoa\buckminster.output\com.example.mail.feature_1.0.0-eclipse.feature\Mail -bundlepool C:\hudson\jobs\mailApp\workspace\arch\x86\os\macosx\ws\cocoa\buckminster.output\com.example.mail.feature_1.0.0-eclipse.feature\Mail -profile MailProfile -profileProperties org.eclipse.update.install.features=true -installIU com.example.mail.product -p2.os macosx -p2.ws cocoa -p2.arch x86
Command-line arguments: -application org.eclipse.equinox.p2.director -artifactRepository file:file:/C:/hudson/jobs/mailApp/workspace/arch/x86/os/macosx/ws/cocoa/buckminster.output/com.example.mail.feature_1.0.0-eclipse.feature/site.p2/ -metadataRepository file:file:/C:/hudson/jobs/mailApp/workspace/arch/x86/os/macosx/ws/cocoa/buckminster.output/com.example.mail.feature_1.0.0-eclipse.feature/site.p2/ -destination C:\hudson\jobs\mailApp\workspace\arch\x86\os\macosx\ws\cocoa\buckminster.output\com.example.mail.feature_1.0.0-eclipse.feature\Mail -bundlepool C:\hudson\jobs\mailApp\workspace\arch\x86\os\macosx\ws\cocoa\buckminster.output\com.example.mail.feature_1.0.0-eclipse.feature\Mail -profile MailProfile -profileProperties org.eclipse.update.install.features=true -installIU com.example.mail.product -p2.os macosx -p2.ws cocoa -p2.arch x86 -consoleLog
!ENTRY org.eclipse.equinox.p2.director 4 1 2009-11-26 09:49:05.281
!MESSAGE Cannot complete the install because one or more required items could not be found.
!SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2009-11-26 09:49:05.281
!MESSAGE Software being installed: mail 1.0.0.200911260948-340cLSJ--7S46yAw311_19220_TB (com.example.mail.product 1.0.0.200911260948-340cLSJ--7S46yAw311_19220_TB)
!SUBENTRY 1 org.eclipse.equinox.p2.director 4 0 2009-11-26 09:49:05.281
!MESSAGE Missing requirement for filter (&(osgi.os=macosx)(osgi.ws=cocoa)(osgi.arch=x86)): Eclipse RCP 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6 (org.eclipse.rcp.feature.group 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6) requires 'org.eclipse.equinox.launcher.cocoa.macosx [1.0.1.R35x_v20090707]' but it could not be found
!SUBENTRY 1 org.eclipse.equinox.p2.director 4 1 2009-11-26 09:49:05.281
!MESSAGE Cannot satisfy dependency:
!SUBENTRY 2 org.eclipse.equinox.p2.director 4 0 2009-11-26 09:49:05.281
!MESSAGE From: Mail Feature 1.0.0.200911260948-340cLSJ--7S46yAw311_19220_TB (com.example.mail.feature.feature.group 1.0.0.200911260948-340cLSJ--7S46yAw311_19220_TB)
!SUBENTRY 2 org.eclipse.equinox.p2.director 4 0 2009-11-26 09:49:05.281
!MESSAGE To: org.eclipse.rcp.feature.group [3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6]
!SUBENTRY 1 org.eclipse.equinox.p2.director 4 1 2009-11-26 09:49:05.281
!MESSAGE Cannot satisfy dependency:
!SUBENTRY 2 org.eclipse.equinox.p2.director 4 0 2009-11-26 09:49:05.281
!MESSAGE From: mail 1.0.0.200911260948-340cLSJ--7S46yAw311_19220_TB (com.example.mail.product 1.0.0.200911260948-340cLSJ--7S46yAw311_19220_TB)
!SUBENTRY 2 org.eclipse.equinox.p2.director 4 0 2009-11-26 09:49:05.281
!MESSAGE To: com.example.mail.feature.feature.group [1.0.0.200911260948-340cLSJ--7S46yAw311_19220_TB]
Does anybody know how to fix this error? I think it´s some kind of jre error because the product build works for the system that I´m running but nor for not for mac and linux.
How can I fix this error?
[Updated on: Thu, 26 November 2009 03:54] by Moderator
|
|
|
Re: Hudson-Buckminster No suitable provider [message #500455 is a reply to message #500447] |
Thu, 26 November 2009 04:08   |
Eclipse User |
|
|
|
Hi,
see comments below
TW schrieb:
> Hi,
>
> I have some good news but also bad news.
>
> Good news:
> Your fix seems to work. I can now export the target platform with the
> variable &{workspace} and set it as targetplatform successful.
Good, I'm glad the fix works for you.
> The bad news:
> My product build fails. I think this has nothing to do with the old bug
> or your plugin.
>
> I will describe the error, maybe you did already see something like
> this. Otherwise I may open a new thread.
>
> When I tried to export my product there was the following message in the
> error log:
> The project was not built since its build path is incomplete. Cannot
> find the class file for java.lang.Object. Fix the build path then try
> building this project
> Archiviere Artefakte
> Finished: FAILURE
>
> I searched the web and found, that this could has something to do with
> missing informations in the ".classpath" file in my com.example.mail
> plugin.
>
> I did not even add the ".classpath" file to my starteam cvs, because I
> didn´t want to add all metadata files.
>
You do need the meta data present, and in fact, in general you should
commit meta data like that to the repository (unless you use maven) so
others are able to run/build your projects without too too much
background knowledge.
> !MESSAGE Missing requirement for filter
> (&(osgi.os=macosx)(osgi.ws=cocoa)(osgi.arch=x86)): Eclipse RCP
> 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6
> (org.eclipse.rcp.feature.group
> 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6) requires
> 'org.eclipse.equinox.launcher.cocoa.macosx [1.0.1.R35x_v20090707]' but
> it could not be found
Is org.eclipse.equinox.launcher.cocoa.macosx [1.0.1.R35x_v20090707] part
of your target platform?
Best regards,
Johannes
|
|
|
Re: Hudson-Buckminster No suitable provider [message #500463 is a reply to message #500455] |
Thu, 26 November 2009 04:44  |
Eclipse User |
|
|
|
Hi,
hm sounds like this could be the problem.
When I look into my target platform there is a
- org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar file and two folders:
- org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v200905 19
- org.eclipse.equinox.launcher.win32.win32.x86_64_1.0.200.v200 90519
exactly the launchers for the operation system for which hudson successfully builds the produt.
I did check my target.cquery file and saw, that I forgot to add the target.ws = * property.
Now everything works fine and I can build successful my products for every os and architecture.
Thanks for your support and the invested time.
Greetings, TW
|
|
|