Ok I've found one of the problems, it was in the DOCTYPE definition in ejb-jar.xml, I left an EJB 1.1 definition instead of 2.0.
But for now I'm running into a new problem .... :
[java] javax.ejb.FinderException: Unknown query: public abstract java.util.Collection test1.interfaces.StockOpHome.findTest() throws javax.ejb.FinderException,java.rmi.RemoteException
The StockOpHome.java has:
public Collection findTest() throws FinderException, RemoteException;
The ejb-jar.xml has:
<![CDATA[SELECT OBJECT(a) FROM StockOp AS a WHERE a.ref IS NOT NULL]]>
That is weird. You are calling a finder and the persistence manager can not find the query specification. Try a clean build of your application.
If that doesn't work, increase the log level of the org.jboss.ejb.plugins.cmp to DEBUG in the log4j.xml file. Then run your application and search the server log for anything related to findTest.
It's ok it works !
In the xml file ejb-jar, I misplaced an tag and the query were out the entity ...