I'm using the smack library in a project based on Knopflerfish OSGi.
When I have introduced the new version of the library (4.0.4, previously I was using the 3.4.1), I had an error of type unsupported-feature, trying to execute an ad-hoc command on a client.
Debugging the code I have found that the error was due to the fact that the smack-core initializer fails, with a ClassNotFoundException, when it tries to load these classes, contained in the smack-config file:
I've solved this issue, adding in the manifest file of smack-core, in Import-package also: org.jivesoftware.smack.util.dns.javax and org.jivesoftware.smack.initializer.extensions (because I don't need experimental and legacy).
Is this the expected behaviour? If you need to use an optional initializer contained in a Smack bundle that is not smack-core, you have to add the package to the manifest of smack-core or is there another way?