Hello Guru's,
We are trying to use a datasource on OIM Java Tasks, but we are encounter a problem about it, it seems like is not finding the required libs needed to use JPA.
The object of this is update a database field through datasource.
Anyone have one example for how to use a JPA - DataSource on the Java Tasks in OIM 11.1.2.2?
Persistant files are ok with the provider, this is not the case where provider is not there.
Most relevant errors on log from this:
Running UPDATETASK
Target Class = identity.dbconnector.task.UpdateDateTask
<Apr 7, 2015 4:50:09 PM CDT> <Error> <IDENTITY.DBCONNECTOR.TASK.UPDATEDATETASK> <BEA-000000> <identity.dbconnector.task.UpdateDateTask : writeDate : 2015-04-07:16:50:09BBBBB: writeDate start - 51840523>
<Apr 7, 2015 4:50:09 PM CDT> <Error> <IDENTITY.DBCONNECTOR.TASK.UPDATEDATETASK> <BEA-000000> <identity.dbconnector.task.UpdateDateTask : connect : 2015-04-07:16:50:09ErrorBBBBB: writeDate - Cannot instantiate class: com.sun.jndi.fscontext.RefFSContextFactory>
- java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Caused by: javax.persistence.PersistenceException: No Persistence provider for EntityManager named BBBBB: The following providers:
- org.eclipse.persistence.jpa.PersistenceProvider
- kodo.persistence.PersistenceProviderImpl
- org.apache.openjpa.persistence.PersistenceProviderImpl
Returned null to createEntityManagerFactory.
com.thortech.xl.dataobj.util.tcAdapterTaskException: No Persistence provider for EntityManager named BBBBB: The following providers:
- org.eclipse.persistence.jpa.PersistenceProvider
- kodo.persistence.PersistenceProviderImpl
- org.apache.openjpa.persistence.PersistenceProviderImpl
Returned null to createEntityManagerFactory.
7, 2015 4:50:09 PM CDT> <Error> <XELLERATE.WORKFLOW> <BEA-000000> <ProcessDataFlowChildTableErr
- org.springframework.jndi.JndiLookupFailureException: JndiObjectTargetSource failed to obtain new target object; nested exception is javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.fscontext.RefFSContextFactory [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.fscontext.RefFSContextFactory]
We are unable to find anything relevant about this problem, i know there is more people with this problem.
Anyone find how to turn around this problem?
Thanks,
LAGG