Error on line -1 of document : Premature end of file. Nested exception: Premature end of file.

前端之家收集整理的这篇文章主要介绍了Error on line -1 of document : Premature end of file. Nested exception: Premature end of file.前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

如果用jboss部署seam文件出现:Error on line -1 of document : Premature end of file. Nested exception: Premature end of file.错误

每个.xhtml对应一个.page.xml文件,如果某个.page.xml文件出错就会出现Error on line -1 of document : Premature end of file. Nested exception: Premature end of file.错误

解决方案:

每个.page.xml文件至少包含以下内容

<?xml version="1.0" encoding="UTF-8"?>
<page xmlns="http://jboss.com/products/seam/pages"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.0.xsd">
</page>

如果有需要可在<page> …… </page>里面添加所需代码

原文链接:https://www.f2er.com/xml/298999.html

猜你在找的XML相关文章