簡體   English   中英

JSF 2,EL Expression,Weblogic和EJB注入

[英]JSF 2, EL Expression, Weblogic, and EJB injection

好吧,問題是這樣的。 我已經構建了Java EE 5應用程序並在Weblogic 10.3.4中運行。 我必須添加一個EJB客戶端應用程序,該應用程序作為提供的依賴關系包含在我的EE應用程序中。

由於添加了該依賴項,因此出現以下錯誤:

There was a failure in application ServletContext@1850878[app:my_app-ear module:/my_app-web path:/my_app-web spec-version:2.5]
when attempting to inject dependencies into 
com.mycompany.bean.ReportBean. Dependencies will not be injected into 
this class. com.bea.core.repackaged.springframework.beans.factory.BeanCreationException: 
Dependency injection failure: can't find the bean definition about class 
interface com.mycompany.service.ReportFacadeLocal; nested exception is
com.bea.core.repackaged.springframework.beans.factory.NoSuchBeanDefinitionException:
No unique bean of type [com.mycompany.service.ReportFacadeLocal] is 
defined: No beans of type com.mycompany.service.ReportFacadeLocal;
owner=com.bea.core.repackaged.springframework.context.support.GenericApplicationContext
@6b4c9c: display name [com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@6b4c9c];
startup date [Tue Oct 29 23:38:23 CST 2013]; parent:
com.bea.core.repackaged.springframework.context.support.GenericApplicationContext@1107db9 at
com.bea.core.repackaged.springframework.jee.inject.Jsr250Metadata.applyInjections(Jsr250Metadata.java:244) at 
com.bea.core.repackaged.springframework.jee.inject.Jsr250Metadata.inject(Jsr250Metadata.java:226) 

我不知道發生了什么,因為我沒有使用Spring,所以我使用的唯一來自Spring的東西是com.springsource.org.jboss.el依賴項,這個庫是否以任何方式附加到Spring? 還有什么我需要做的嗎?

從現在開始,謝謝。

編輯我需要做的是在每個bean中添加一個名稱來強制jndi查找,僅此而已。

看起來您可能尚未定義com.mycompany.service.ReportFacadeLocal的接口,但已實現了它(或者反過來,取決於名稱)。 接口使用相同名稱(或以其他方式顯式配置)的具體類是否存在?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM