Hi all,
I developed a simple Job that I would like to execute using the scheduler
service.
I tried to deploy it but the console tells me
04.08.2010 15:12:26.342 *INFO* [FelixPackageAdmin] core
[sling.gsoc.david.job.SendJob] Dependency not satisfied: scheduler
04.08.2010 15:12:26.342 *INFO* [FelixPackageAdmin] core
[sling.gsoc.david.job.SendJob] Not all dependencies satisified, cannot
activate
So i thought that scheduler wasn't deployed in Sling. I create the bundle
under \bundles\extensions\event and when I try to deploy it I receive this
error in the console
04.08.2010 15:18:20.190 *INFO* [FelixDispatchQueue] org.apache.sling.event
BundleEvent INSTALLED
04.08.2010 15:18:20.409 *ERROR* [Background Install
C:\DOCUME~1\a155876\IMPOST~1\Temp\install3142030365896486853.tmp]
org.apache.felix.http.
jetty %bundles.pluginTitle: Cannot install or update bundle from
C:\DOCUME~1\a155876\IMPOST~1\Temp\install3142030365896486853.tmp (org.osgi.
framework.BundleException: Unresolved constraint in bundle
org.apache.sling.event [82]: Unable to resolve 82.0: missing requirement
[82.0] p
ackage; (&(package=org.apache.sling.commons.scheduler)(version>=2.1.0)) -
[82.0] package; (&(package=org.apache.sling.commons.scheduler)(ver
sion>=2.1.0))) org.osgi.framework.BundleException: Unresolved constraint in
bundle org.apache.sling.event [82]: Unable to resolve 82.0: miss
ing requirement [82.0] package;
(&(package=org.apache.sling.commons.scheduler)(version>=2.1.0)) - [82.0]
package; (&(package=org.apache.slin
g.commons.scheduler)(version>=2.1.0))
at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3421)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1754)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:892)
at
org.apache.felix.webconsole.internal.core.InstallHelper.doRun(InstallHelper.java:67)
at
org.apache.felix.webconsole.internal.core.BaseUpdateInstallHelper.doRun(BaseUpdateInstallHelper.java:89)
at
org.apache.felix.webconsole.internal.core.BaseUpdateInstallHelper.run(BaseUpdateInstallHelper.java:121)
at java.lang.Thread.run(Unknown Source)
ERROR: Error starting/stopping bundle. (org.osgi.framework.BundleException:
Unresolved constraint in bundle org.apache.sling.event [82]: Una
ble to resolve 82.0: missing requirement [82.0] package;
(&(package=org.apache.sling.commons.scheduler)(version>=2.1.0)) - [82.0]
package; (
&(package=org.apache.sling.commons.scheduler)(version>=2.1.0)))
org.osgi.framework.BundleException: Unresolved constraint in bundle
org.apache.sling.event [82]: Unable to resolve 82.0: missing requirement
[82.0] package;
(&(package=org.apache.sling.commons.scheduler)(version>=2.1.0)) - [82.0]
package; (&(package=org.apache.sling.commons.sched
uler)(version>=2.1.0))
at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3421)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1754)
at
org.apache.felix.framework.Felix.setBundleStartLevel(Felix.java:1365)
at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:270)
at java.lang.Thread.run(Unknown Source)
04.08.2010 15:18:20.580 *ERROR* [FelixDispatchQueue] org.apache.sling.event
FrameworkEvent ERROR (org.osgi.framework.BundleException: Unreso
lved constraint in bundle org.apache.sling.event [82]: Unable to resolve
82.0: missing requirement [82.0] package; (&(package=org.apache.sli
ng.commons.scheduler)(version>=2.1.0)) - [82.0] package;
(&(package=org.apache.sling.commons.scheduler)(version>=2.1.0)))
org.osgi.framework
.BundleException: Unresolved constraint in bundle org.apache.sling.event
[82]: Unable to resolve 82.0: missing requirement [82.0] package; (
&(package=org.apache.sling.commons.scheduler)(version>=2.1.0)) - [82.0]
package; (&(package=org.apache.sling.commons.scheduler)(version>=2.1
.0))
I don't understand what is missing to deploy this bundle. Any suggestions?
--
Federico