Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Bundles in usr and pickup behave differently
Bundles in usr and pickup behave differently [message #559602] Fri, 17 September 2010 06:59 Go to next message
guofeng zhang is currently offline guofeng zhang
Messages: 49
Registered: July 2009
I use Virgo Web Server 2.1 M4. In my following test, I always use "startup -clean" for each case.

I downloaded and

(1) if I placed the above two jars in pickup, I got:
Resolver report:
An Import-Package could not be resolved. Caused by missing constraint in bundle <>
constraint: <Import-Package: org.apache.commons.pool.impl; version="[1.3.0,2.0.0)">

(2) if I placed the two jars in usr. Only "org.apache.commons.pool" is deployed. "org.apache.commons.dbcp" is not deployed, It is not listed in the Bundles page of Admin Console. No any error in the log.

(3)If I placed "org.apache.commons.dbcp" in pickup, and "org.apache.commons.pool" in usr seperately. The two bundles deployed successfully. Then I tried to deploy my datasource bundle. It has to be placed in pickup. If it is placed in usr, it won't be deployed.

Is this the expected behavior or a bug in Virgo?

If it is the expected behavior, could you explain the difference between usr and pickup directory. From the user guide, it seems that pickup directory is only for hot deploy.


Re: Bundles in usr and pickup behave differently [message #559608 is a reply to message #559602] Fri, 17 September 2010 07:40 Go to previous message
Chris Frost is currently offline Chris Frost
Messages: 230
Registered: January 2010
Location: Southampton, England
Senior Member

Hi Guofeng,

This is expected behaviour, the pickup directory is a watched directory for you to deploy your application bundles and artifacts to. The repository/usr directory is also a watched directory but bundles and other artifacts in it will not be hot-deployed, it is for your applications dpendancies.

From your description below, you should place both the commons bundles in the usr directory and, if needed, they will be started when you deploy an application bundle.

More information can be found in the User guide on-2.1.0.M04-incubation/docs/virgo-user-guide/html/ch08.html and on-2.1.0.M04-incubation/docs/virgo-user-guide/html/ch06.html

Hope this helps,

Chris Frost, Twitter @cgfrost
Springsource, a divison of VMware.
Previous Topic:How to start a bundle
Next Topic:Configuration bundles for ManagedServiceFactory
Goto Forum:

Current Time: Sat Aug 23 05:29:30 EDT 2014

Powered by FUDForum. Page generated in 0.01832 seconds