Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Why does plan deplyment fails when uploading from the web console?(The result of the last operation is: Deployment Error 'bundle 'test.dummy' version '[1.0.0, 2.0.0)' not found')
Why does plan deplyment fails when uploading from the web console? [message #871732] Mon, 14 May 2012 19:02 Go to next message
Marton Sigmond is currently offline Marton SigmondFriend
Messages: 73
Registered: July 2009
Location: Hungary
Member
Hi,

I created a very simple bundle (see attached):
Manifest-Version: 1.0
Bnd-LastModified: 1337021028726
Bundle-ManifestVersion: 2
Bundle-Name: test.dummy
Bundle-SymbolicName: test.dummy
Bundle-Version: 1.0.0
Created-By: 1.6.0_20 (Sun Microsystems Inc.)
Export-Package: test.dummy;version="1.0"
Import-Package: test.dummy;version="[1.0,2)"
Private-Package: test.dummy.impl
Tool: Bnd-1.51.0


Then I created a very simple plan:
<?xml version="1.0" encoding="UTF-8"?>
<plan name="test-dummy.plan" version="1.0.0" scoped="true" atomic="true"
	xmlns="http://www.eclipse.org/virgo/schema/plan" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="
		        http://www.eclipse.org/virgo/schema/plan
		        http://www.eclipse.org/virgo/schema/plan/eclipse-virgo-plan.xsd">
	<artifact type="bundle" name="test.dummy" version="[1.0.0, 2.0.0)" />
</plan>


I opened the Web console and uploaded the bundle first, and it has been deployed successfully.

Then I uploaded the plan file too, but I got the following error:
The result of the last operation is: Deployment Error 'bundle 'test.dummy' version '[1.0.0, 2.0.0)' not found'


Could you please let me know what I am doing wrong?

Best regards,
Marton

Virgo Tomcat Server 3.0.3
OpenJDK 64-Bit Server VM version "1.6.0_20"
Ubuntu 10.04 64 bit
Re: Why does plan deplyment fails when uploading from the web console? [message #871737 is a reply to message #871732] Mon, 14 May 2012 19:09 Go to previous messageGo to next message
Hristo Iliev is currently offline Hristo IlievFriend
Messages: 156
Registered: May 2010
Location: Sofia, Bulgaria
Senior Member

Virgo tries to install the plan artifacts from Virgo's repositories. Since your bundle was not in the provisioning repositories [1] the deployment failed.

You can put your bundle in the repository and try to upload just the plan.

[1] http://eclipse.org/virgo/documentation/virgo-documentation-3.0.3.RELEASE/docs/virgo-user-guide/htmlsingle/virgo-user-guide.html#repository
Re: Why does plan deplyment fails when uploading from the web console? [message #871940 is a reply to message #871732] Tue, 15 May 2012 07:31 Go to previous messageGo to next message
Benoit Lafleche is currently offline Benoit LaflecheFriend
Messages: 10
Registered: April 2011
Junior Member
If you upload your bundle first via the web console, you will see that the bundle will be deployed and running, if all dependencies are resolved.

So, you do not need a plan to install the bundle.

Plans works well for me when your application is completed and all the bundles that are references by the plan are already in the virgo/repository folder. Then the plan will install all those bundles/configuration files.
Re: Why does plan deplyment fails when uploading from the web console? [message #872032 is a reply to message #871940] Tue, 15 May 2012 10:48 Go to previous messageGo to next message
Hristo Iliev is currently offline Hristo IlievFriend
Messages: 156
Registered: May 2010
Location: Sofia, Bulgaria
Senior Member

One possible reason to have a plan for a single bundle would be to use the scope and atomicity features.

Otherwise it really does not make much sense.
Re: Why does plan deplyment fails when uploading from the web console? [message #872774 is a reply to message #872032] Wed, 16 May 2012 19:45 Go to previous message
Marton Sigmond is currently offline Marton SigmondFriend
Messages: 73
Registered: July 2009
Location: Hungary
Member
Thank you for your answers; the proposed solution worked.
I believe the fact, that artifacts uploaded via the web console not deployed into the provisioning repository, is a shortcoming that the Virgo development team should address.

I am experimenting the application isolation feature of Virgo; that's why I needed a plan.

Thanks again!
Marton


Best Regards,
Marton Sigmond
Senior Software Engineer
Previous Topic:Issue with Version range in Import package
Next Topic:Unable to deploy bundle/plan with Virgo Tooling
Goto Forum:
  


Current Time: Thu May 09 02:34:07 GMT 2024

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

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

Back to the top