[midPoint] Scripted REST Connector

Radovan Semancik radovan.semancik at evolveum.com
Thu Sep 22 12:39:35 CEST 2016


So, I have documented it:

https://wiki.evolveum.com/pages/viewpage.action?pageId=23167702

There is also link to the new method of building REST connectors using 
the superclass.

-- 
Radovan Semancik
Software Architect
evolveum.com



On 09/22/2016 11:06 AM, Radovan Semancik wrote:
> Hi,
>
> This is a nasty issue. The http-builder package caused a lot of 
> trouble. This package was part of midPoint until approx 3.3. But in 
> 3.4 or 3.4.1 I had to remove it. It is not used anywhere in midPoint. 
> And the http-builder package seem to be unmaintained. That may be the 
> reason that it causes problems with dependency convergence. I couldn't 
> find any better way than to remove it from midPoint. At that time I 
> though that removing it is harmless - as it was not used anywhere ...
>
> Only (much) later I have learned that it is needed by scripted REST 
> connector ...
>
> We were exploring the situation few weeks ago. And there are actually 
> two results:
>
> 1. Scripted REST connector is a bad idea. Yes, it is good for 
> prototyping. But it is a maintenance nightmare. It is difficult to 
> organize the scripts, it is almost impossible to do proper connector 
> versioning and so on. So our decision was to abandon the scripted REST 
> - at least for the connectors that we will be creating. Instead of 
> that we have created a superclass for a REST-based connector 
> (https://github.com/Evolveum/polygon/tree/master/connector-rest). So 
> now we can easily create maintainable Java REST connectors.
>
> 2. The http-builder dependency should be a dependency of the scripted 
> REST connector and not a dependency of midPoint. Although we now 
> officially frown upon the Scripted REST approach, we still have some 
> legacy set of connectors that need to work (until we migrate them). 
> Therefore I have created a new version of the Scripted REST connector 
> that has the dependency fixed:
>
> http://nexus.evolveum.com/nexus/content/groups/connectors/org/forgerock/openicf/connectors/scriptedrest-connector/1.1.1.e2/scriptedrest-connector-1.1.1.e2.jar
>
> If you switch to this version then everything should work for you. But 
> most likely this is the last version of scrited REST connector that 
> there ever will be (at least from our side).
>
> (I'm going to put that explanantion also in wiki. I have realized it 
> is not there)
>
> -- 
> Radovan Semancik
> Software Architect
> evolveum.com
>
>
> On 09/22/2016 10:18 AM, Arda Nural wrote:
>>
>> Hello all,
>>
>> I was testing the scripted REST connector in v3.4.1 .  I am getting 
>> error below when I do the “test connection” on the resource.
>>
>> java.lang.NoClassDefFoundError: groovyx/net/http/RESTClient
>>
>>                at 
>> org.forgerock.openicf.connectors.scriptedrest.ScriptedRESTConnection.
>>
>> groovyx/net/http/RESTClient seems to be in http-builder package. So I 
>> added it as a dependency in the admin-gui pom.
>>
>> Now getting Dependency convergence errors in mvn build. Could you 
>> please help me out how to configure ScriptedREST connector? Thank you 
>> in advance.
>>
>> Arda
>>
>>
>>
>> _______________________________________________
>> midPoint mailing list
>> midPoint at lists.evolveum.com
>> http://lists.evolveum.com/mailman/listinfo/midpoint
>
>
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20160922/5ff54c82/attachment.htm>


More information about the midPoint mailing list