Skip to Main Content

Security Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

OAM plugin: using external jar's

Filip HuysmansMar 7 2013 — edited Aug 27 2013
Hello everyone,

I'm using OAM 11.1.2 and I want to build an authentication plugin.
In my code I need to reference classes to validate the information. These classes are in a jar file. This jar distribution depends on another jar.
Meaning I need to add multiple jar's to my plugin.
How can this be done?

I tried the following:
* Adding the classes of the jars directly into my jar. Didn't work, since it still depends on yet other classes.
* Adding the jar's as libraries to the wls-server, meanly the oam_server1. Adding the reference to these jars in the manifest.xml file. Then I have a problem during activation of the plugin. He complains that he can't find the classes.
<Activation failed due to felix bundle exception while installing and starting the bundle.Unresolved constraint in bundle firstPlugin [3]: Unable to resolve 3.0: missing requirement [3.0] package; (package=javax.net.ssl.HttpsURLConnection)
org.osgi.framework.BundleException: Unresolved constraint in bundle firstPlugin [3]: Unable to resolve 3.0: missing requirement [3.0] package; (package=javax.net.ssl.HttpsURLConnection)
So any other solution is very much appreciated here.

Thank you in advance.

Filip Huysmans.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 24 2013
Added on Mar 7 2013
15 comments
1,632 views