[midPoint] Groovy problem (?)

Pertti Kellomäki pertti.kellomaki at datactica.fi
Mon Nov 14 10:01:18 CET 2016


Hi,


I am trying to use role-meta-ldapgroup.xml from midpoint/samples/stories/unix-ldap.


Uploading the meta role via rest api succeeds, but I get an error message when trying to upload the following role:


<role
        xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
        xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
        xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3"
        xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">
      <name>My LDAP Group</name>
      <description>Use LDAP Group Metarole</description>
      <assignment>
    <targetRef oid="1568ec1e-36cc-11e6-a052-3c970e44b9e2" type="RoleType"/>
      </assignment>
</role>


The error message is shown below, and to me it looks like running a Groovy script fails for some reason. I am running midPoint in a docker container based on Ubuntu 14.04, and running 'groovy -v' says:


 Groovy Version: 1.8.6 JVM: 1.8.0_111 Vendor: Oracle Corporation OS: Linux


Any ideas? Am I missing some package in the container?


Thanks, Pertti


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

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Script3.groovy: 1: unexpected token: import @ line 1, column 45.
    javax.naming.ldap.Rdn                                import jav
                                 ^

1 error
* Closing connection 0
 expression in mapping in outbound mapping for {.../resource/instance-3}dn in resource:cb9ea519-cf73-4d0c-86aa-7fafc598f08b(LDAP)(name=PPV(PolyString:My LDAP Group); ) in expression in mapping in outbound mapping for {.../resource/instance-3}dn in resource:cb9ea519-cf73-4d0c-86aa-7fafc598f08b(LDAP)


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20161114/07f4effc/attachment.htm>


More information about the midPoint mailing list