On 21/10/2009 10:38, sebastiendescamps at free.fr wrote: > Hello, > > I am currently working on an OpenLDAP to AD synchronization, and I have > problems regarding the lsc.properties configuration file. I followed (with > difficulties, i have to say, as I still am a student) the tutorial > (http://lsc-project.org/wiki/documentation/tutorials/openldaptoactivedirectory) > on the website, but i have errors when i test the synchronization with the > "ant lsc::syncrhonize" command : > > code : > [java] 0 - WARN - Starting sync for user (ldap2ldap) > [java] 0 - FATAL - Error while launching the following task: user. > Pleas > e check your code ! (java.lang.reflect.InvocationTargetException) > [java] java.lang.reflect.InvocationTargetException > [java] at > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > [java] at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeC > onstructorAccessorImpl.java:39) > [java] at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Del > egatingConstructorAccessorImpl.java:27) > [java] at > java.lang.reflect.Constructor.newInstance(Constructor.java:51 > 3) > [java] at > org.lsc.SimpleSynchronize.launchTask(SimpleSynchronize.java:2 > 44) > [java] at > org.lsc.SimpleSynchronize.launch(SimpleSynchronize.java:172) > [java] at org.lsc.Launcher.run(Launcher.java:125) > [java] at org.lsc.Launcher.main(Launcher.java:113) > [java] Caused by: java.lang.ExceptionInInitializerError > [java] at > org.lsc.jndi.SimpleJndiDstService.<init>(SimpleJndiDstService > .java:94) > [java] ... 8 more > [java] Caused by: java.lang.ClassNotFoundException: > org.lsc.beans.inetOrgPe > rsonBean > [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:200) > [java] at java.security.AccessController.doPrivileged(Native Method) > [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:307) > [java] at > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > > [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:252) > [java] at > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) > > [java] at java.lang.Class.forName0(Native Method) > [java] at java.lang.Class.forName(Class.java:169) > [java] at > org.lsc.jndi.SimpleJndiDstService.<init>(SimpleJndiDstService > .java:92) > [java] ... 8 more > > As I don't really know Java language, i cannot figure out if this error is > caused by a configuration problem when I built the connector, or by a bad > configuration (or version) of the java JDK.
Hi ! Basically what this error message is saying is that the class "org.lsc.beans.inetOrgPersonBean" can't be found. I presume that your lsc.properties is configured to use it (lsc.tasks.<taskname>.bean =). This property is normally the bean for the *destination* objectClass - so if you're synchronizing *to* Active Directory, it should probably be "org.lsc.beans.userBean". Does this help? If it doesn't work as you expect, please post your configuration so we can help you as best possible :) > ps : as far as i can see, most of the developpers seem to be french ; as i am > french too, an answer in french is ok for me, if it is alright for the > community. We are all French, in fact! However, I think it's best to stick to English on the mailing lists. Feel free to come by the IRC channel #lsc-project on Freenode, though! Regards, Jonathan

