3 Replies Latest reply: Nov 15, 2012 5:13 AM by 974406 RSS

    Error in custom OAM authentication plugin

    903205
      Hi All
      I am trying to build a custom OAM authentication plugin using JDeveloper. Here are the version information:
      OAM - 11.1.1.5 BP04
      WLS - 10.3.5

      Issue:
      I get the following error in the OAM logs when I try to activate the plugin.
      [2012-11-14T09:39:17.996-08:00] [oam_server1] [WARNING] [] [oracle.oam.extensibility.lifecycle] [tid: DistributedCache:DistributionCache:EventDispatcher] [userId: <anonymous>] [ecid: 0000Jfzyiy6EgKI5qrH7iY1GcxMc000002,0] [APP: oam_server] Activation failed due to felix bundle exception while installing and starting the bundle.Unresolved constraint in bundle oamCustomAuthPlugin [2]: Unable to resolve 2.0: missing requirement [2.0] package; (package=oracle.security.am.plugin.ExecutionStatus)[[
      org.osgi.framework.BundleException: Unresolved constraint in bundle oamCustomAuthPlugin [2]: Unable to resolve 2.0: missing requirement [2.0] package; (package=oracle.security.am.plugin.ExecutionStatus)
      at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3404)

      The names of jar file, class file, plugin xml file etc are all same. My plugin code is very generic and I have the following values in the plugin's manifest and xml file

      Plugin xml file [oamCustomAuthPlugin.xml]:
      <Plugin name="oamCustomAuthPlugin" type="Authentication">
      <author>uid</author>
      <email>test@test.com</email>
      <creationDate>09:32:20, 2011-11-13</creationDate>
      <version>4</version>
      <description>OAM Custom Authentication plugin</description>
      <interface>oracle.security.am.plugin.authn.AbstractAuthenticationPlugIn</interface>
      <implementation>com.company.oam.oamCustomAuthPlugin</implementation>
      <configuration>
      <AttributeValuePair>
      <Attribute type="string" length="20">INPUT_PARAM1</Attribute>
      <mandatory>true</mandatory>
      <instanceOverride>false</instanceOverride>
      <globalUIOverride>true</globalUIOverride>
      <value>Param1</value>
      </AttributeValuePair>
      <AttributeValuePair>
      <Attribute type="string" length="20">INPUT_PARAM2</Attribute>
      <mandatory>true</mandatory>
      <instanceOverride>false</instanceOverride>
      <globalUIOverride>true</globalUIOverride>
      <value>Param2</value>
      </AttributeValuePair>
      </configuration>
      </Plugin>

      Manifest File [MANIFEST.MF]:
      Ant-Version: Apache Ant 1.7.1
      Bundle-Version: 1.0.0.4
      Bundle-Name: oamCustomAuthPlugin
      Bundle-Activator: oamCustomAuthPlugin
      Bundle-ManifestVersion: 2
      Created-By: 17.0-b17 (Sun Microsystems Inc.)
      Import-Package: oracle.security.am.plugin,oracle.security.am.plugin.authn
      Bundle-SymbolicName: oamCustomAuthPlugin
      Bundle-RequiredExecutionEnvironment: JavaSE-1.6


      Please let me know if you have faced a sinilar issues in the past. Please help !!