在OAM中部署自定义插件时出现异常org.osgi.framework.BundleException(Oracle Access Manager)

时间:2017-07-24 12:48:23

标签: osgi unboundid-ldap-sdk oam

我正在使用unboundid-ldapsdk为OAM开发自定义插件。我无法在OAM中激活此插件,因为它会抛出错误

这是清单文件

Manifest-Version: 1.0
    Bundle-Version: 10
    Bundle-Name: CustomPlugIn
    Bundle-Activator: sample.CustomPlugIn
    Bundle-ManifestVersion: 2
    Bundle-SymbolicName: CustomPlugIn
    Import-Package: oracle.security.am.plugin,oracle.security.am.plugin.authn,oracle.security.am.plugin.impl,org.osgi.framework;version="1.3.0",com.unboundid.ldap.sdk;version="4.0.0"
Bundle-ClassPath: .,lib/unboundid-ldapsdk.jar

错误:

Caused By: org.osgi.framework.BundleException: Unresolved constraint in bundle CustomPlugIn [4]: Unable to resolve 4.0: missing requirement [4.0] osgi.wiring.package; (osgi.wiring.package=com.unboundid.ldap.sdk)
        at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3980)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2043)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:976)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:963)
        at sun.reflect.GeneratedMethodAccessor2426.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at oracle.security.am.plugin.internal.OSGIPluginService.installAndStartBundle(OSGIPluginService.java:179)
        at oracle.security.am.extensibility.lifecycle.messaging.NodeMessageListener.installAndStartBundle(NodeMessageListener.java:66)
        at oracle.security.am.extensibility.lifecycle.messaging.NodeMessageListener.receiveMessage(NodeMessageListener.java:112)
        at oracle.security.am.extensibility.lifecycle.messaging.NodeMessageListener.receiveMessageList(NodeMessageListener.java:49)
        at oracle.security.am.extensibility.lifecycle.messaging.MessageListenerWrapper.objectCreated(MessageListenerWrapper.java:30)
        at oracle.security.am.foundation.mapimpl.coherence.events.MapListenerWrapper.notifyListener(MapListenerWrapper.java:174)
        at oracle.security.am.foundation.mapimpl.coherence.events.EventDispatcher.dispatch(EventDispatcher.java:132)
        at oracle.security.am.foundation.mapimpl.coherence.events.EventDispatcher.run(EventDispatcher.java:114)

感谢任何帮助

0 个答案:

没有答案