users@glassfish.java.net

Re: spring component-scan problem in packed osgi WAB

From: Sahoo <sanjeeb.sahoo_at_oracle.com>
Date: Tue, 14 Feb 2012 17:18:55 +0530

I have come across that problem wrt eclipselink. I think it required
some change in eclipselink. Not sure what to do with Hibernate. They are
not very keen on making OSGi users' life easier is what I have
understood lately.

Sahoo

On Tuesday 14 February 2012 03:37 PM, forums_at_java.net wrote:
> thanks Sahoo. I found an ugly workaround for this problem in felix,
> but could
> not make hibernate work with spring iside a bundle due to a similar
> problem.
>
> I opened hibernate logs to debug, and saw that hibernate does not find
> persistence.xml (its looking for URL
> [bundle://273.1:1/META-INF/persistence.xml] ).
>
> In our another bundle that uses EJB + hibernate (and does not use
> Spring),
> hibernate is looking for persistence.xml in the correct place: "inside PU
> root URL:
> file:/C:/Windows/TEMP/osgiapp5894204832566870147/WEB-INF/lib/dal-1.00.jar"
>
>
> Are you familiar with this problem?
>
> thank you.
>
>
>
>
>
>
>
>
>
>
> --
>
> [Message sent by forum member 'okna2000']
>
> View Post: http://forums.java.net/node/883365
>
>