-
1. Re: [Booking Demo - Unit Test] The persistence manager doesn
littlewing1112 Dec 6, 2006 1:06 PM (in response to littlewing1112)I believe find the problem.
I have splitted both the EJB and the testcases in the directories src/main/java and src/test/java.
When I put all the files in the same root directory(eg. src/test/java) everything works fine....
How may I workaround ? -
2. Re: [Booking Demo - Unit Test] The persistence manager doesn
littlewing1112 Dec 6, 2006 1:18 PM (in response to littlewing1112)Well
the only workaround I have founded is to put all the build files in ONE director (eg. target/classes) and not target/classes for EJB and target/test-classes for test configurations (embedded-ejb,.class, configurations)
finally I have 2 questions:
Why BookingTest works and notBookingUnitTest ?
Is there a way to say to the PersistenceManager to look at in another directory (eg. target/classes)?
Thanks in advance
Regards,
Alexandre -
3. Re: [Booking Demo - Unit Test] The persistence manager doesn
farrukh_najmi Oct 5, 2007 3:39 PM (in response to littlewing1112)
I found that in my case my code was working fine with following versions of hibernate:
org.hibernate
hibernate
3.2.4.ga
org.hibernate
hibernate-entitymanager
3.3.1.ga
When I added acegi:
org.acegisecurity
acegi-security
1.0.5
I started seeing the problem. Apparenetly acegi uses an older version of hibernate which has this problem.
The workaround was to use a fully qualified class name in the query (thanks to Aleksei Valikov for suggesting that).
Note that the bugon this issue:
http://jira.jboss.com/jira/browse/JBSEAM-570?page=worklog&decorator=printable
was closed with no comment which does not help folks running into the problem. Thanks.