|
|
Re: Different join types, weaving and spring [message #509208 is a reply to message #508860] |
Thu, 21 January 2010 16:54 |
|
The error seems to indicate that weaving did not occur. What is different about the two cases?
Note that Spring does not preload JPA classes to ensure that any weaving can occur before the class is load as required by JEE. This means that if your application triggers the loading of these classes before accessing the Spring context, they will fail to be weaved.
You can try using static weaving, or disabling weaving, or ensure you access the Spring context before triggering the loading of the classes.
James : Wiki : Book : Blog : Twitter
|
|
|
|
Re: Different join types, weaving and spring [message #509871 is a reply to message #508860] |
Mon, 25 January 2010 16:14 |
|
Well something is obviously different, my guess would be you are trigger the loading of the class before accessing the Spring context in the one that fails to weave. You can either disable weaving, use static weaving, or ensure you access you context before loading your classes.
Hibernate does not do weaving, so will not have the same issue.
James : Wiki : Book : Blog : Twitter
|
|
|
Powered by
FUDForum. Page generated in 0.04733 seconds