Hi Gabriel,

Have you found any solution to fix your issue ?

Regards,
-- 
Sebastien BAHLOUL
IAM / Security specialist
Ldap Synchronization Connector : http://lsc-project.org
Blog : http://sbahloul.wordpress.com/



2012/5/3 Gabriel Guillon <[email protected]>

> It actually is.
> Here is a ps -afxwww of a well configured running lsc :
> /usr/bin/java -cp* :/home/automate/lsc/sample/lib/hsqldb-1.8.0.10.jar*
> :/home/automate/lsc/sample/lib/opendj-server-2.4.5.jar:.:/home/automate/lsc/bin/../lib/slf4j-api-1.6.0.jar:/home/automate/lsc/bin/../lib/antlr-2.7.7.jar:/home/automate/lsc/bin/../lib/ant-optional-1.5.1.jar:/home/automate/lsc/bin/../lib/apacheds-all-1.5.7.jar:/home/automate/lsc/bin/../lib/apacheds-avl-partition-1.5.7.jar:/home/automate/lsc/bin/../lib/apacheds-core-1.5.7.jar:/home/automate/lsc/bin/../lib/apacheds-core-annotations-1.5.7.jar:/home/automate/lsc/bin/../lib/apacheds-core-api-1.5.7.jar:/home/automate/lsc/bin/../lib/apacheds-core-avl-1.5.7.jar:/home/automate/lsc/bin/../lib/apacheds-core-constants-1.5.7.jar:/home/automate/lsc/bin/../lib/apacheds-core-entry-1.5.7.jar:/home/automate/lsc/bin/../lib/apacheds-core-integ-1.5.7.jar:/home/automate/lsc/bin/../lib/apacheds-core-jndi-1.5.7.jar:/home/automate/lsc/bin/../lib/apacheds-core-mock-1.5.7.jar:/home/automate/lsc/bin/../lib/apacheds-i18n-1.5.7.jar:/home/automate/lsc/bin/../lib/apacheds-interceptor-kerberos-1.5.7.jar:/home/automate/lsc/bin/../lib/apacheds-jdbm-1.5.7.jar:/home/automate/lsc/bin/../lib/apacheds-jdbm-partition-1.5.7.jar:/home/automate/lsc/bin/../lib/apacheds-jdbm-store-1.5.7.jar:/home/automate/lsc/bin/../lib/apacheds-kerberos-shared-1.5.7.jar:/home/automate/lsc/bin/../lib/apacheds-ldif-partition-1.5.7.jar:/home/automate/lsc/bin/../lib/apacheds-protocol-kerberos-1.5.7.jar:/home/automate/lsc/bin/../lib/apacheds-protocol-ldap-1.5.7.jar:/home/automate/lsc/bin/../lib/apacheds-protocol-shared-1.5.7.jar:/home/automate/lsc/bin/../lib/apacheds-server-annotations-1.5.7.jar:/home/automate/lsc/bin/../lib/apacheds-server-integ-1.5.7.jar:/home/automate/lsc/bin/../lib/apacheds-test-framework-1.5.7.jar:/home/automate/lsc/bin/../lib/apacheds-utils-1.5.7.jar:/home/automate/lsc/bin/../lib/apacheds-xdbm-base-1.5.7.jar:/home/automate/lsc/bin/../lib/apacheds-xdbm-search-1.5.7.jar:/home/automate/lsc/bin/../lib/apacheds-xdbm-tools-1.5.7.jar:/home/automate/lsc/bin/../lib/asm-3.2.jar:/home/automate/lsc/bin/../lib/asm-commons-3.2.jar:/home/automate/lsc/bin/../lib/asm-tree-3.2.jar:/home/automate/lsc/bin/../lib/asm-util-3.2.jar:/home/automate/lsc/bin/../lib/avalon-framework-4.1.3.jar:/home/automate/lsc/bin/../lib/bcprov-jdk15-140.jar:/home/automate/lsc/bin/../lib/bcprov-jdk16-140.jar:/home/automate/lsc/bin/../lib/btm-2.1.0.jar:/home/automate/lsc/bin/../lib/commons-beanutils-1.7.0.jar:/home/automate/lsc/bin/../lib/commons-beanutils-core-1.7.0.jar:/home/automate/lsc/bin/../lib/commons-cli-1.2.jar:/home/automate/lsc/bin/../lib/commons-codec-1.3.jar:/home/automate/lsc/bin/../lib/commons-collections-3.2.1.jar:/home/automate/lsc/bin/../lib/commons-configuration-1.4.jar:/home/automate/lsc/bin/../lib/commons-digester-1.8.jar:/home/automate/lsc/bin/../lib/commons-io-1.4.jar:/home/automate/lsc/bin/../lib/commons-jxpath-1.2.jar:/home/automate/lsc/bin/../lib/commons-lang-2.5.jar:/home/automate/lsc/bin/../lib/commons-logging-1.1.jar:/home/automate/lsc/bin/../lib/commons-logging-api-1.0.4.jar:/home/automate/lsc/bin/../lib/commons-pool-1.5.4.jar:/home/automate/lsc/bin/../lib/connector-api-1.5.jar:/home/automate/lsc/bin/../lib/dom4j-1.6.1.jar:/home/automate/lsc/bin/../lib/groovy-all-1.7.0.jar:/home/automate/lsc/bin/../lib/hamcrest-core-1.1.jar:/home/automate/lsc/bin/../lib/ibatis-sqlmap-2.3.4.726.jar:/home/automate/lsc/bin/../lib/javaee-api-5.jar:/home/automate/lsc/bin/../lib/jcifs-1.2.19.jar:/home/automate/lsc/bin/../lib/jdom-b9.jar:/home/automate/lsc/bin/../lib/je-4.1.10.jar:/home/automate/lsc/bin/../lib/js-1.7R2.jar:/home/automate/lsc/bin/../lib/jta-1.1.jar:/home/automate/lsc/bin/../lib/ldap-client-api-0.1.jar:/home/automate/lsc/bin/../lib/ldapsdk-4.1.jar:/home/automate/lsc/bin/../lib/logback-classic-0.9.21.jar:/home/automate/lsc/bin/../lib/logback-core-0.9.21.jar:/home/automate/lsc/bin/../lib/logkit-1.0.1.jar:/home/automate/lsc/bin/../lib/lsc-core-2.0rc2.jar:/home/automate/lsc/bin/../lib/mina-core-2.0.0-RC1.jar:/home/automate/lsc/bin/../lib/ocutil-2.5.2.jar:/home/automate/lsc/bin/../lib/servlet-api-2.2.jar:/home/automate/lsc/bin/
>
> I have an other stacktrace beyond the one I gave you :
>
> mai 03 14:21:19 - DEBUG - org.lsc.exception.LscConfigurationException:
> java.lang.reflect.InvocationTargetException
> org.lsc.exception.LscConfigurationException:
> java.lang.reflect.InvocationTargetException
>         at org.lsc.Task.<init>(Task.java:124) ~[lsc-core-2.0rc2.jar:na]
>         at org.lsc.SimpleSynchronize.init(SimpleSynchronize.java:101)
> ~[lsc-core-2.0rc2.jar:na]
>         at org.lsc.SimpleSynchronize.launch(SimpleSynchronize.java:130)
> ~[lsc-core-2.0rc2.jar:na]
>         at org.lsc.Launcher.run(Launcher.java:218) [lsc-core-2.0rc2.jar:na]
>         at org.lsc.Launcher.launch(Launcher.java:158)
> [lsc-core-2.0rc2.jar:na]
>         at org.lsc.Launcher.main(Launcher.java:141)
> [lsc-core-2.0rc2.jar:na]
> Caused by: java.lang.reflect.InvocationTargetException: null
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method) ~[na:1.7.0_03]
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
> Source) ~[na:1.7.0_03]
>         at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
> ~[na:1.7.0_03]
>         at java.lang.reflect.Constructor.newInstance(Unknown Source)
> ~[na:1.7.0_03]
>         at org.lsc.Task.<init>(Task.java:117) ~[lsc-core-2.0rc2.jar:na]
>         ... 5 common frames omitted
> Caused by: org.lsc.exception.LscServiceConfigurationException: Something
> bad happened while building the SqlMapClient
> instance.java.lang.RuntimeException: Error occurred.  Cause:
> com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause:
> java.lang.RuntimeException: Error parsing XPath
> '/sqlMapConfig/transactionManager/dataSource/end()'.  Cause:
> com.ibatis.sqlmap.client.SqlMapException: Error initializing DataSource.
> Could not instantiate DataSourceFactory.  Cause:
> java.lang.RuntimeException: SimpleDataSource: Error while loading
> properties. Cause: java.lang.ClassNotFoundException: org.hsqldb.jdbcDriver
>         at
> org.lsc.persistence.DaoConfig.getSqlMapClient(DaoConfig.java:127)
> ~[lsc-core-2.0rc2.jar:na]
>         at
> org.lsc.persistence.DaoConfig.getSqlMapClient(DaoConfig.java:145)
> ~[lsc-core-2.0rc2.jar:na]
>         at
> org.lsc.service.AbstractJdbcService.<init>(AbstractJdbcService.java:103)
> ~[lsc-core-2.0rc2.jar:na]
>         at
> org.lsc.service.SimpleJdbcSrcService.<init>(SimpleJdbcSrcService.java:120)
> ~[lsc-core-2.0rc2.jar:na]
>         ... 10 common frames omitted
> Caused by: java.lang.RuntimeException: Error occurred.  Cause:
> com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause:
> java.lang.RuntimeException: Error parsing XPath
> '/sqlMapConfig/transactionManager/dataSource/end()'.  Cause:
> com.ibatis.sqlmap.client.SqlMapException: Error initializing DataSource.
> Could not instantiate DataSourceFactory.  Cause:
> java.lang.RuntimeException: SimpleDataSource: Error while loading
> properties. Cause: java.lang.ClassNotFoundException: org.hsqldb.jdbcDriver
>         at
> com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:49)
> ~[ibatis-sqlmap-2.3.4.726.jar:na]
>         at
> com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:39)
> ~[ibatis-sqlmap-2.3.4.726.jar:na]
>         at
> com.ibatis.sqlmap.client.SqlMapClientBuilder.buildSqlMapClient(SqlMapClientBuilder.java:79)
> ~[ibatis-sqlmap-2.3.4.726.jar:na]
>         at
> org.lsc.persistence.DaoConfig.getSqlMapClient(DaoConfig.java:125)
> ~[lsc-core-2.0rc2.jar:na]
>         ... 13 common frames omitted
> Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML.
> Cause: java.lang.RuntimeException: Error parsing XPath
> '/sqlMapConfig/transactionManager/dataSource/end()'.  Cause:
> com.ibatis.sqlmap.client.SqlMapException: Error initializing DataSource.
> Could not instantiate DataSourceFactory.  Cause:
> java.lang.RuntimeException: SimpleDataSource: Error while loading
> properties. Cause: java.lang.ClassNotFoundException: org.hsqldb.jdbcDriver
>         at
> com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:53)
> ~[ibatis-sqlmap-2.3.4.726.jar:na]
>         at
> com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:46)
> ~[ibatis-sqlmap-2.3.4.726.jar:na]
>         ... 16 common frames omitted
> Caused by: java.lang.RuntimeException: Error parsing XPath
> '/sqlMapConfig/transactionManager/dataSource/end()'.  Cause:
> com.ibatis.sqlmap.client.SqlMapException: Error initializing DataSource.
> Could not instantiate DataSourceFactory.  Cause:
> java.lang.RuntimeException: SimpleDataSource: Error while loading
> properties. Cause: java.lang.ClassNotFoundException: org.hsqldb.jdbcDriver
>         at
> com.ibatis.common.xml.NodeletParser.processNodelet(NodeletParser.java:123)
> ~[ibatis-sqlmap-2.3.4.726.jar:na]
>         at
> com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:105)
> ~[ibatis-sqlmap-2.3.4.726.jar:na]
>         at
> com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:102)
> ~[ibatis-sqlmap-2.3.4.726.jar:na]
>         at
> com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:102)
> ~[ibatis-sqlmap-2.3.4.726.jar:na]
>
>
> On Thu, May 3, 2012 at 12:01 PM, Sébastien Bahloul <
> [email protected]> wrote:
>
>> Hi Gabriel,
>>
>> Regarding the stacktrace, consider enforcing the CLASSPATH environment
>> variable to include the complete path of the hsqldb JDBC driver.
>>
>> Regards,
>> --
>> Sebastien BAHLOUL
>> IAM / Security specialist
>> Ldap Synchronization Connector : http://lsc-project.org
>> Blog : http://sbahloul.wordpress.com/
>>
>>
>>
>> 2012/5/3 Gabriel Guillon <[email protected]>
>>
>>> It does not work.
>>> I put "${HOME}" in logback.xml and I get a directory called
>>> "HOME_IS_UNDEFINED" and a nice stacktrace :
>>>
>>> mai 03, 2012 11:52:10 AM
>>> com.ibatis.common.logging.jakarta.JakartaCommonsLoggingImpl error
>>> Grave: SimpleDataSource: Error while loading properties. Cause:
>>> java.lang.ClassNotFoundException: org.hsqldb.jdbcDriver
>>> java.lang.ClassNotFoundException: org.hsqldb.jdbcDriver
>>>         at java.net.URLClassLoader$1.run(Unknown Source)
>>>         at java.net.URLClassLoader$1.run(Unknown Source)
>>>         at java.security.AccessController.doPrivileged(Native Method)
>>>         at java.net.URLClassLoader.findClass(Unknown Source)
>>>         at java.lang.ClassLoader.loadClass(Unknown Source)
>>>         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>>>         at java.lang.ClassLoader.loadClass(Unknown Source)
>>>         at java.lang.Class.forName0(Native Method)
>>>         at java.lang.Class.forName(Unknown Source)
>>>         at
>>> com.ibatis.common.resources.Resources.classForName(Resources.java:267)
>>>         at
>>> com.ibatis.common.resources.Resources.instantiate(Resources.java:283)
>>>         at
>>> com.ibatis.common.jdbc.SimpleDataSource.initialize(SimpleDataSource.java:199)
>>>         at
>>> com.ibatis.common.jdbc.SimpleDataSource.<init>(SimpleDataSource.java:116)
>>>         at
>>> com.ibatis.sqlmap.engine.datasource.SimpleDataSourceFactory.initialize(SimpleDataSourceFactory.java:31)
>>>         at
>>> com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser$9.process(SqlMapConfigParser.java:220)
>>>         at
>>> com.ibatis.common.xml.NodeletParser.processNodelet(NodeletParser.java:121)
>>>         at
>>> com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:105)
>>>         at
>>> com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:102)
>>>         at
>>> com.ibatis.common.xml.NodeletParser.process(NodeletParser.java:102)
>>>         at
>>> com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:72)
>>>         at
>>> com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:51)
>>>         at
>>> com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:46)
>>>         at
>>> com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:39)
>>>         at
>>> com.ibatis.sqlmap.client.SqlMapClientBuilder.buildSqlMapClient(SqlMapClientBuilder.java:79)
>>>         at
>>> org.lsc.persistence.DaoConfig.getSqlMapClient(DaoConfig.java:125)
>>>         at
>>> org.lsc.persistence.DaoConfig.getSqlMapClient(DaoConfig.java:145)
>>>         at
>>> org.lsc.service.AbstractJdbcService.<init>(AbstractJdbcService.java:103)
>>>         at
>>> org.lsc.service.SimpleJdbcSrcService.<init>(SimpleJdbcSrcService.java:120)
>>>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>>> Method)
>>>         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
>>> Source)
>>>         at
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
>>>         at java.lang.reflect.Constructor.newInstance(Unknown Source)
>>>         at org.lsc.Task.<init>(Task.java:117)
>>>         at org.lsc.SimpleSynchronize.init(SimpleSynchronize.java:101)
>>>         at org.lsc.SimpleSynchronize.launch(SimpleSynchronize.java:130)
>>>         at org.lsc.Launcher.run(Launcher.java:218)
>>>         at org.lsc.Launcher.launch(Launcher.java:158)
>>>         at org.lsc.Launcher.main(Launcher.java:141)
>>>
>>>
>>> On Thu, May 3, 2012 at 11:41 AM, Clément OUDOT <[email protected]>wrote:
>>>
>>>> 2012/5/3 Gabriel Guillon <[email protected]>:
>>>> > Hi,
>>>> > It quite does the job, but it is a kind of workaround :) The bug still
>>>> > remain, no ?
>>>> > But it does not do the job completely : I would like to take $HOME
>>>> from
>>>> > environnement. Is that possible ?
>>>> >
>>>>
>>>> The doc says:
>>>>
>>>> "Properties are looked up in the the local scope first, in the context
>>>> scope second, in the system properties scope third, and in the OS
>>>> environment last. "
>>>>
>>>> So if your property is not set in local/context/system scope, it will
>>>> be fetched from environment.
>>>>
>>>> Clément.
>>>>
>>>
>>>
>>>
>>> --
>>> Gabriel Guillon
>>> Expert
>>> OCTO Technology
>>> ..........................................................
>>> 50, Avenue des Champs-Elysées
>>> 75008 Paris
>>> Tél : (33) 1 58 56 10 00
>>> Fax : (33) 1 58 56 10 01
>>> GSM : (33) 6 67 35 33 58
>>> http://www.octo.com/
>>> http://blog.octo.com/
>>> ...........................................................
>>> DevOps<http://blog.octo.com/devops-le-mouvement-qui-tend-a-%E2%80%9Cagilifier%E2%80%9D-votre-dsi/>?
>>>  TTM + Stabilité = $€ !
>>>
>>>
>>
>
>
> --
> Gabriel Guillon
> Expert
> OCTO Technology
> ..........................................................
> 50, Avenue des Champs-Elysées
> 75008 Paris
> Tél : (33) 1 58 56 10 00
> Fax : (33) 1 58 56 10 01
> GSM : (33) 6 67 35 33 58
> http://www.octo.com/
> http://blog.octo.com/
> ...........................................................
> DevOps<http://blog.octo.com/devops-le-mouvement-qui-tend-a-%E2%80%9Cagilifier%E2%80%9D-votre-dsi/>?
>  TTM + Stabilité = $€ !
>
>
_______________________________________________________________
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