<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi,<br>
<br>
This sound like an interesting problem.<br>
<br>
ICF is a tricky thing. It is using its own classloaders. Therefore
the things may be slightly different that it may seem at the first
sight. Firstly please make sure that the you are using the correct
annotation in the connector class. Something like this:<br>
<br>
@ConnectorClass(displayNameKey = "UI_CONNECTOR_NAME",
configurationClass = DummyConfiguration.class)<br>
public class DummyConnector implements Connector, ......<br>
<br>
The archetype is maintained by the OpenICF project and I'm not
100% sure that it works correctly. We actually do not use it and
we usually create the connector structure manually. Therefore it
is possible that the archetype does not create a correct code. It
is better to double-check the generated code.<br>
<br>
Secondly please make sure that the JAR classes of the connector
are placed in the <midpoint.home>/icf-connectors/<br>
Simply placing the JAR files on the classpath is not enought. ICF
classloaders in midPoint are set up to look at this specific
location.<br>
<br>
Also please make sure that the JAR contains a correct MANIFEST.MF
file. It should look like this:<br>
Manifest-Version: 1.0
<br>
Archiver-Version: Plexus Archiver
<br>
Created-By: Apache Maven
<br>
Built-By: semancik
<br>
Build-Jdk: 1.7.0_21
<br>
Bugtracking-System: <a class="moz-txt-link-freetext" href="http://jira.evolveum.com">http://jira.evolveum.com</a>
<br>
Bundle-ManifestVersion: 2
<br>
Bundle-Name: Dummy Connector
<br>
Bundle-SymbolicName: com.evolveum.icf.dummy
<br>
Bundle-Vendor: Evolveum
<br>
Bundle-Version: 2.0
<br>
ConnectorBundle-FrameworkVersion: 1.1
<br>
ConnectorBundle-Name: com.evolveum.icf.dummy
<br>
ConnectorBundle-Version: 2.0
<br>
License: Apache License v2.0
<br>
License-URL: <a class="moz-txt-link-freetext" href="http://www.apache.org/licenses/LICENSE-2.0.txt">http://www.apache.org/licenses/LICENSE-2.0.txt</a>
<br>
Organization: Evolveum
<br>
Organization-URL: <a class="moz-txt-link-freetext" href="http://www.evolveum.com">http://www.evolveum.com</a>
<br>
SCM-Revision: git-v2.2support-151-g4a2df66
<br>
Version-Number: 2.2.1-SNAPSHOT<br>
<br>
<pre class="moz-signature" cols="72">--
Radovan Semancik
Software Architect
evolveum.com
</pre>
<br>
<br>
On 11/21/2013 12:26 PM, dev.eloper wrote:<br>
</div>
<blockquote cite="mid:46fd1184.3f3d7c0d.528dedda.c3577@o2.pl"
type="cite">Hi everyone,<br>
<br>
I'm trying to add a custom ICF connector, generated with the Maven
archetype. However, when I'm trying to execute the connector, I'm
getting the following error in the UI:<br>
<br>
===<br>
<span>Error resolving connector reference in <a class="moz-txt-link-freetext" href="resource:xxx">resource:xxx</a> (My
Sample): Error creating connector instace: The classes (JAR) of
connector: My Sample (OID:xxx) were not found by the ICF
framework; connector type=org.forgerock.openicf.xxx, version=yyy</span><br>
===<br>
<br>
Eventually, I drilled down to the code that might be causing a
problem:<br>
<br>
===
org.identityconnectors.framework.impl.api.local.LocalConnectorInfoManagerImpl
in
org/forgerock/openicf/framework/connector-framework-internal-1.1.1.e6329.jar:<br>
249: options =
connectorClass.getAnnotation(ConnectorClass.class);<br>
<br>
This line returns null. But I checked that calling
connectorClass.getAnnotations() will return a single annotation:
com.sun.proxy.$Proxy182, which proxies the original annotation,
instead of hte actual ConnectorClass annotation.<br>
<br>
Has anyone seen this problem before? What might it be related to?
And, how could I fix this issue?<br>
<br>
Thank you.
<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>
<br>
</body>
</html>