-
1. Re: Embeddable EJB3 (UnitTest) and @PersistentContext(unitNa
bill.burke Feb 15, 2006 4:44 PM (in response to emdlc)How is your classpath set up?
If you have a directory
foo/META-INF/persistence.xml
is "foo" in you classpath? -
2. Re: Embeddable EJB3 (UnitTest) and @PersistentContext(unitNa
emdlc Feb 15, 2006 4:52 PM (in response to emdlc)I placed META-INF/persistence.xml in the classpath. Then I placed persistence.xml directly in the classpath. Neither seemed to affect anything. I keep on getting this:
*** DEPLOYMENTS MISSING DEPENDENCIES: jboss.j2ee:service=EJB3,jar=classes,name=PersonService depends on: persistence.units:unitName=x'{Create:NOT FOUND} persistence.units:unitName=x'{Start:NOT FOUND}
-
3. Re: Embeddable EJB3 (UnitTest) and @PersistentContext(unitNa
bill.burke Feb 15, 2006 4:55 PM (in response to emdlc)please log a jira bug then, thanks
-
4. Re: Embeddable EJB3 (UnitTest) and @PersistentContext(unitNa
lisad Apr 7, 2006 3:47 PM (in response to emdlc)When I try to run a Junit test with the embeddable EJB3, I'm also seeing the error:
FATAL 07-04 16:26:17,671 (PersistenceXmlLoader.java:parsePersistenceUnit:101) -tempdb JTA
As suggested, I created a jar file containing my entity bean and persistence.xml and placed it in my META-INF directory. And made sure I referenced it in my classpath, however, I am still getting the error mentioned above. BTW, it still completes the test successfully and appears to interact with the database just fine. Should the jar file have eliminated the "FATAL" error or does it just get rid of the "missing dependancies" problem? How do I run the unit test, reference the persistence.xml and NOT get the "FATAL" error?
Is this a valid "FATAL" error message or a bogus one? And if it's a valid error, why am I getting it and is there a workaround?
Thanks, LisaD -
5. Re: Embeddable EJB3 (UnitTest) and @PersistentContext(unitNa
bill.burke Apr 7, 2006 5:56 PM (in response to emdlc)it is a bogus logging message.
Next release is next week. JBoss AS 4.0.4CR2 already has the latest EJB3 stuff, but I've been on vacation and haven't created the RC6 bundle yet. -
6. Re: Embeddable EJB3 (UnitTest) and @PersistentContext(unitNa
lisad Apr 10, 2006 8:50 AM (in response to emdlc)That's what I was hoping. :)
Thanks,
LisaD