I'm having problems getting plans to work, as a deployment mechanism in Virgo.
As per the documentation, I have carefully placed my bundles (including correctly generated MANIFEST.MF) in the $VIRGO_HOME/repository/usr directory. I then restarted the Virgo server, using the -clean flag. However, when I try and hot deploy my .plan file in the pickup directory, the server is telling me that it can't find the bundles that exist within the usr directory. This is not consistent for all of my bundles - some work, some don't, and I really can't see why!
Maybe I've missed something? Can someone please help point me in the correct direction?
A good way to debug this is to delete your bundles again from the repository/usr folder and put them one by one into the pickup folder when virgo is running. This way you can easily see if all those bundles can be started. If they really can be started individually, what error is logged when deploying the plan file?
Thanks for the response. I have already tried, on-by-one deploying the bundles to the pickup directory - no problem. Here's what I get from the Virgo server, on trying to deploy using a plan. As mentioned, at the point the error is received, the same bundles are available in $VIRGO_HOME/repository/usr and the server has been bounced, and restarted using the clean flag.
[2012-10-12 11:34:53.000] fs-watcher <HD0002E> Hot deploy fail
ed for file 'osgi-demo.plan'. org.eclipse.virgo.kernel.deployer.core.DeploymentE
xception: Deployment of plan 'osgi-demo.plan' version '1.0.0' in scope 'null' fa
iled: bundle 'com.myCompany.service.definition.service-definition' in version rang
e '[0.0.2, oo)' not found
The most obvious cause of this failure would be that Bundle-Version of the com.myCompany.service.definition.service-definition bundle is less than 0.0.2. Please could you post the manifest here if you think the version is correct.