This content has been marked as final. Show 8 replies
Please try with below steps and let me know if you are getting any error while activating the plugin.
1. Regenerate the custom authentication plugin, this time including all the referenced external classes within the custom plugin jar file itself.
(When the bundle is generated, ensure that the jar file MANIFEST.MF file does not include the external package(s) in the Import-Package entry.)
2. In OAM Console System Configuration -> Common Configuration -> Plugins page, select the previously uploaded custom plugin and click Deactivate Selected.
Refresh the page until the plugin has status 'Deactivated'.
Then select the same plugin and click 'Remove Selected'.
4. Upload the modified custom authentication plugin which includes the external classes.
5. Distribute and Activate the plugin.
If this helps please mark.
Tried to include all referenced classes (there are a lot) and then the packaging (by felix maven-bundle-plugin) fails because it is not able to find some of the referenced classes (and I just copied to classes into the classes directory and tried configuring them using maven-bunlde-plugin features). What I don't understand is why the javax.net.ssl is not located, although it is in default.properties under jre-1.6 and thus should be available.
Edited by: soverbosch on 28-jan-2013 15:18
Can it be that this problem is caused by the fact that OAM is running on java version 1.7 and the default configuration of the Felix version used by OAM (3.0.6) only is configured till version 1.6. So I think it will cause the default available packages to be limited (or zero). I haven't tried yet to use my own configuration by either opening up the jar and repackaging with new default.properties or by supplying a new configuration location through an environment setting. Will it work????
Ok, this solves it indeed. So what did I do:
1) On the "Server Start" tab of the server instance which contains OAM I added -Dfelix.config.properties=file:/home/app/oracle/felix.properties
2) Copied the default.properties out of the felix.jar to /home/app/oracle/felix.properties
3) Edited the felix.properties file and copied the part wich starts with jre-1.6 till the last line (version="0.0.0.1_006_JavaSE") at the end of the file and replaced the new jre-1.6 with jre-1.7.
4) Restarted the server
5) Tried to activate the plugin, and it did activate.