安排Richfaces Demo 碰到 components.xml錯誤

components.xml error 錯誤


<transaction:hibernateTransaction session="#{hibernateSession}" />

報如下錯誤

Multiple annotations found at this line:

- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for

element ""transaction:hibernateTransaction"".

- schema_reference.4: Failed to read schema document ""http://jboss.com/products/seam/

transaction-2.1.0.xsd"", because 1) could not find the document; 2) the document could not be read; 3)

the root element of the document is not <xsd:schema>.

究其原因是

找不到http://jboss.com/products/seam/transaction-2.1.0.xsd

於是改成

http://jboss.com/products/seam/transaction-2.1.xsd

持續報錯

cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element

""transaction:hibernateTransaction"".

於是改成

<transaction:hibernate-transaction session="#{hibernateSession}" />



錯誤不再顯示

發佈了9 篇原創文章 · 獲贊 4 · 訪問量 3萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章