<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
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 ...<br>
<br>
Only (much) later I have learned that it is needed by scripted REST
connector ...<br>
<br>
We were exploring the situation few weeks ago. And there are
actually two results:<br>
<br>
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
(<a class="moz-txt-link-freetext" href="https://github.com/Evolveum/polygon/tree/master/connector-rest">https://github.com/Evolveum/polygon/tree/master/connector-rest</a>). So
now we can easily create maintainable Java REST connectors.<br>
<br>
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:<br>
<br>
<a class="moz-txt-link-freetext" href="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">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</a><br>
<br>
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).<br>
<br>
(I'm going to put that explanantion also in wiki. I have realized it
is not there)<br>
<br>
<pre class="moz-signature" cols="72">--
Radovan Semancik
Software Architect
evolveum.com
</pre>
<br>
<br>
<div class="moz-cite-prefix">On 09/22/2016 10:18 AM, Arda Nural
wrote:<br>
</div>
<blockquote
cite="mid:a6f751c3e84a03bb915ce0a67a77bb9c@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:8.5in 11.0in;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style>
<div class="WordSection1">
<p class="MsoNormal">Hello all,</p>
<p class="MsoNormal">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. </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">java.lang.NoClassDefFoundError:
groovyx/net/http/RESTClient</p>
<p class="MsoNormal"> at
org.forgerock.openicf.connectors.scriptedrest.ScriptedRESTConnection.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">groovyx/net/http/RESTClient seems to be in
http-builder package. So I added it as a dependency in the
admin-gui pom.</p>
<p class="MsoNormal">Now getting Dependency convergence errors
in mvn build. Could you please help me out how to configure
ScriptedREST connector? Thank you in advance.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Arda</p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
<br>
</body>
</html>