September 29, 2017 at 10:09 am #19010dwindauParticipant
I’ve compiled the OpenDj server-project successfully and now I’m trying to create a plugin, that provides reciprocal attribute handling. I’ve compiled the plugin after having a lot of trouble to change all the maven dependencies in the POM files and copied it into the right folders. Then I tried to register the plugin with the server with the following command (looked it up in the official documentation):
-p 4444 -D "cn=Directory Manager" -w $PW create-plugin --plugin-name "Example Plugin" --type example --set enabled:true --set plugin-type:startup --set java-class:com.example.opends.ExamplePlugin -X -n
I get the error that “example” is not a valid type and changed it to the most obvious “custom”, followed by this error message:
Unwilling to Perform: The Directory Server is unwilling to add configuration entry cn=Example Plugin,cn=Plugins,cn=config because one of the add listeners registered with the parent entry cn=Plugins,cn=config rejected this change with the message: The Plugin could not be decoded due to the following reason: The value "com.example.opends.ExamplePlugin" is not a valid value for the "java-class" property, which must have the following syntax: CLASS <= org.opends.server.api.plugin.DirectoryServerPlugin
Leaving the “–set java class:”-part it says the property java-class is not defined. I’d like to solve this problem but I don’t really have a clue what the problem actually is.
Can anyone here help me?
With kind regards,
dwindauSeptember 29, 2017 at 10:14 am #19011JnRouvignacParticipant
What is the java class name of your
Also, in the XML configuration file, what is the value of the attribute
Jean-NoelSeptember 29, 2017 at 11:08 am #19019dwindauParticipant
Thanks for your answer!
java class name: opendj-server-example-plugin/src/main/java/com/example/opendj/ExamplePlugin.java
(but it doesn’t seem to inherit anything from DirectoryServerPlugin)
<adm:managed-object name=”example-plugin” […]>
I really appreciate your help.
With kind regards,
PS: If there are several answers from me: I can’t see them, since the forum seem to have eaten them (sorry!).
You must be logged in to reply to this topic.