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!

OIM: JPA not working on Java Tasks

Luis A. GarciaApr 9 2015 — edited Jul 30 2015

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>

  1. 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
  1. 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
  1. 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

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 27 2015
Added on Apr 9 2015
4 comments
1,190 views