簡體   English   中英

Spring 4.3.4 with weblogic 12.1 導致 org.xml.sax.SAXParseException;必須為元素類型“bean”聲明屬性“singleton”

[英]Spring 4.3.4 with weblogic 12.1 Causing org.xml.sax.SAXParseException;Attribute “singleton” must be declared for element type “bean”

升級到Spring 4.3.4 時,我面臨以下異常

嵌套異常是 org.xml.sax.SAXParseException; 必須在 xmls 之一中為元素類型“bean”聲明屬性“singleton”。

我嘗試了所有類似的方法

 1) Manually gave scope="Singleton" 2) Removed the scope since by default scope is Singleton 3) Gave Singleton="false" 4) Gave scope="prototype" to check..

這是我正在使用的 DTD

我多次清理存儲庫但沒有運氣。我一直遇到同樣的異常。 我正在使用與 spring 相同版本的 weblogic 12.1 和 spring-beans.dtd。 任何幫助,將不勝感激。

TIA。

問候普拉迪普

您是否在 spring 配置 xml 文件中驗證了 XSD? 確保為 Spring 4.3 使用正確的 XML 模式。

你能從配置文件中發布代碼的和平嗎?

暫無
暫無

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

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