Detected an error (BundleException) enabling the plugin missing requirement osgi.wiring.package; (osgi.wiring.package=com.atlassian.bandana)

Hello everyone
When deploying a plugin in a different environment got this error,

Caused by: org.osgi.framework.BundleException: Unable to resolve com.plugin [325](R 325.0): missing requirement [com.plugin [325](R 325.0)] osgi.wiring.package; (osgi.wiring.package=com.atlassian.bandana) Unresolved requirements: [[com.plugin [325](R 325.0)] osgi.wiring.package; (osgi.wiring.package=com.atlassian.bandana)]
        at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4149)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2119)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984)
        at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:405)

And due to this error the plugin can’t be enabled

Note: The pom.xml doesn’t have anything related to bandana. Should bandana be added to the pom.xml file? And if it should be added, how should it be added? As a dependency? with <scope>provided</scope> or <Import-Package>?
For some reason it doesn’t work in this new environment.

Any help would be appreciated, thanks in advance

Hi @JohnReese,

What do you mean by “a different environment?” Errors like that are usually resolved by adding to the <Export-Package> instruction in amps like this

                        <Export-Package>
                            com.atlassian.bandana
                        </Export-Package>

Although it’s unusual that it’s that package. Do you use any libraries that access bandana?

Regards,
James.

Yes, Bandana is used to store in persistent memory, I am aware that is not the best option, but it is what we are currently using.

I’ll test it out by adding those lines to the pom file

Thanks!

Hi,did you solve this problem?