Hi Clement,

I did the JAVA_OPTS part. However, I'm not sure what the -f parameter is 
pointing to, as this directory does not exist in my installation and the 
tutorial doesn't talk about it.

Marian

> On 12. Dec 2014, at 11:56, Clément OUDOT <[email protected]> wrote:
> 
> 
> 
> 2014-12-12 11:41 GMT+01:00 Marian Harbach <[email protected] 
> <mailto:[email protected]>>:
> Hi,
> 
> I was trying to follow your tutorial to create an executable plugin (URL: 
> http://lsc-project.org/wiki/documentation/plugins/executable 
> <http://lsc-project.org/wiki/documentation/plugins/executable>). After 
> following all other steps (adding the jar, adjusting the namespace, I add the 
> following configuration to my task, as in the tutorial.
> 
>      <pluginSourceService 
> implementationClass="org.lsc.plugins.connectors.executable.ExecutableLdifSourceService">
>         <name>src-service</name>
>         <connection reference="executable" />
>         <exec:executableLdifSourceServiceSettings>
>           <name>src-service-exec</name>
>           <connection reference="executable" />
>           <exec:listScript>/home/user/list.sh</exec:listScript>
>           <exec:getScript>/home/user/get.sh</exec:getScript>
>         </exec:executableLdifSourceServiceSettings>
>       </pluginSourceService>
> 
> And the connection as in the tutorial:
> 
>     <pluginConnection>
>       <name>executable</name>
>       <url>fake</url>
>       <username>fake</username>
>       <password>fake</password>
>     </pluginConnection>
> 
> When running this task, I get the following error:
> 
> Dec 12 11:28:13 - ERROR - org.lsc.exception.LscConfigurationException: 
> Configuration exception: Unable to identify the executable LDIF source 
> service configuration inside the plugin source node of the task: getcerts
> Dec 12 11:28:13 - DEBUG - org.lsc.exception.LscConfigurationException: 
> Configuration exception: Unable to identify the executable LDIF source 
> service configuration inside the plugin source node of the task: getcerts
> org.lsc.exception.LscConfigurationException: Configuration exception: Unable 
> to identify the executable LDIF source service configuration inside the 
> plugin source node of the task: getcerts
>       at org.lsc.Task.<init>(Task.java:148) ~[lsc-core-2.1.1.jar:na]
>       at org.lsc.SimpleSynchronize.init(SimpleSynchronize.java:104) 
> ~[lsc-core-2.1.1.jar:na]
>       at org.lsc.SimpleSynchronize.launch(SimpleSynchronize.java:154) 
> ~[lsc-core-2.1.1.jar:na]
>       at org.lsc.Launcher.run(Launcher.java:223) [lsc-core-2.1.1.jar:na]
>       at org.lsc.Launcher.launch(Launcher.java:158) [lsc-core-2.1.1.jar:na]
>       at org.lsc.Launcher.main(Launcher.java:141) [lsc-core-2.1.1.jar:na]
> Caused by: org.lsc.exception.LscServiceConfigurationException: Unable to 
> identify the executable LDIF source service configuration inside the plugin 
> source node of the task: getcerts
>       at 
> org.lsc.plugins.connectors.executable.ExecutableLdifSourceService.<init>(ExecutableLdifSourceService.java:74)
>  ~[lsc-executable-plugin-1.0.jar:na]
>       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
> Method) ~[na:1.7.0_72]
>       at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>  ~[na:1.7.0_72]
>       at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>  ~[na:1.7.0_72]
>       at java.lang.reflect.Constructor.newInstance(Constructor.java:526) 
> ~[na:1.7.0_72]
>       at org.lsc.Task.<init>(Task.java:143) ~[lsc-core-2.1.1.jar:na]
>       ... 5 common frames omitted
> 
> I tried adding some dummy variables but that didn't change anything, as they 
> are also marked as optional in the XSD. Any ideas what's going on?
> 
> 
> 
> 
> 
> Hi Marian,
> 
> You need to modify the way you run LSC to load the plugin, see 
> http://lsc-project.org/wiki/documentation/plugins/executable#plugin_loading 
> <http://lsc-project.org/wiki/documentation/plugins/executable#plugin_loading>
> 
> 
> Clément.

-- 
Marian Harbach
Research Associate
Distributed Computing and Security Group
Leibniz Universität Hannover
Schloßwender Str. 5, 30159 Hannover, Germany
Tel. +49 (0) 511 762 79 9038

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users

Reply via email to