第五章EJB釋出的問題

zhangmingjing發表於2004-09-20
因為我是剛開始學習EJB,試了幾天,Session Bean終於透過了,但Entity Bean一直不能透過,提示以下錯誤,請版主幫忙看一下。
15:38:31,498 WARN [verifier] EJB spec violation:

Bean : Customer

Method : public abstract CustomerLocal findByPrimaryKey(String) throws FinderException

Section: 12.2.11

Warning: The return type for a find<METHOD> method must be the entity bean's local interface type (single-object finder) or a collection thereof (for a multi-object finder).



15:38:31,576 ERROR [MainDeployer] could not create deployment: file:/C:/JBoss/server/all/tmp/deploy/server/all/deploy/untitled6.ear/57.untitled6.ear-contents/Untitled1.jar

org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.

at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:487)

at org.jboss.deployment.MainDeployer.create(MainDeployer.java:784)

at org.jboss.deployment.MainDeployer.create(MainDeployer.java:776)

at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:639)

at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)

at sun.reflect.GeneratedMethodAccessor35.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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)

at $Proxy7.deploy(Unknown Source)

at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)

at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:458)

at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:200)

at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:211)

at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:190)

15:38:31,607 ERROR [MainDeployer] could not create deployment: file:/C:/JBoss/server/all/deploy/untitled6.ear

相關文章