[midPoint] Scripted REST Connector

Arda Nural arda.nural at biznet.com.tr
Thu Sep 22 16:05:56 CEST 2016


Thank you for the wiki page and modified connector. Before seeing your
reply, I added the http-builder dependency again, excluding the conflicting
dependencies. Now I returned back and using the new connector jar you
provided. This will help us for the short term.  Soon, we should start
migrating to polygon based REST connectors.

Arda


-----Original Message-----
From: midPoint [mailto:midpoint-bounces at lists.evolveum.com] On Behalf Of
midpoint-request at lists.evolveum.com
Sent: Thursday, September 22, 2016 1:00 PM
To: midpoint at lists.evolveum.com
Subject: midPoint Digest, Vol 53, Issue 60

Send midPoint mailing list submissions to
	midpoint at lists.evolveum.com

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.evolveum.com/mailman/listinfo/midpoint
or, via email, send a message with subject or body 'help' to
	midpoint-request at lists.evolveum.com

You can reach the person managing the list at
	midpoint-owner at lists.evolveum.com

When replying, please edit your Subject line so it is more specific than
"Re: Contents of midPoint digest..."


Today's Topics:

   1. Re: Scripted REST Connector (Radovan Semancik)


----------------------------------------------------------------------

Message: 1
Date: Thu, 22 Sep 2016 11:06:53 +0200
From: Radovan Semancik <radovan.semancik at evolveum.com>
To: midpoint at lists.evolveum.com
Subject: Re: [midPoint] Scripted REST Connector
Message-ID: <58e7f065-6ea1-012e-69d3-b3695fcb56d1 at evolveum.com>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.evolveum.com/pipermail/midpoint/attachments/20160922/85a379a6/attachment-0001.html>

------------------------------

Subject: Digest Footer

_______________________________________________
midPoint mailing list
midPoint at lists.evolveum.com
http://lists.evolveum.com/mailman/listinfo/midpoint


------------------------------

End of midPoint Digest, Vol 53, Issue 60
****************************************



More information about the midPoint mailing list