« Return to Thread: Internal Exception: java.lang.ClassCastException: org.eclipse.persistence.platform.database.DatabasePlatform incompatible with org.eclipse.persistence.internal.databaseaccess.DatasourcePlatform

Re: Internal Exception: java.lang.ClassCastException: org.eclipse.persistence.platform.database.DatabasePlatform incompatible with org.eclipse.persistence.internal.databaseaccess.DatasourcePlatform

by James Sutherland :: Rate this Message:

Reply to Author | View in Thread

Make sure you remove the platform from the sessions.xml.

Your customizer is correct.


dmitryerkin wrote:
Hi
I followed the tip which I got but it still does not work.
I get the same error in both cases when I deploy the eclipselink.jar with an ear or as a shared library.
I implemented the SessionCustomizer interface but my implementation is not invoked while the ear is starting.

 « Return to Thread: Internal Exception: java.lang.ClassCastException: org.eclipse.persistence.platform.database.DatabasePlatform incompatible with org.eclipse.persistence.internal.databaseaccess.DatasourcePlatform