This error is encountered only with use of the RPM installer on a Ubuntu server 10.04 64 bit machine. Use of the tar.gz or zip packages works flawlessly.

_Here is the error encountered while following the quickstart guide for 1.2:_ <username>@<hostname>:/usr/share/doc/lsc/sample/bin$ sudo ./lsc-sample --start-ldap-server
Starting LDAP server on ldap://localhost:33389/ ...
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/ParseException Caused by: java.lang.ClassNotFoundException: org.apache.commons.cli.ParseException
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: org.lsc.utils.LdapServer.  Program will exit.

This was the process I followed to install LSC from RPM on Ubuntu server 10.04 64 bit:
_Convert RPM to DEB:_

Install necessary stuff:
sudo apt-get install alien dpkg-dev debhelper build-essential

Get the LSC package:
cd /usr/local/src
sudo wget http://tools.lsc-project.org/attachments/download/148/lsc-1.2.1-0.el5.noarch.rpm

Convert the package to DEB:
sudo alien lsc-1.2.1-0.el5.noarch.rpm

Install the Debian version:
sudo dpkg -i lsc-1.2.1-0.el5.noarch.deb

I noticed there were warnings when running the sudo alien conversion command, but ignored them. I'm assuming that is normal since many errors are typically encountered when compiling applications on nix distros.

Anyway, could someone please assist me in locating the cause of error and shed some light on possible solution/workaround.

Lastly, what is the benefit of running LSC from the package installer vs running it from the zip or .gz packages?

Many thanks,
Pete
_______________________________________________________________
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