第五章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
相關文章
- netcore釋出時 swagger xml釋出丟失問題NetCoreSwaggerXML
- ejb
- ① EJB無狀態的bean(建立EJB的基礎教程)Bean
- npm module 釋出 遇到的幾個問題NPM
- 小失誤,大問題 —— 為已釋出的介面更名
- EJB簡單理解
- K8s 有損釋出問題探究K8S
- unity 3D音 釋出PICO後出現問題的解決方法Unity3D
- 深度解密|基於 eBPF 的 Kubernetes 問題排查全景圖釋出解密eBPF
- 27、EJB與JAVA BEAN的區別?JavaBean
- gulimall出現的問題
- 微軟釋出釋出Windows 10補丁KB4516421 修復麥克風Bug問題微軟Windows
- 第五章 字串專題 ---------------- 5.9 題解:去掉字串中連線出現的k次的0字串
- Vuejs 使用 lib 庫模式打包 umd 解決 NPM 包釋出的問題VueJS模式NPM
- FreshTomato 2021.5釋出,終於解決了萬能中繼的問題中繼
- 第五章 字串專題 ---------------- 5.3 走出思維誤區:變形詞問題字串
- 第五章練習題
- 使用finalshell出現的問題
- 用筆記來記錄遇到的問題:釋出版本和非釋出版本遇到的問題筆記
- flutter packages 開發實戰——釋出失敗問題解決FlutterPackage
- 解決微信小程式登入與釋出的一些問題微信小程式
- 兩個小問題深入淺出List的效能問題
- 出門問問釋出AI兒童手錶TicWatch KidsAI
- 兩個考研政治很多人問題但是解釋通的問題
- 一勞永逸,解決.NET釋出雲伺服器的時區問題伺服器
- Laravel 專案一次釋出導致的 BUG(環境變數問題)Laravel變數
- Spring+xfire和Spring+CXF在Weblogic上釋出服務遇到的問題SpringWeb
- 第五章練習題2
- 第五章練習題3
- 第五章練習題5
- SpringBoot 解決打包釋出後讀取不到 json 檔案問題Spring BootJSON
- 微軟釋出Windows 10 20H2更新已知問題列表微軟Windows
- Sap 釋出本月安全補丁,解決十年漏洞問題
- 第五章 字串專題 ---------------- 5.11 題解:最短摘要的生成字串
- mysql 安裝出現的問題MySql
- Java操作hdfs出現的問題Java
- npm install 時出現的問題NPM
- nginx 編譯出現的問題Nginx編譯
- 第五章 實現你的第一個學習代理-解決山地車的問題