第五章EJB釋出的問題
因為我是剛開始學習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
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
相關文章
- 請教ejb釋出問題
- 求救―在wls6.1中釋出ejb碰到的問題
- 求教執行EJB程式時出現的問題
- 在jbuilder中開發ejb出現的問題求救!UI
- EJB QL裡的〈符號問題符號
- weblogic為ejb容器,呼叫ejb模組,出現名稱空間不正確問題Web
- EJB 3dao問題3D
- jboss下applet訪問ejb的問題APP
- weblogic中釋出jive的問題Web
- jboss釋出目錄問題?
- C/S結構下呼叫EJB的問題
- EJB3的異常處理問題
- npm module 釋出 遇到的幾個問題NPM
- 在釋出war包時遇到的問題
- 有關jboss開發EJB的JAR的問題?JAR
- 關於EJB的學習曲線的問題
- 問一個jbuilder中ejb debug問題UI
- 訪問jboss上EJB遠端介面問題
- 使用EJB遠端介面帶來的效能問題
- Qt 5.3.1 版本應用程式的釋出問題QT
- jbuilderx+jboss3 釋出war時的問題UIS3
- 求助,線上等待,編譯EJB問題。。。。。編譯
- web應用跨容器呼叫EJB的異常問題Web
- EJB 在WEB和Clien中t的並存問題Web
- EJB在weblogic下的部署與執行問題Web
- EJB中引入第三方庫的問題?
- JB9+JBoss4.01開發EJB的問題
- [求助]jboss-tomcat下的ejb,webapp問題TomcatWebAPP
- 請教:EJB3的SessionBean主動呼叫問題SessionBean
- websphere ejb壓力測試下,鎖socket的問題Web
- 問一個很低等的問題(如何使用EJB的本地介面),請指教!
- netcore釋出時 swagger xml釋出丟失問題NetCoreSwaggerXML
- EJB事務問題請高手賜教2
- jbuilder9中建立EJB MODULE時問題UI
- jbuilder8中建立EJB MODULE時問題UI
- 請教jboss 多應用釋出問題
- 請教一個關於EJB建立物件時的問題物件
- 小失誤,大問題 —— 為已釋出的介面更名