-
-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After update to 6.5.0, in osgi/felix runtime the bundle is not started due to missing dependency #170
Comments
@chrisr3 I have a sense of Deja Vu here... did I manage to break something wrt 6.5.0 release? :-/ |
Well, you seem to have reverted this, if that's what you mean:
I think the problem was that the Something like #172, perhaps? |
@chrisr3 Ah. Ok, yes, that was the issue: annotation-based mechanism to ease life of OSGi users broke tooling of some non-OSGi users (or required adding dependencies). I'd be happy to merge #172, publish 6.5.1, as long as someone could try confirming it helps (I trust it should but cannot independently really verify myself). @oana-dc Do you think you could try building snapshot from PR #172 and see if that would work better? That'd be super helpful if possible. |
Fixed for 6.5.1 (now published) via #172. I hope. |
https://github.com/FasterXML/woodstox/wiki/Woodstox-Release-6.5#650-14-jan-2023 FasterXML/woodstox#170 Change-Id: I713fab14d83e083afea4b1eea754fcbb8b1febd0 Signed-off-by: Robert Varga <[email protected]>
https://github.com/FasterXML/woodstox/wiki/Woodstox-Release-6.5#650-14-jan-2023 FasterXML/woodstox#170 Change-Id: I713fab14d83e083afea4b1eea754fcbb8b1febd0 Signed-off-by: Robert Varga <[email protected]> (cherry picked from commit 718e058)
In the version 6.5.0, the osgi.serviceloader.registrar is no longer optional.
The Require-Capability: osgi.extender;filter:="(&(osgi.extender=osgi.serviceloader.registrar)(version>=1.0.0)(!(version>=2.0.0)))",osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.6))"
In absence of an osgi service loader, the bundle is not started. The runtime error :
org.osgi.framework.BundleException: Unable to resolve com.fasterxml.woodstox.woodstox-core [16](R 16.0):
missing requirement [com.fasterxml.woodstox.woodstox-core [16](R 16.0)] osgi.extender; (&(osgi.extender=osgi.serviceloader.registrar)(version>=1.0.0)(!(version>=2.0.0)))
Unresolved requirements: [[com.fasterxml.woodstox.woodstox-core [16](R 16.0)] osgi.extender; (&(osgi.extender=osgi.serviceloader.registrar)(version>=1.0.0)(!(version>=2.0.0)))]
[ERROR] at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4398)
[ERROR] at org.apache.felix.framework.Felix.startBundle(Felix.java:2308)
[ERROR] at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1566)
[ERROR] at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
[ERROR] at java.base/java.lang.Thread.run(Thread.java:829)
Searching the issues, I found an older one, with the same subject:
#154
The resolution was to make it optional.
The text was updated successfully, but these errors were encountered: