This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Problem with JPA-Toplink-Weblogic 10

Jul 19th, 2007, 08:14 PM

I have a standalone Spring-JPA utility jar that uses the Toplink provider and works fine standalone and within Tomcat. When I attempt to use this jar within a Weblogic 10 war (within an ear), I see random behaviour. Specifically, on load of the application, sometimes I see the Toplink detailed logging messages indicating the loading of it from within Spring - in that case, all works as expected. Sometimes however, I don't see these messages. In those cases, I get errors attempting to use the classes - specific to OpenJPA and missing properties (as if weblogic has somehow beaten Spring to the punch in creating the entityManger/provider??).

It seems like it might be some type of race condition, as this load behaviour is random (loads/works 2 times, doesn't 3 times, does again once, etc.).

Please help. I think I'm just not understanding the interaction of the container (which I don't even want, just happen to be stuck deploying here) and my independent JPA code.