0 Replies Latest reply on Dec 5, 2013 10:01 AM by user608228

    Remote manager custom javatask

    user608228

      Hi,

       

      This is on OIM 11g R2:

       

      I have developed a custom Java task (remote), and this contains few business logic that involves usage of Platform.getService method to read in lookup and form instance related functionality. I have placed the jar file in server JavaTask folder and Java Task folder of remote manager. When I invoke the java task, following error is thrown on remote manager console -this is on line where I call Platform.getService:

       

      Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: IOExc

      eption parsing XML document from class path resource [META-INF/iam-spring-config

      .xml]; nested exception is java.io.FileNotFoundException: class path resource [M

      ETA-INF/iam-spring-config.xml] cannot be opened because it does not exist

              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea

      nDefinitions(XmlBeanDefinitionReader.java:349)

              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea

      nDefinitions(XmlBeanDefinitionReader.java:310)

              at org.springframework.beans.factory.support.AbstractBeanDefinitionReade

      r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)

              at org.springframework.beans.factory.support.AbstractBeanDefinitionReade

      r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)

              at org.springframework.beans.factory.support.AbstractBeanDefinitionReade

      r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)

              at org.springframework.beans.factory.support.AbstractBeanDefinitionReade

      r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:212)

              at org.springframework.context.support.AbstractXmlApplicationContext.loa

      dBeanDefinitions(AbstractXmlApplicationContext.java:113)

              at org.springframework.context.support.AbstractXmlApplicationContext.loa

      dBeanDefinitions(AbstractXmlApplicationContext.java:80)

              at org.springframework.context.support.AbstractRefreshableApplicationCon

      text.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)

              at org.springframework.context.support.AbstractApplicationContext.obtain

      FreshBeanFactory(AbstractApplicationContext.java:422)

              at org.springframework.context.support.AbstractApplicationContext.refres

      h(AbstractApplicationContext.java:352)

              at org.springframework.context.support.ClassPathXmlApplicationContext.<i

      nit>(ClassPathXmlApplicationContext.java:139)

              at org.springframework.context.support.ClassPathXmlApplicationContext.<i

      nit>(ClassPathXmlApplicationContext.java:83)

              at oracle.iam.platform.utils.SpringBeanFactory.createBeanFactory(SpringB

      eanFactory.java:56)

              at oracle.iam.platform.utils.SpringBeanFactory.<clinit>(SpringBeanFactor

      y.java:52)

              ... 23 more

      Caused by: java.io.FileNotFoundException: class path resource [META-INF/iam-spri

      ng-config.xml] cannot be opened because it does not exist

              at org.springframework.core.io.ClassPathResource.getInputStream(ClassPat

      hResource.java:143)

       

       

      Am I missing something here?

       

      Thanks in advance