I'm using JBoss/Tomcat (3.0.4/4.1.12), and trying to write finder queries into my beans. I'm using the latest xdoclet and ant.
My ejb:finder looks like this:
* query="SELECT OBJECT(t) FROM TargetSchema AS t"
* signature="java.util.Collection findAll()"
Where TargetSchema is defined in the @ejb:bean tag.
Sometimes, it will deploy fine, sometimes not. It seems random, but I get errors like ClassNotFound: SELECT OBJECT(t) FROM ... and so on.
Sometimes the classnotfound is my description tag, if it is present.
Here is my question:
With this version of JBoss, do I need to add any other tags (maybe JBoss specific) to get my finder methods to work?
I'd really like to be able to use this feature instead of delegating finding to my session beans, but I cannot for the life of me get it to work.