Hi All,

I've been trying out JBoss 3.2.0 Beta3 on my holidays, and just trying 
to get an application ported to it. The majority of things have gone 
excellently. I figured out the new Datasource .XML files and got a 
MySQL datasource configured. Then I ran into something that took me a 
while to get solved. I was getting the following deployment errors:

01:06:08,540 WARN  [verifier] EJB spec violation:
Bean   : Episode
Method : public abstract Collection findByTitle(String) throws 
RemoteException, FinderException
Section: 10.5.6
Warning: Every finder method except findByPrimaryKey(key) must be 
associated with a query element in the deployment descriptor.

01:06:08,748 ERROR [MainDeployer] could not create deployment: 
file:/home/neal/java/jboss-3.2.0beta3/server/default/tmp/deploy/server/default/deploy/tvtracker.ear/31.tvtracker.ear-contents/tvtracker-ejb.jar
org.jboss.deployment.DeploymentException: Verification of Enterprise 
Beans failed, see above for error messages.
        at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:428)
        at 
org.jboss.deployment.MainDeployer.create(MainDeployer.java:776)
        at 
org.jboss.deployment.MainDeployer.create(MainDeployer.java:768)
        at 
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:635)
        at 
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:600)
        at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown 
Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
        at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
        at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
        at $Proxy7.deploy(Unknown Source)


And after quite some time, I realized all I had done is that I forgot 
to fully specify the java.lang.String datatype for the finder 
signature. As soon as that was done, the deployment went fine. But 
from the error messages it wasn't obvious what I had done. I did have 
an EJB-QL query specified, and it was done correctly. Just the 
signature class wasn't correct.

I'd be happy to report this as a bug in the bug system, but thought 
I'd post it as well to save anyone from spending needless effort 
tracking one of these down.

Cheers.

-Neal


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to