I'm trying to create WebService which usus TopLink grid for data access. First I've created simple standalone application with TopLink Grid and all work fine. Then I've created WebService based on previously created app.
When I try execute WebService deployed to WebLogic I got error:
class="oracle.eclipselink.coherence.integrated.config.GridCacheCustomizer" file="GridCacheCustomizer.java" line="30" method="customize"
It fails in entityManagerFactory.createEntityManager() method.
If customizer declaration removed from eclipse-link.xml configuration file then webservice works. Maybe for server application needed some additional configuration or initialization?
What is the version you are deploying to? The method not found was added in a later release, so it is likely there is a version mismatch where the Weblogic instance this is running on and the version you have configured when running standalone. I believe you will probalby need to use a version of Weblogic such as 12.1.1 which ships with TopLink that includes EclipseLink 2.3.2 to get this to work, or use a different EclipseLink version that what ships with the Weblogic instance you are using. Tom describes this here:
Chris is correct, this is version mismatch between TopLink-Grid and the TopLink version shipped in your WLS. How are you packaging the TopLink-Grid jar? Details on how to deploy TLG on WLS can be found here : http://docs.oracle.com/cd/E23549_01/web.1111/e16517/package_wls.htm If you are packaging the tlg jar within the application container ensure you are using the same version shipped with your version of WLS. Otherwise when updating your WLS install ensure you are using the eclipselink.jar and the TopLink-Grid.jar from the same TopLink version.