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.
java.rmi.RemoteException: The bean encountered a non-application exception.; nested exception is:
javax.ejb.EJBException: Unable to get the entity's primary key.
at org.openejb.core.transaction.TransactionPolicy.throwExceptionToServer(TransactionPolicy.java:253)
at org.openejb.core.transaction.TxNotSupported.handleSystemException(TxNotSupported.java:180)
at org.openejb.core.entity.EntityContainer.invoke(EntityContainer.java:334)
at org.openejb.core.entity.EntityContainer.findMethod(EntityContainer.java:538)
at org.openejb.core.entity.EntityContainer.invoke(EntityContainer.java:252)
at org.openejb.core.entity.EntityEjbHomeHandler.findX(EntityEjbHomeHandler.java:110)
at org.openejb.core.ivm.EjbHomeProxyHandler._invoke(EjbHomeProxyHandler.java:142)
at org.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:291)
at org.openejb.util.proxy.Jdk13InvocationHandler.invoke(Jdk13InvocationHandler.java:87)
at $Proxy0.findByPrimaryKey(Unknown Source)
at com.nrfx.articles.openejb.EmployeeAccessorsTest.setUp(EmployeeAccessorsTest.java:30)
Caused by: javax.ejb.EJBException: Unable to get the entity's primary key.
at com.nrfx.articles.openejb.EmployeeBean.findSingle(EmployeeBean.java:287)
at com.nrfx.articles.openejb.EmployeeBean.ejbFindByPrimaryKey(EmployeeBean.java:190)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at org.openejb.core.entity.EntityContainer.invoke(EntityContainer.java:327)
... 17 more
DL wrote:
On 10 Aug 2004 at 22:23, Jacek Laskowski jlaskowski-at-codehaus.or wrote:
Basically, it boils down to installing Apache Maven and running it within the directory where the OpenEJB sources are. Having done that, target/openejb-1.0-SNAPSHOT becomes the current home dir of OpenEJB.
You won't believe this .. but ..
(a) last time I read your page (http://www.openejb.org/cvs.html) I could see no reference to "building code" ... or I had not noticed it. I have only now read it.
(b) quite separately, in my random walk today, I had managed to install Ant, Maven, and Geronimo .. after much googling ..
(c) I found this article ....
Container Driven Testing Part 1: Testing Inside The Container
http://www.theserverside.com/articles/article.tss?l=ContainerDrivenTestingSeries
.. and succeeded in following the instructions using Maven.
Geronimo works.
____________________________________________
I/m now (at last) trying to build openorg CVS ... using Maven .. but I'm getting lots of errors ..
Starting the reactor ..
our processing order OpenEJB:: Core OpenEJB:: Assembly OpenEJB:: Connector OpenEJB:: WebAdmin
etc. etc.
[javac] Compiling 487 source files ..
____________________________________________
how can the Maven console report be directed to an error log file to post here??
____________________________________________
My interest in jikes was just to gain more error reporting .. although it is claimed to be faster than JAVAC in Tomcat.
but I'm struggling in trying to direct the compile errors to a log.txt report.
You can substitute jikes very simply .. backup the original javac.exe in %JAVA_HOME%\bin\ and replace with jikes.exe in that same directory (renamed to javac.exe).
Another way I'm trying is to substitute javac.exe with a batch file .. (converted to .com using bat2exe).
____________________________________________
Links followed today :-
OpenEJB and Geronimo http://www.openejb.org/geronimo.html
Ant http://ant.apache.org/ Geronimo http://cvs.apache.org/dist/incubator/geronimo/ Maven http://apache.mirrors.redwire.net/maven/binaries/maven-1.0-rc2.zip
Incubator http://forrestbot.cocoondev.org/sites/incubator-site/projects/geronimo.html
