Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Online Bundle Repositories - springsource bundle repository
Online Bundle Repositories - springsource bundle repository [message #385226] Wed, 13 May 2009 18:46 Go to next message
Alex Chatziparaskewas is currently offline Alex ChatziparaskewasFriend
Messages: 52
Registered: July 2009
Member
Hi

Unfortunately, I have to re-open the discussion on the topic of the
springsource bundle repository.

I am trying to meterialize bundles from the springsource repository using
the following searchPath definition:

<searchPath name="com.springsource">
<provider readerType="url" componentTypes="osgi.bundle"
mutable="false" source="false">
<uri
format=" http://www.springsource.com/repository/app/bundle/version/do wnload?name={0}&amp;version={1}&amp;type=binary">
<bc:propertyRef key="buckminster.component" />
<bc:replace pattern=".*([0-9]+\.[0-9]+\.[0-9]+).*"
replacement="$1">
<bc:propertyRef key="buckminster.version.designator" />
</bc:replace>
</uri>
</provider>
</searchPath>

The one thing to notice is the fact that the springsource repository does
not provide bundles via 'direct links' but instead URL parameters (name,
version, type), must be used.

Trying to resolve something like com.springsource.org.apache.log4j,
version 1.2.15 works fine in buckminster. However, during the
materialization phase the url reader seems to neglect the URL parameters
and the materialization fails with the following error:

ERROR [0003] : java.io.FileNotFoundException:
http://www.springsource.com/repository/app/bundle/version/do wnload/plugins/com.springsource.org.apache.log4j_1.2.15.jar
Errors and Warnings
org.eclipse.core.runtime.CoreException: Errors and Warnings
at
org.eclipse.buckminster.core.materializer.MaterializationJob .waitForJobs(MaterializationJob.java:307)
at
org.eclipse.buckminster.core.materializer.MaterializationJob .internalRun(MaterializationJob.java:177)
at
org.eclipse.buckminster.core.materializer.MaterializationJob .run(MaterializationJob.java:149)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Contains: [0000] : Start mirroring
Contains: [0000] : End mirroring
Contains: [0003] : java.io.FileNotFoundException:
http://www.springsource.com/repository/app/bundle/version/do wnload/plugins/com.springsource.org.apache.log4j_1.2.15.jar

Thanks & Kind Regards
Alex
Re: Online Bundle Repositories - springsource bundle repository [message #385362 is a reply to message #385226] Wed, 13 May 2009 20:45 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi Alex,
Is there a page where you can get a complete list of all springsource bundles? If so, you might try the provider Matcher
component. It uses patterns to extract version information etc. from a page. That information can then be used by
Buckminster to find the component and build the URI for its location using an <uri> element.

http://wiki.eclipse.org/Buckminster_component_meta-data_lang uage_(Reference)_-_LATEST#Provider_Matcher_component

Regards,
Thomas Hallgren


Alex Chatziparaskewas wrote:
> Hi
>
> Unfortunately, I have to re-open the discussion on the topic of the
> springsource bundle repository.
> I am trying to meterialize bundles from the springsource repository
> using the following searchPath definition:
>
> <searchPath name="com.springsource">
> <provider readerType="url" componentTypes="osgi.bundle"
> mutable="false" source="false">
> <uri
> format=" http://www.springsource.com/repository/app/bundle/version/do wnload?name={0}&amp;version={1}&amp;type=binary">
>
> <bc:propertyRef key="buckminster.component" />
> <bc:replace pattern=".*([0-9]+\.[0-9]+\.[0-9]+).*"
> replacement="$1">
> <bc:propertyRef key="buckminster.version.designator" />
> </bc:replace>
> </uri>
> </provider>
> </searchPath>
>
> The one thing to notice is the fact that the springsource repository
> does not provide bundles via 'direct links' but instead URL parameters
> (name, version, type), must be used.
> Trying to resolve something like com.springsource.org.apache.log4j,
> version 1.2.15 works fine in buckminster. However, during the
> materialization phase the url reader seems to neglect the URL parameters
> and the materialization fails with the following error:
>
> ERROR [0003] : java.io.FileNotFoundException:
> http://www.springsource.com/repository/app/bundle/version/do wnload/plugins/com.springsource.org.apache.log4j_1.2.15.jar
>
> Errors and Warnings
> org.eclipse.core.runtime.CoreException: Errors and Warnings
> at
> org.eclipse.buckminster.core.materializer.MaterializationJob .waitForJobs(MaterializationJob.java:307)
>
> at
> org.eclipse.buckminster.core.materializer.MaterializationJob .internalRun(MaterializationJob.java:177)
>
> at
> org.eclipse.buckminster.core.materializer.MaterializationJob .run(MaterializationJob.java:149)
>
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> Contains: [0000] : Start mirroring
> Contains: [0000] : End mirroring
> Contains: [0003] : java.io.FileNotFoundException:
> http://www.springsource.com/repository/app/bundle/version/do wnload/plugins/com.springsource.org.apache.log4j_1.2.15.jar
>
>
> Thanks & Kind Regards
> Alex
>
>
Re: Online Bundle Repositories - springsource bundle repository [message #385363 is a reply to message #385362] Wed, 13 May 2009 21:04 Go to previous messageGo to next message
Eric Jain is currently offline Eric JainFriend
Messages: 266
Registered: July 2009
Senior Member
http://www.springsource.com/repository/app/search/atom?query =&type=bundlesByName
Re: Online Bundle Repositories - springsource bundle repository [message #385364 is a reply to message #385363] Thu, 14 May 2009 07:13 Go to previous messageGo to next message
Alex Chatziparaskewas is currently offline Alex ChatziparaskewasFriend
Messages: 52
Registered: July 2009
Member
Hi

I have tried it, but so far I have failed.

<searchPath name="com.springsource">
<provider readerType="eclipse.import" componentTypes="osgi.bundle"
mutable="false" source="false">
<matcher
base=" http://www.springsource.com/repository/app/search/atom?query =&amp;type=bundlesByName">
<group name="MATCH">
<name pattern="([a-zA-Z0-9]+\.)*[a-zA-Z0-9_]+"
prefix=" http://www.springsource.com/repository/app/bundle/version/do wnload?name="
suffix="&amp;version="/>
<version
pattern="[0-9]+(\.[0-9]+){0,2}(\.[a-zA-Z0-9-_]+)?"
suffix="&amp;type=binary"/>
</group>
</matcher>
<uri format="${MATCH}" />
</provider>
</searchPath>

I can 'see' buckminster going to that page and downloading the whole
shebang, but it fails to resolve anything from that page, albeit I would
say that the regex should match something.

So for the moment I have turned back to my original idea:

<searchPath name="com.springsource">
<provider readerType="url" componentTypes="osgi.bundle"
mutable="false" source="false">
<uri
format=" http://www.springsource.com/repository/app/bundle/version/do wnload?name={0}&amp;version={1}&amp;type=binary">
<bc:propertyRef key="buckminster.component" />
<bc:replace pattern=".*([0-9]+\.[0-9]+\.[0-9]+).*"
replacement="$1">
<bc:propertyRef key="buckminster.version.designator" />
</bc:replace>
</uri>
</provider>
</searchPath>

Here, buckminster is able to resolve the bundle, but on materialization
logs the following:

INFO [0000] : Start mirroring
INFO [0000] : End mirroring
INFO [0005] : An exception occurred while downloading feature from
" file:/C:/DOCUME~1/uide7730/LOCALS~1/Temp/bmsite53243tmp/feat ures/buckminster.temp_0.1.0.20090514090127.jar ".

I have seen as well errors being thrown by the 'UpdateStateManager' or
'UpdateManager' on 'copy' (but that was before I updated to the latest
buckminster version yesterday evening).

Regards
Alex


Eric Jain wrote:

>
http://www.springsource.com/repository/app/search/atom?query =&type=bundlesByName
Re: Online Bundle Repositories - springsource bundle repository [message #385367 is a reply to message #385364] Thu, 14 May 2009 08:29 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi Alex.
The problem might be that you use an eclipse.import reader. That reader expects to find an update site, an eclipse
installation, or a map file. Not explicit URL's appointing bundle jars. If you haven't already, try combining it with
readerType="url" instead.

- thomas

Alex Chatziparaskewas wrote:
> Hi
> I have tried it, but so far I have failed.
>
> <searchPath name="com.springsource">
> <provider readerType="eclipse.import"
> componentTypes="osgi.bundle" mutable="false" source="false">
> <matcher
> base=" http://www.springsource.com/repository/app/search/atom?query =&amp;type=bundlesByName">
>
> <group name="MATCH">
> <name pattern="([a-zA-Z0-9]+\.)*[a-zA-Z0-9_]+"
> prefix=" http://www.springsource.com/repository/app/bundle/version/do wnload?name="
> suffix="&amp;version="/>
> <version
> pattern="[0-9]+(\.[0-9]+){0,2}(\.[a-zA-Z0-9-_]+)?"
> suffix="&amp;type=binary"/>
> </group>
> </matcher>
> <uri format="${MATCH}" />
> </provider>
> </searchPath>
>
> I can 'see' buckminster going to that page and downloading the whole
> shebang, but it fails to resolve anything from that page, albeit I would
> say that the regex should match something.
> So for the moment I have turned back to my original idea:
>
> <searchPath name="com.springsource">
> <provider readerType="url" componentTypes="osgi.bundle"
> mutable="false" source="false">
> <uri
> format=" http://www.springsource.com/repository/app/bundle/version/do wnload?name={0}&amp;version={1}&amp;type=binary">
>
> <bc:propertyRef key="buckminster.component" />
> <bc:replace pattern=".*([0-9]+\.[0-9]+\.[0-9]+).*"
> replacement="$1">
> <bc:propertyRef key="buckminster.version.designator" />
> </bc:replace>
> </uri>
> </provider>
> </searchPath>
>
> Here, buckminster is able to resolve the bundle, but on materialization
> logs the following:
>
> INFO [0000] : Start mirroring
> INFO [0000] : End mirroring
> INFO [0005] : An exception occurred while downloading feature from
> " file:/C:/DOCUME~1/uide7730/LOCALS~1/Temp/bmsite53243tmp/feat ures/buckminster.temp_0.1.0.20090514090127.jar ".
>
>
> I have seen as well errors being thrown by the 'UpdateStateManager' or
> 'UpdateManager' on 'copy' (but that was before I updated to the latest
> buckminster version yesterday evening).
>
> Regards
> Alex
>
>
> Eric Jain wrote:
>
>>
> http://www.springsource.com/repository/app/search/atom?query =&type=bundlesByName
>
>
>
Re: Online Bundle Repositories - springsource bundle repository [message #385368 is a reply to message #385367] Thu, 14 May 2009 13:24 Go to previous messageGo to next message
Alex Chatziparaskewas is currently offline Alex ChatziparaskewasFriend
Messages: 52
Registered: July 2009
Member
Thomas Hallgren wrote:

> Hi Alex.
> The problem might be that you use an eclipse.import reader. That reader
expects to find an update site, an eclipse
> installation, or a map file. Not explicit URL's appointing bundle jars. If
you haven't already, try combining it with
> readerType="url" instead.

> - thomas

> Alex Chatziparaskewas wrote:
>> Hi
>> I have tried it, but so far I have failed.
>>
>> <searchPath name="com.springsource">
>> <provider readerType="eclipse.import"
>> componentTypes="osgi.bundle" mutable="false" source="false">
>> <matcher
>>
base=" http://www.springsource.com/repository/app/search/atom?query =&amp;type=bundlesByName">
>>
>> <group name="MATCH">
>> <name pattern="([a-zA-Z0-9]+.)*[a-zA-Z0-9_]+"
>>
prefix=" http://www.springsource.com/repository/app/bundle/version/do wnload?name="
>> suffix="&amp;version="/>
>> <version
>> pattern="[0-9]+(.[0-9]+){0,2}(.[a-zA-Z0-9-_]+)?"
>> suffix="&amp;type=binary"/>
>> </group>
>> </matcher>
>> <uri format="${MATCH}" />
>> </provider>
>> </searchPath>
>>
>> I can 'see' buckminster going to that page and downloading the whole
>> shebang, but it fails to resolve anything from that page, albeit I would
>> say that the regex should match something.
>> So for the moment I have turned back to my original idea:
>>
>> <searchPath name="com.springsource">
>> <provider readerType="url" componentTypes="osgi.bundle"
>> mutable="false" source="false">
>> <uri
>>
format=" http://www.springsource.com/repository/app/bundle/version/do wnload?name={0}&amp;version={1}&amp;type=binary">
>>
>> <bc:propertyRef key="buckminster.component" />
>> <bc:replace pattern=".*([0-9]+.[0-9]+.[0-9]+).*"
>> replacement="$1">
>> <bc:propertyRef key="buckminster.version.designator" />
>> </bc:replace>
>> </uri>
>> </provider>
>> </searchPath>
>>
>> Here, buckminster is able to resolve the bundle, but on materialization
>> logs the following:
>>
>> INFO [0000] : Start mirroring
>> INFO [0000] : End mirroring
>> INFO [0005] : An exception occurred while downloading feature from
>>
" file:/C:/DOCUME~1/uide7730/LOCALS~1/Temp/bmsite53243tmp/feat ures/buckminster.temp_0.1.0.20090514090127.jar ".
>>
>>
>> I have seen as well errors being thrown by the 'UpdateStateManager' or
>> 'UpdateManager' on 'copy' (but that was before I updated to the latest
>> buckminster version yesterday evening).
>>
>> Regards
>> Alex
>>
>>
>> Eric Jain wrote:
>>
>>>
>>
http://www.springsource.com/repository/app/search/atom?query =&type=bundlesByName
>>
>>
>>
Re: Online Bundle Repositories - springsource bundle repository [message #385369 is a reply to message #385367] Thu, 14 May 2009 13:30 Go to previous messageGo to next message
Alex Chatziparaskewas is currently offline Alex ChatziparaskewasFriend
Messages: 52
Registered: July 2009
Member
Hi

The other message was a mouse click error.

However, I am still trying to access the spring source bundle repository.
In the meantime I have found (with the help of an HTTP monitor) a 'direct
link' address without any URL parameters (just to get some uncertainty out
of the way). I am now using the following search path directive:

<searchPath name="com.springsource">
<provider readerType="url" componentTypes="osgi.bundle"
mutable="false" source="false">
<uri
format=" http://repository.springsource.com/ivy/bundles/external/{0}/ {1}/{2}/{1}-{2}.jar">
<bc:replace pattern="com\.springsource\.(.*)"
replacement="$1">
<bc:propertyRef key="buckminster.component" />
</bc:replace>
<bc:propertyRef key="buckminster.component" />
<bc:replace pattern=".*([0-9]+\.[0-9]+\.[0-9]+).*"
replacement="$1">
<bc:propertyRef key="buckminster.version.designator" />
</bc:replace>
</uri>
</provider>
</searchPath>

The test bundle (com.springsource.org.apache.log4j, 1.2.15 is resolved,
but upon materialization an exception is thrown, aborting the
materialization job (see below). I am out of ideas. I have cleaned the
workspace, setup everything from scratch, even created a small test
project (which I could provide/post if I knew how). Still I get this
error. Most surprisingly it has even worked once or twice during testing,
but unfortunately not consistently.

Platform install location: Q:\MHDevEnv\eclipse2
Target platform provided by class
org.eclipse.buckminster.pde.internal.PDETargetPlatform
feature_test:eclipse.feature/1.0.0.qualifier#OSGi: Using resolver rmap
feature_test:eclipse.feature/1.0.0.qualifier#OSGi: Rejecting provider
eclipse.platform(feature/${buckminster.component}): No component match was
found
Downloading
file:/Q:/MHDevEnv/workplaces/wp-master/buckminster/buckminst er.rmap
feature_test:eclipse.feature/1.0.0.qualifier#OSGi: Using resource map
file:/Q:/MHDevEnv/workplaces/wp-master/buckminster/buckminst er.rmap
feature_test:eclipse.feature/1.0.0.qualifier#OSGi: Using search path
feature_test
feature_test:eclipse.feature/1.0.0.qualifier#OSGi: Trying provider
local(file:///MHDevEnv/workplaces/wp-master/{0})
feature_test:eclipse.feature/1.0.0.qualifier#OSGi: Found match
feature_test:eclipse.feature/1.0.0.qualifier#OSGi: Using provider
local(file:///MHDevEnv/workplaces/wp-master/{0})
com.springsource.org.apache.log4j:osgi.bundle/[1.2.15,1.2.15 ]#OSGi:
Rejecting provider eclipse.platform(plugin/${buckminster.component}): No
component match was found
com.springsource.org.apache.log4j:osgi.bundle/[1.2.15,1.2.15 ]#OSGi: Using
resource map
file:/Q:/MHDevEnv/workplaces/wp-master/buckminster/buckminst er.rmap
com.springsource.org.apache.log4j:osgi.bundle/[1.2.15,1.2.15 ]#OSGi: Using
search path com.springsource
com.springsource.org.apache.log4j:osgi.bundle/[1.2.15,1.2.15 ]#OSGi: Trying
provider
url( http://repository.springsource.com/ivy/bundles/external/{0}/ {1}/{2}/{1}-{2}.jar)
com.springsource.org.apache.log4j:osgi.bundle/[1.2.15,1.2.15 ]#OSGi: Found
match
com.springsource.org.apache.log4j:osgi.bundle/[1.2.15,1.2.15 ]#OSGi: Using
provider
url( http://repository.springsource.com/ivy/bundles/external/{0}/ {1}/{2}/{1}-{2}.jar)
feature_test:eclipse.feature/1.0.0.qualifier#OSGi: Using resolver rmap
feature_test:eclipse.feature/1.0.0.qualifier#OSGi: Rejecting provider
eclipse.platform(feature/${buckminster.component}): No component match was
found
Downloading
file:/Q:/MHDevEnv/workplaces/wp-master/buckminster/buckminst er.rmap
feature_test:eclipse.feature/1.0.0.qualifier#OSGi: Using resource map
file:/Q:/MHDevEnv/workplaces/wp-master/buckminster/buckminst er.rmap
feature_test:eclipse.feature/1.0.0.qualifier#OSGi: Using search path
feature_test
feature_test:eclipse.feature/1.0.0.qualifier#OSGi: Trying provider
local(file:///MHDevEnv/workplaces/wp-master/{0})
feature_test:eclipse.feature/1.0.0.qualifier#OSGi: Found match
feature_test:eclipse.feature/1.0.0.qualifier#OSGi: Using provider
local(file:///MHDevEnv/workplaces/wp-master/{0})
com.springsource.org.apache.log4j:osgi.bundle/[1.2.15,1.2.15 ]#OSGi:
Rejecting provider eclipse.platform(plugin/${buckminster.component}): No
component match was found
com.springsource.org.apache.log4j:osgi.bundle/[1.2.15,1.2.15 ]#OSGi: Using
resource map
file:/Q:/MHDevEnv/workplaces/wp-master/buckminster/buckminst er.rmap
com.springsource.org.apache.log4j:osgi.bundle/[1.2.15,1.2.15 ]#OSGi: Using
search path com.springsource
com.springsource.org.apache.log4j:osgi.bundle/[1.2.15,1.2.15 ]#OSGi: Trying
provider
url( http://repository.springsource.com/ivy/bundles/external/{0}/ {1}/{2}/{1}-{2}.jar)
com.springsource.org.apache.log4j:osgi.bundle/[1.2.15,1.2.15 ]#OSGi: Found
match
com.springsource.org.apache.log4j:osgi.bundle/[1.2.15,1.2.15 ]#OSGi: Using
provider
url( http://repository.springsource.com/ivy/bundles/external/{0}/ {1}/{2}/{1}-{2}.jar)
INFO [0000] : Start mirroring
ERROR [0000] : UpdateManagerUtils copy() at offset:97897 [Read timed out]
INFO [0000] : End mirroring
INFO [0002] : An exception occurred while downloading feature from
" file:/C:/DOCUME~1/uide7730/LOCALS~1/Temp/bmsite55767tmp/feat ures/buckminster.temp_0.1.0.20090514152441.jar ".
Errors and Warnings
org.eclipse.core.runtime.CoreException: Errors and Warnings
at
org.eclipse.buckminster.runtime.BuckminsterException.wrap(Bu ckminsterException.java:109)
at
org.eclipse.buckminster.core.materializer.MaterializationJob .internalRun(MaterializationJob.java:175)
at
org.eclipse.buckminster.core.materializer.MaterializationJob .run(MaterializationJob.java:144)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Contains: [0000] : Start mirroring
Contains: [0000] : UpdateManagerUtils copy() at offset:97897 [Read timed
out]
Contains: [0000] : End mirroring
Contains: [0002] : An exception occurred while downloading feature from
" file:/C:/DOCUME~1/uide7730/LOCALS~1/Temp/bmsite55767tmp/feat ures/buckminster.temp_0.1.0.20090514152441.jar ".
TAG-ID 0002 = Query for feature_test:eclipse.feature/1.0.0.qualifier#OSGi,
path: feature_test:eclipse.feature$1.0.0.qualifier#OSGi






Thomas Hallgren wrote:

> Hi Alex.
> The problem might be that you use an eclipse.import reader. That reader
expects to find an update site, an eclipse
> installation, or a map file. Not explicit URL's appointing bundle jars. If
you haven't already, try combining it with
> readerType="url" instead.

> - thomas

> Alex Chatziparaskewas wrote:
>> Hi
>> I have tried it, but so far I have failed.
>>
>> <searchPath name="com.springsource">
>> <provider readerType="eclipse.import"
>> componentTypes="osgi.bundle" mutable="false" source="false">
>> <matcher
>>
base=" http://www.springsource.com/repository/app/search/atom?query =&amp;type=bundlesByName">
>>
>> <group name="MATCH">
>> <name pattern="([a-zA-Z0-9]+.)*[a-zA-Z0-9_]+"
>>
prefix=" http://www.springsource.com/repository/app/bundle/version/do wnload?name="
>> suffix="&amp;version="/>
>> <version
>> pattern="[0-9]+(.[0-9]+){0,2}(.[a-zA-Z0-9-_]+)?"
>> suffix="&amp;type=binary"/>
>> </group>
>> </matcher>
>> <uri format="${MATCH}" />
>> </provider>
>> </searchPath>
>>
>> I can 'see' buckminster going to that page and downloading the whole
>> shebang, but it fails to resolve anything from that page, albeit I would
>> say that the regex should match something.
>> So for the moment I have turned back to my original idea:
>>
>> <searchPath name="com.springsource">
>> <provider readerType="url" componentTypes="osgi.bundle"
>> mutable="false" source="false">
>> <uri
>>
format=" http://www.springsource.com/repository/app/bundle/version/do wnload?name={0}&amp;version={1}&amp;type=binary">
>>
>> <bc:propertyRef key="buckminster.component" />
>> <bc:replace pattern=".*([0-9]+.[0-9]+.[0-9]+).*"
>> replacement="$1">
>> <bc:propertyRef key="buckminster.version.designator" />
>> </bc:replace>
>> </uri>
>> </provider>
>> </searchPath>
>>
>> Here, buckminster is able to resolve the bundle, but on materialization
>> logs the following:
>>
>> INFO [0000] : Start mirroring
>> INFO [0000] : End mirroring
>> INFO [0005] : An exception occurred while downloading feature from
>>
" file:/C:/DOCUME~1/uide7730/LOCALS~1/Temp/bmsite53243tmp/feat ures/buckminster.temp_0.1.0.20090514090127.jar ".
>>
>>
>> I have seen as well errors being thrown by the 'UpdateStateManager' or
>> 'UpdateManager' on 'copy' (but that was before I updated to the latest
>> buckminster version yesterday evening).
>>
>> Regards
>> Alex
>>
>>
>> Eric Jain wrote:
>>
>>>
>>
http://www.springsource.com/repository/app/search/atom?query =&type=bundlesByName
>>
>>
>>
Re: Online Bundle Repositories - springsource bundle repository [message #385370 is a reply to message #385369] Thu, 14 May 2009 15:45 Go to previous message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi Alex,
Can you try using the new 'p2' materializer instead of the 'targetPlatform' one? I have good hopes that it will solve
your problem.

- thomas


Alex Chatziparaskewas wrote:
> Hi
>
> The other message was a mouse click error.
>
> However, I am still trying to access the spring source bundle
> repository. In the meantime I have found (with the help of an HTTP
> monitor) a 'direct link' address without any URL parameters (just to get
> some uncertainty out of the way). I am now using the following search
> path directive:
>
> <searchPath name="com.springsource">
> <provider readerType="url" componentTypes="osgi.bundle"
> mutable="false" source="false">
> <uri
> format=" http://repository.springsource.com/ivy/bundles/external/{0}/ {1}/{2}/{1}-{2}.jar">
>
> <bc:replace pattern="com\.springsource\.(.*)"
> replacement="$1">
> <bc:propertyRef key="buckminster.component" />
> </bc:replace>
> <bc:propertyRef key="buckminster.component" />
> <bc:replace pattern=".*([0-9]+\.[0-9]+\.[0-9]+).*"
> replacement="$1">
> <bc:propertyRef key="buckminster.version.designator" />
> </bc:replace>
> </uri>
> </provider>
> </searchPath>
>
> The test bundle (com.springsource.org.apache.log4j, 1.2.15 is resolved,
> but upon materialization an exception is thrown, aborting the
> materialization job (see below). I am out of ideas. I have cleaned the
> workspace, setup everything from scratch, even created a small test
> project (which I could provide/post if I knew how). Still I get this
> error. Most surprisingly it has even worked once or twice during
> testing, but unfortunately not consistently.
>
> Platform install location: Q:\MHDevEnv\eclipse2
> Target platform provided by class
> org.eclipse.buckminster.pde.internal.PDETargetPlatform
> feature_test:eclipse.feature/1.0.0.qualifier#OSGi: Using resolver rmap
> feature_test:eclipse.feature/1.0.0.qualifier#OSGi: Rejecting provider
> eclipse.platform(feature/${buckminster.component}): No component match
> was found
> Downloading
> file:/Q:/MHDevEnv/workplaces/wp-master/buckminster/buckminst er.rmap
> feature_test:eclipse.feature/1.0.0.qualifier#OSGi: Using resource map
> file:/Q:/MHDevEnv/workplaces/wp-master/buckminster/buckminst er.rmap
> feature_test:eclipse.feature/1.0.0.qualifier#OSGi: Using search path
> feature_test
> feature_test:eclipse.feature/1.0.0.qualifier#OSGi: Trying provider
> local(file:///MHDevEnv/workplaces/wp-master/{0})
> feature_test:eclipse.feature/1.0.0.qualifier#OSGi: Found match
> feature_test:eclipse.feature/1.0.0.qualifier#OSGi: Using provider
> local(file:///MHDevEnv/workplaces/wp-master/{0})
> com.springsource.org.apache.log4j:osgi.bundle/[1.2.15,1.2.15 ]#OSGi:
> Rejecting provider eclipse.platform(plugin/${buckminster.component}): No
> component match was found
> com.springsource.org.apache.log4j:osgi.bundle/[1.2.15,1.2.15 ]#OSGi:
> Using resource map
> file:/Q:/MHDevEnv/workplaces/wp-master/buckminster/buckminst er.rmap
> com.springsource.org.apache.log4j:osgi.bundle/[1.2.15,1.2.15 ]#OSGi:
> Using search path com.springsource
> com.springsource.org.apache.log4j:osgi.bundle/[1.2.15,1.2.15 ]#OSGi:
> Trying provider
> url( http://repository.springsource.com/ivy/bundles/external/{0}/ {1}/{2}/{1}-{2}.jar)
>
> com.springsource.org.apache.log4j:osgi.bundle/[1.2.15,1.2.15 ]#OSGi:
> Found match
> com.springsource.org.apache.log4j:osgi.bundle/[1.2.15,1.2.15 ]#OSGi:
> Using provider
> url( http://repository.springsource.com/ivy/bundles/external/{0}/ {1}/{2}/{1}-{2}.jar)
>
> feature_test:eclipse.feature/1.0.0.qualifier#OSGi: Using resolver rmap
> feature_test:eclipse.feature/1.0.0.qualifier#OSGi: Rejecting provider
> eclipse.platform(feature/${buckminster.component}): No component match
> was found
> Downloading
> file:/Q:/MHDevEnv/workplaces/wp-master/buckminster/buckminst er.rmap
> feature_test:eclipse.feature/1.0.0.qualifier#OSGi: Using resource map
> file:/Q:/MHDevEnv/workplaces/wp-master/buckminster/buckminst er.rmap
> feature_test:eclipse.feature/1.0.0.qualifier#OSGi: Using search path
> feature_test
> feature_test:eclipse.feature/1.0.0.qualifier#OSGi: Trying provider
> local(file:///MHDevEnv/workplaces/wp-master/{0})
> feature_test:eclipse.feature/1.0.0.qualifier#OSGi: Found match
> feature_test:eclipse.feature/1.0.0.qualifier#OSGi: Using provider
> local(file:///MHDevEnv/workplaces/wp-master/{0})
> com.springsource.org.apache.log4j:osgi.bundle/[1.2.15,1.2.15 ]#OSGi:
> Rejecting provider eclipse.platform(plugin/${buckminster.component}): No
> component match was found
> com.springsource.org.apache.log4j:osgi.bundle/[1.2.15,1.2.15 ]#OSGi:
> Using resource map
> file:/Q:/MHDevEnv/workplaces/wp-master/buckminster/buckminst er.rmap
> com.springsource.org.apache.log4j:osgi.bundle/[1.2.15,1.2.15 ]#OSGi:
> Using search path com.springsource
> com.springsource.org.apache.log4j:osgi.bundle/[1.2.15,1.2.15 ]#OSGi:
> Trying provider
> url( http://repository.springsource.com/ivy/bundles/external/{0}/ {1}/{2}/{1}-{2}.jar)
>
> com.springsource.org.apache.log4j:osgi.bundle/[1.2.15,1.2.15 ]#OSGi:
> Found match
> com.springsource.org.apache.log4j:osgi.bundle/[1.2.15,1.2.15 ]#OSGi:
> Using provider
> url( http://repository.springsource.com/ivy/bundles/external/{0}/ {1}/{2}/{1}-{2}.jar)
>
> INFO [0000] : Start mirroring
> ERROR [0000] : UpdateManagerUtils copy() at offset:97897 [Read timed out]
> INFO [0000] : End mirroring
> INFO [0002] : An exception occurred while downloading feature from
> " file:/C:/DOCUME~1/uide7730/LOCALS~1/Temp/bmsite55767tmp/feat ures/buckminster.temp_0.1.0.20090514152441.jar ".
>
> Errors and Warnings
> org.eclipse.core.runtime.CoreException: Errors and Warnings
> at
> org.eclipse.buckminster.runtime.BuckminsterException.wrap(Bu ckminsterException.java:109)
>
> at
> org.eclipse.buckminster.core.materializer.MaterializationJob .internalRun(MaterializationJob.java:175)
>
> at
> org.eclipse.buckminster.core.materializer.MaterializationJob .run(MaterializationJob.java:144)
>
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> Contains: [0000] : Start mirroring
> Contains: [0000] : UpdateManagerUtils copy() at offset:97897 [Read timed
> out]
> Contains: [0000] : End mirroring
> Contains: [0002] : An exception occurred while downloading feature from
> " file:/C:/DOCUME~1/uide7730/LOCALS~1/Temp/bmsite55767tmp/feat ures/buckminster.temp_0.1.0.20090514152441.jar ".
>
> TAG-ID 0002 = Query for
> feature_test:eclipse.feature/1.0.0.qualifier#OSGi, path:
> feature_test:eclipse.feature$1.0.0.qualifier#OSGi
>
>
>
>
>
>
> Thomas Hallgren wrote:
>
>> Hi Alex.
>> The problem might be that you use an eclipse.import reader. That reader
> expects to find an update site, an eclipse
>> installation, or a map file. Not explicit URL's appointing bundle
>> jars. If
> you haven't already, try combining it with
>> readerType="url" instead.
>
>> - thomas
>
>> Alex Chatziparaskewas wrote:
>>> Hi
>>> I have tried it, but so far I have failed.
>>>
>>> <searchPath name="com.springsource">
>>> <provider readerType="eclipse.import"
>>> componentTypes="osgi.bundle" mutable="false" source="false">
>>> <matcher
> base=" http://www.springsource.com/repository/app/search/atom?query =&amp;type=bundlesByName">
>
>>>
>>> <group name="MATCH">
>>> <name pattern="([a-zA-Z0-9]+.)*[a-zA-Z0-9_]+"
> prefix=" http://www.springsource.com/repository/app/bundle/version/do wnload?name="
>
>>> suffix="&amp;version="/>
>>> <version
>>> pattern="[0-9]+(.[0-9]+){0,2}(.[a-zA-Z0-9-_]+)?"
>>> suffix="&amp;type=binary"/>
>>> </group>
>>> </matcher>
>>> <uri format="${MATCH}" />
>>> </provider>
>>> </searchPath>
>>>
>>> I can 'see' buckminster going to that page and downloading the whole
>>> shebang, but it fails to resolve anything from that page, albeit I
>>> would say that the regex should match something.
>>> So for the moment I have turned back to my original idea:
>>>
>>> <searchPath name="com.springsource">
>>> <provider readerType="url" componentTypes="osgi.bundle"
>>> mutable="false" source="false">
>>> <uri
> format=" http://www.springsource.com/repository/app/bundle/version/do wnload?name={0}&amp;version={1}&amp;type=binary">
>
>>>
>>> <bc:propertyRef key="buckminster.component" />
>>> <bc:replace pattern=".*([0-9]+.[0-9]+.[0-9]+).*"
>>> replacement="$1">
>>> <bc:propertyRef
>>> key="buckminster.version.designator" />
>>> </bc:replace>
>>> </uri>
>>> </provider>
>>> </searchPath>
>>>
>>> Here, buckminster is able to resolve the bundle, but on
>>> materialization logs the following:
>>>
>>> INFO [0000] : Start mirroring
>>> INFO [0000] : End mirroring
>>> INFO [0005] : An exception occurred while downloading feature from
> " file:/C:/DOCUME~1/uide7730/LOCALS~1/Temp/bmsite53243tmp/feat ures/buckminster.temp_0.1.0.20090514090127.jar ".
>
>>>
>>>
>>> I have seen as well errors being thrown by the 'UpdateStateManager'
>>> or 'UpdateManager' on 'copy' (but that was before I updated to the
>>> latest buckminster version yesterday evening).
>>>
>>> Regards
>>> Alex
>>>
>>>
>>> Eric Jain wrote:
>>>
>>>>
>>>
> http://www.springsource.com/repository/app/search/atom?query =&type=bundlesByName
>
>>>
>>>
>>>
>
>
Previous Topic:Online Bundle Repositories
Next Topic:Buckminster 3.4 headless subversion plugins AWOL
Goto Forum:
  


Current Time: Fri Apr 19 00:04:46 GMT 2024

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

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

Back to the top