Toplink 11g + OC4J 10.1.3 + Spring
Hi all,
As Spring 3.0 will not support native Toplink 11g API (but Spring 2.5.x supports Toplink 10g due to API change, e.g. no toplink/publicinterface/unitOfWork), I would like to ask if I need to migrate my project from Toplink 10g to 11g, what configuration/code change should I need to apply?
I've installed Toplink 11g in <OC4J_HOME>/toplink folder and checked that OC4J has pointed the 11g JAR file correctly, which can be checked during OC4J startup (p.s. I am using standalone OC4J 10.1.3.1). Actually, I just replace the Toplink 10g JAR files (i.e. toplink-oc4j.jar, toplink.jar and its dependent JAR antlr.jar) with Toplink 11g ones (i.e. toplink-oc4j.jar, toplink.jar and its dependent JAR com.bea.core.antlr.runtime_2.7.7.jar) @ same location.
When the OC4J is starting, the following error message is shown:
Application.setConfig Application: javasso is in failed state as initialization failed.
java.lang.VerifyError: (class: oracle/ias/container/persistence/NonTransactionalInternalPM, method: getDatabaseTimeStamp signature: ()Ljava/sql/Timestamp;) Incompatible argument to function
2009-02-09 15:16:37.982 WARNING J2EE OJR-00013 Exception initializing deployed application: javasso. Application: javasso is in failed state as initialization failed
Also, when I am performing query in the application, the following error message is shown:
Caused by: java.lang.NoSuchMethodError: oracle.toplink.sessions.Session.acquireUnitOfWork()Loracle/toplink/publicinterface/UnitOfWork;
at org.springframework.orm.toplink.AbstractSessionFactory$ManagedClientInvocationHandler.<init>(AbstractSessionFactory.java:127)
at org.springframework.orm.toplink.AbstractSessionFactory.createManagedClientSession(AbstractSessionFactory.java:63)
at org.springframework.orm.toplink.TopLinkTransactionManager.doBegin(TopLinkTransactionManager.java:263)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction
It is obviously caused by the compatibly problem between Spring 2.5.x and Toplink 11g.
If I need to use the Oracle TopLink JPA extensions combined with the EclipseLink JPA support, what are the steps? I've searched for a week, and still cannot find the solution yet....
You response is much appreciated. Thanks a lot.
Edited by: user10897455 on 2009年4月9日 上午2:37