Hi Gurus,
Trying to use the code
public class Sample {
OIMClient oimClient;
UserManager service;
public void init() throws LoginException {
String ctxFactory = "weblogic.jndi.WLInitialContextFactory";
String serverURL = "t3://OIM_HOSTNAME:14000";
Hashtable env = new Hashtable();
env.put(OIMClient.JAVA_NAMING_PROVIDER_URL, serverURL);
env.put(OIMClient.JAVA_NAMING_FACTORY_INITIAL, ctxFactory);
OIMClient oimClient = new OIMClient(env);
oimClient.login("xelsysadm", "passwd");
service = Platform.getService(UserManager.class);
}
and i received the error
SEVERE: Instantiating Spring Bean Factory Failed.IOException parsing XML document from class path resource [META-INF/iam-spring-config.xml];
nested exception is java.io.FileNotFoundException: class path resource [META-INF/iam-spring-config.xml]
cannot be opened because it does not exist
Exception in thread "main" java.lang.ExceptionInInitializerError at oracle.iam.platform.Platform.<clinit>(Platform.java:101)
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource
[META-INF/iam-spring-config.xml]; nested exception is java.io.FileNotFoundException: class path resource
[META-INF/iam-spring-config.xml] cannot be opened because it does not exist
at this line
service = Platform.getService(UserManager.class);
Really i need this iam-spring-config.xml ?
If yes, can you send a url to studies?
Thanks in advanced.
Alex Silva