Question. What change in my environment could cause a bundle to fail to
resolve? I've been using bundle javax.mail-1.5.6.jar for many months with
Karaf 4.2.8 and OpenJDK 8. It would appear that something was changed in my VM
(Win 2016), some security settings at a minimum, some weeks ago and now I'm
seeing various odd behavior, one of which is that the mail bundle no longer
resolves but appears to fail looking for javax.activation. I'm hoping somebody
might help me narrow the scope of what may be causing this so that I can get
the security guys to undo whatever it is they may have done.
This is dev/test box, my production VM is running the same setup without issues
which is why I'm fairly certain that it's an environment change.
2020-06-02T13:47:42,753 | ERROR | FelixStartLevel | Felix
| 5 - org.ops4j.pax.logging.pax-logging-api - 1.11.4 | Bundle
com.sun.mail.javax.mail [44] Error starting
file:/E:/Karaf/apache-karaf-4.2.8/deploy/javax.mail-1.5.6.jar
(org.osgi.framework.BundleException: Unable to resolve com.sun.mail.javax.mail
[44](R 44.0): missing requirement [com.sun.mail.javax.mail [44](R 44.0)]
osgi.wiring.package; (osgi.wiring.package=javax.activation) Unresolved
requirements: [[com.sun.mail.javax.mail [44](R 44.0)] osgi.wiring.package;
(osgi.wiring.package=javax.activation)])
org.osgi.framework.BundleException: Unable to resolve com.sun.mail.javax.mail
[44](R 44.0): missing requirement [com.sun.mail.javax.mail [44](R 44.0)]
osgi.wiring.package; (osgi.wiring.package=javax.activation) Unresolved
requirements: [[com.sun.mail.javax.mail [44](R 44.0)] osgi.wiring.package;
(osgi.wiring.package=javax.activation)]
at
org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4149)
~[org.apache.felix.framework-5.6.12.jar:?]
at org.apache.felix.framework.Felix.startBundle(Felix.java:2119)
~[org.apache.felix.framework-5.6.12.jar:?]
at
org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1373)
[org.apache.felix.framework-5.6.12.jar:?]
at
org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
[org.apache.felix.framework-5.6.12.jar:?]
Regards,
Scott