|New Import-Package not resolved on hot-deploy [message #997430]
||Mon, 07 January 2013 13:37
| Missing name Mising name
Registered: May 2011
I'm running a Virgo 3.5 server, and I've found that when I:|
- deploy a bundle
- modify the manifest of the bundle to include a new Import-Package or Import-Bundle directive, the provider of which was already in the user repository
- hot-redeploy the bundle
then it fails to resolve that import.
As an example, I have a web application deployed which uses spring security without issue. I'm working on a second web application, and it's working (without security). If I make changes to the code, rebuild the .war file, and copy it over the existing one in the pickup folder, then all works as expected; that bundle is successfully redeployed with the new code.
I then go to add security, adding the appropriate imports to the manifest, and when I copy the .war, it fails to start with the error
"The bundle "(my new bundle)" could not be resolved. Reason: Missing Constraint: Import-Package: org.springframework.security.web; version="0.0.0". This is of course available, as the existing web project successfully resolves the same imports, and it works if I completely restart Virgo.
To be clear, this has nothing to do with Spring Security; that's just an example, the same effect is seen with any new import.
Is this a known issue? Is there a workaround?
[Updated on: Mon, 07 January 2013 13:37]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.03154 seconds