第五章EJB发布的问题

04-09-20 zhangmingjing
因为我是刚开始学习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

zhangmingjing
2004-09-20 16:01
还有Struts写的Jsp,不能转到相应的Action处理,Web浏览器Url出现这个信息:http://localhost:8080/subweb/customerAction.do;jsessionid=D842153C995893773BCD0413990BA3E8,但没有页面显示,在相应的Action中设置断点也不起作用。

zhangmingjing
2004-09-20 16:41
第一个问题已经解决了。

banq
2004-09-21 08:33
Struts问题注意Struts 1.0 和Struts1.1的execute方法不一样。

zhangmingjing
2004-09-21 09:37
谢谢!把execute该成perform便可以了,但我看到subweb中的Struts显示的是1.1,为何会调用perform呢?如何更改可以执行execute?

猜你喜欢
2Go 1 2 下一页