首页 > 其他 > 详细

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

时间:2014-03-21 01:02:26      阅读:1359      评论:0      收藏:0      [点我收藏+]

如果用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>里面添加所需代码


Error on line -1 of document : Premature end of file. Nested exception: Premature end of file.,布布扣,bubuko.com

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

原文:http://blog.csdn.net/liu_chunhui/article/details/21651227

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!