Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] M9 osgi problems

No problem, I guess I should search bugzilla before I open a bug :)

On Wed, Jun 25, 2008 at 10:24 AM, Shaun Smith <shaun.smith@xxxxxxxxxx> wrote:
> Tim, I see you filed and then closed the bug I suggested.  I guess I should
> earn a lesson here and search bugzilla before I recommend opening a new bug.
> ;-)
>
>     Shaun
>
> Tom Ware wrote:
>
> There's already a source bundle bug:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=236700
>
> -Tom
>
> Shaun Smith wrote:
>
> Hi Tim,
>
>     The build process just doesn't include sources.  Can you file a bug for
> this?  But we probably don't actually want the sources with the classes.
> Other projects don't seem to bundle sources and classes.  They put them in a
> companion bundle.  For example there's "org.eclipse.core.commands" and
> "org.eclipse.core.commands.source".  I'm not sure this helps with debugging
> or not.  Let's get the bug filed for EclipseLink to provide source bundles
> and then perhaps figure out exactly how to make it work.
>
>     In the meantime, I think you should be able to point to the
> eclipselink-src.zip that ships in the non-bundle download for debugging
> purposes.
>
>         Shaun
>
> Tim Hollosy wrote:
>
> Heh :)
>
> Any word on why the source/javadocs aren't in the jars?
>
> Thanks
>
> On Wed, Jun 25, 2008 at 8:59 AM, Tom Ware <tom.ware@xxxxxxxxxx> wrote:
>
>
> Hi Tim,
>
>  In M10, a no-args constructor for PersistenceProvider will be available.
>
> -Tom
>
> Tim Hollosy wrote:
>
>
> Thanks Tom, that worked, though you still need the String constructor
> for PersistenceProvider since there is no default constructor anymore,
> I passed in my initializer's classname and that worked.
>
> Thanks again,
> Tim
>
> On Wed, Jun 25, 2008 at 8:45 AM, Tom Ware <tom.ware@xxxxxxxxxx> wrote:
>
>
> Hi Tim,
>
>  Try using the createEntityManagerFactoryMethod(String, Map) method.
> Something like:
>
> HashMap properties = new HashMap();
> properties.put(PersistenceUnitProperties.CLASSLOADER, <classlaoder>);
> emf = new PersistenceProvider().createEntityManagerFactory(PU_NAME,
> properties);
>
>  Starting with M10, the 3 arg createEMF method will no longer be public.
>
> -Tom
>
>
>
> Tim Hollosy wrote:
>
>
> I upgraded to 3.4 (yay!) and M9 today, and am having problems with the
> PersistenceProvider changes, the constructor now takes a String
> "initializerClassName",
>
> I'm creating my EMF like this (This is in a seperate bundle from my
> persistence unit):
> EntityManagerFactory emf = new
>
>
> PersistenceProvider(initializerClassName).createEntityManagerFactory(persitanceUnit,properties,yourClassLoader);
>
>
> However when it starts I get this exception:
>
> Exception Description: An attempt has been made to use PersistenceUnit
> [com.redacted.plugin.dataeng.ipdata.persist], but no bundle is
> available that defines that persistence unit.
>
> I've tried passing Activator.getClass().getName(), plugin_id of the
> bundle, and the pu name as initialilzerClassName and I get the same
> error.
>
> Any ideas? Like I said this method worked great up until M9.
>
> As an aside, is there a reason the M9 incubation jar's don't have any
> source or javadoc in them anymore? Makes it tricky to debug :)
>
> Thanks,
> Tim
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/eclipselink-users
>
>
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/eclipselink-users
>
>
>
>
>
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/eclipselink-users
>
>
>
>
>
>
> --
>
>
> Oracle <http://www.oracle.com>
> Shaun Smith | Principal Product Manager, TopLink | +1.905.502.3094
> Oracle Fusion Middleware
> 110 Matheson Boulevard West, Suite 100
> Mississauga, Ontario, Canada L5R 3P4
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/eclipselink-users
>
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/eclipselink-users
>
> --
>
>
>
> Shaun Smith | Principal Product Manager, TopLink | +1.905.502.3094
> Oracle Fusion Middleware
> 110 Matheson Boulevard West, Suite 100
> Mississauga, Ontario, Canada L5R 3P4
>
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/eclipselink-users
>
>



-- 
./tch


Back to the top