創建Bean eqSaml11TicketValidator
時出現以下異常。 我正在使用IBM Websphere 8.5.5。 上下文初始化失敗:
org.springframework.beans.factory.BeanCreationException:在類路徑資源[META-INF/eQSecurityClient.xml]中定義的名稱爲'eqSaml11TicketValidator'的bean創建時出錯:bean的實例化失敗;嵌套異常是java.lang.ExceptionInInitializerErrorWebsphere上的Bean創建問題
-1
A
回答
0
您嘗試創建的類不能由JVM實例化。該錯誤消息的ExceptionInInitializerError可以有幾個原因
至少一個類或實例初始化失敗,異常失敗類的構造,例如
public class Test {
private static int num = 1/(1-1); // Throws Exception
private Object object = new SomeObject(); // if new SomeObject() throws exception
另一個原因可能是因爲你缺少的一類在classpath中,這個類或這個類包括父類中使用的任何類要求。
如果在你的代碼中發生異常,你可以嘗試在try/catch塊中包裝對象的創建,並打印包含它的原因的cought異常。原因很可能會顯示失敗的真正原因。
相關問題
- 1. Websphere 7 EntityManagerFactory創建問題
- 2. Hybris和Spring Bean創建異常問題
- 3. Spring應用程序上下文問題 - 數據源Bean創建
- 4. WebSphere問題
- 5. 解決WebSphere Commerce創建實例中的批量加載問題
- 6. 如何在websphere portal 7上創建基於主題的樣式
- 7. Websphere面試問題
- 8. WebSphere web.xml/bindings問題
- 9. 與websphere問題cxf
- 10. Websphere連接問題
- 11. Websphere j_security_check struts2問題
- 12. 創建FileInputStream的bean
- 13. 在Websphere上創建虛擬主機
- 14. 的Websphere 6 webservice的問題
- 15. 創建spring bean
- 16. 問題Managed Bean的
- 17. 何時在Websphere Commerce中使用訪問bean或數據bean?
- 18. Websphere 8.0.0.4中的JSF1.2問題
- 19. 的WebSphere 6.1 - com.sun.xml.ws.spi.ProviderImpl問題
- 20. JSP的Websphere問題頁面
- 21. 傻的WebSphere MQ問題
- 22. 創建圖片上傳的Android問題
- 23. 在tpanel上創建tpaintbox的問題
- 24. 問題上創建ActiveRecord的模型
- 25. 創建名爲'Test_flow'的bean時出錯:無法創建內部bean'(內部bean)
- 26. Spring autowired bean創建
- 27. 創建bean例外
- 28. 自動Bean創建
- 29. 創建REST Api bean
- 30. Bean創建失敗