[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.rt.eclipselink] Re: Equinox weaving configuration - Clasloading issue

Hi Shaun,

> Can you try to get weaving working with the example?  Your application
> is using a number of other technologies that might be the issue.  What
> I've described should work in a "pure" OSGi Equinox app. 

I tried, unfortunately I wasn't able to make it work, I set up the
example project from the article in the wiki you wrote, and everything
works except that the Person class does not implement the marker
interface. I slightly changed the example project by putting the Person
entity in a seperate bundle to see if I can reproduce my classloading
issue that way (as entities reside in an extra bundle in my application,
too), but thats all (the classloading error does not occur in the sample
btw).

I attached the to plugin projects to this post, maybe you can have a
look at it. I don't get what I'm missing. i followed the tutorial [1]
exactly, added the two fragments to the launch config and added the VM
arg -Dosgi.framework.extensions=org.eclipse.persistence.jpa.equinox.weaving

but I still get a "Person NOT Woven!" message.

> I'm not sure
> what effect introducing Spring has.  I don't think you are using Spring
> to create and inject your EntityManager so how it may be a red herring. 
> I suggest getting the wiki example working, then a small example with
> your domain model, then your full app.
> 

With that classloading problem, I meanwhile ruled out spring as a cause
(I'm using the Spring HTTPInvoker for remoting only) ,
the classloading problem still occurs when I deploy the two fragments.
As everything works without deploying the fragments, I really don't get
what could cause the problem. I've given up. I think the best solution
for that is just to eleminate all entity-mappings from my datamodel so
that I am not depending on lazy loading anymore. I think with a little
effort I can use queries to get the related objects.

Thanks for helping and reading all my posts, I'm sorry it didn't work
out for me.


 [1]
 http://wiki.eclipse.org/EclipseLink/Examples/OSGi/Developing_with_EclipseLink_OSGi_in_PDE



Attachment: hello.jpa.zip
Description: Binary data

Attachment: hello.jpa.entities.zip
Description: Binary data