Hi Sebastian,
Yes, Ive already done that:
[
]
<customLibrary>
<string>org.apache.commons.codec.binary.Base64</string>
</customLibrary>
[
]
The class is found and loaded. I tested it with a class of my own. The
problem is when I try to call the custom method as described in my previous
mail. I dont understand why its looking in java.lang.Object?
Regards,
- Ben
From: Sébastien Bahloul [mailto:[email protected]]
Sent: 06 November 2013 00:59
To: Benjamin Vogt
Cc: lsc-users
Subject: Re: [lsc-users] customLibrary
Hi Benjamin,
Have you setup the "customLibrary" node inside the task declaration of your
lsc.xml configuration file ? It seems that there is not enough (any ?)
documentation about that, but you can look at the lsc-core-2.0.xsd file for
the corresponding declaration
Regards,
Sebastien BAHLOUL
IAM / Security specialist
Ldap Synchronization Connector : http://lsc-project.org
Blog : http://sbahloul.wordpress.com/
2013/11/5 Benjamin Vogt <[email protected]>
I am trying to use customLibrary with org.apache.commons.codec.binary.Base64
Specifying the class presents no problem, however when I call
custom.encodeBase64("blabla"), I get the folling error:
Nov 05 19:39:06 - ERROR - javax.script.ScriptException:
sun.org.mozilla.javascript.EvaluatorException: Java class
"[Ljava.lang.Object;" has no public instance field or method named
"encodeBase64". (<Unknown source>#3) in <Unknown source> at line number 3
[
]
<forceValues>
<string>custom. encodeBase64(blabla)</string>
</forceValues>
[
]
Can someone tell me what is the problem here?
Regards,
- Ben
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users