I've stepped through the code a bit and I'm making some progress.   This
particular block of code is being skipped.

                if(System.getProperty("LSC.PLUGINS.PACKAGEPATH") != null) {
                    String[] pathElements =
System.getProperty("LSC.PLUGINS.PACKAGEPATH").split(System.getProperty("path.separator"));
                    for(String pathElement: pathElements) {

urls.addAll(ClasspathHelper.forPackage(pathElement));
                    }
                }

I'm guessing that has something to do with this:

org.lsc.exception.LscConfigurationException:
java.lang.UnsupportedOperationException: Unknown plugin implementation:
com.montpeliertr.lscplugins.SortedLdapSourceService

How do I set LSC.PLUGINS.PACKAGEPATH ?   I didn't see a reference to it in
the
https://lsc-project.org/svn/lsc-samples/lsc-embeddable-sample/trunk/src/main/resources/etc/lsc.xmlexample.

Hugh


On Tue, May 1, 2012 at 7:18 AM, Hugh Kelley <[email protected]> wrote:

> Many thanks for your continued help with this.
>
> I am trying to implement the steps you gave me but am clearly going astray
> somewhere.  I have the following three files (attached).  The plugin class
> is by no means final, but I wanted to make sure I had the configuration
> "wiring" correct, then finish the logic.
>
> I have put my plugin code in a jar and it appears to be added to the
> classpath.
>
> Adding C:\_Active\LSC\lsc-2.0rc2\bin\..\lib\mina-core-2.0.0-RC1.jar to
> classpath
> *Adding C:\_Active\LSC\lsc-2.0rc2\bin\..\lib\montpeliertr-sortedldap.jar
> to classpath*
> Adding C:\_Active\LSC\lsc-2.0rc2\bin\..\lib\ocutil-2.5.2.jar to classpath
>
> but when the configuration engine goes to load the plugin, it can not/will
> not:
>
> [Loaded javax.naming.directory.Attribute from
> C:\_SDKs\Java\jdk1.6.0_30\jre\lib\rt.jar]
> May 01 07:13:27 - ERROR - org.lsc.exception.LscConfigurationException:
> java.lang.UnsupportedOperationException: Unknown plugin implementation:
> com.montpeliertr.lscplugins.SortedLdapSourceService
> [Loaded ch.qos.logback.classic.spi.ThrowableProxy from
> file:/C:/_Active/LSC/lsc-2.0rc2/lib/logback-classic-0.9.21.jar]
>
> I would just step through the execution myself, but I still can't get past
> the slf4j-api runtime issue I mentioned on the other thread.
>
> Any suggestions are appreciated,
>
> Hugh
>
>
>
> On Fri, Apr 27, 2012 at 11:28 AM, Sébastien Bahloul <
> [email protected]> wrote:
>
>> Hi Hugh,
>>
>> To configure and use a new service, please consider the FooBarLscService
>> sample as decribed below. This fake service has been designed as an
>> extension of a SimpleJdbcDestinationService to describe an embeddable LSC :
>>
>> 1. First define the configuration extension format:
>>
>> https://lsc-project.org/svn/lsc-samples/lsc-embeddable-sample/trunk/src/main/resources/etc/foobar-lsc-1.0.xsd
>>
>> 2. Generate the corresponding source  :
>>
>> $JAVA_HOME/bin/xjc -p com.foo.bar.generated
>> src/main/resources/etc/foobar-lsc-1.0.xsd
>>
>> 3. Use it inside the  service itself:
>> https://lsc-project.org/svn/lsc-samples/lsc-embeddable-sample/trunk/src/main/java/com/foo/bar/FooBarLscService.java
>>  (see
>> the constructor)
>>
>> 4. Configure it :
>> https://lsc-project.org/svn/lsc-samples/lsc-embeddable-sample/trunk/src/main/resources/etc/lsc.xml
>>  (look
>> at the pluginDestinationService node)
>>
>> Regards,
>> --
>> Sebastien BAHLOUL
>> IAM / Security specialist
>> Ldap Synchronization Connector : http://lsc-project.org
>> Blog : http://sbahloul.wordpress.com/
>>
>>
>>
>>
>
_______________________________________________________________
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