Well stink! I just tried to recreate my problem by redoing the project and everything worked just fine!
Sorry to bother you with this. - Joel > -----Original Message----- > From: Clement Escoffier [mailto:[email protected]] > Sent: Tuesday, October 27, 2009 5:01 AM > To: [email protected] > Subject: Re: iPojo & EclipseLink > > Hi, > > I quickly implements an example the EclipseLink example (OSGi in PDE), > that I migrate on Felix with iPOJO. I didn't get any issue: > - I first tried by using only on bundles (containing the > persistence.xml file and the component using it and the Person class) > - Then, I created two bundles. The first one contains the persistence > file, the PErson class (exported) and declare the JPA-PersistenceUnits > header. The second bundle just creates Bob in the @Validate method. > > I didn't add the TCCL switch, it has worked quite smoothly... > > Can you post the stack trace or error ? > > Regards, > > Clement > > On 26.10.2009, at 23:20, Joel Schuster wrote: > > > I've been able to get EclipseLink to work against and embedded Derby > > instance within Felix working from the Equinox examples. > > > > However, this is only when using the standard OSGi BundleActivator > > implementation, not when using iPojo. > > > > As all the rest of my system is iPojo based I'd like to do the same > > for my data layer. However, because the EntityManagerFactory > > creation in my @Validate is being called by the iPojo factory the > > persistence.xml file isn't found. There's seems to be a requirement > > that needs the EntityManagerFactory be called within the same class > > loader that the persistence.xml file is available. > > > > Thoughts on how to reconcile this issue? > > > > ________________________________ > > > > Joel Schuster > > Senior Software Engineer > > NAVSYS Corporation > > 14960 Woodcarver Road, Colorado Springs, CO 80921 > > 719-481-4877 > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

