Jacek,
Thanks a lot for the tips, this solved the problem for me. The tests are now passing! What a cool server this thing is.
~mark
Jacek Laskowski wrote:
Mark Lybarger wrote:
hey dl, i also followed the directions in the same article. i could get the part 1 stuff working ok, but had errors running part 2 and part 3. here's an example error i recieved in example_02. it's using axion db, and i'm on a linux platform, that shouldn't matter i hope. any ideas on this error?
Testcase: testFirstName(com.nrfx.articles.openejb.EmployeeAccessorsTest): Caused an ERROR
The bean encountered a non-application exception.; nested exception is:
javax.ejb.EJBException: Unable to get the entity's primary key.
It seems very similar to what I saw executing the examples. I guess, Alex (the author) defined the openejb.home variable somehow and it worked fine.
Please try out the examples again, but before performing do the following:
o Add the lines to project.properties of example_02:
openejb.home=${basedir}
o In the same file - project.properties - modify maven.junit.sysproperties line so that it contains openejb.home variable. It ends up as (all on the same line):
maven.junit.sysproperties=openejb.home openejb.nobanner java.naming.factory.initial ##openejb.configuration
o Execute maven db:teardown and start over
Is that what caused the problems? If so, modules/core/src/java/org/openejb/resource/jdbc/JdbcManagedConnectionFactory.java is asking for a fix.
Jacek
