Skip to Main Content

Security Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

iam-spring-config.xml is necessary?

880087Aug 15 2011 — edited Aug 15 2011
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 12 2011
Added on Aug 15 2011
2 comments
2,628 views