我正在尝试在其他计算机上的Apache Tomcat上运行我的Eclipse JSF项目.我用本教程创建了一个WAR文件.但是,当我部署WAR并在Firefox中打开Facelet页面时,我只收到以下错误消息:
此XML文件似乎没有与之关联的任何样式信息.文档树如下所示.
这是我第一次尝试在没有Eclipse的情况下运行我的JSF应用程序.这是怎么造成的,我该如何解决?
我实际上是在尝试打开以下Facelet页面:
<?xml version="1.0" encoding="UTF-8"?>
<ui:composition template="/WEB-INF/templates/template_a.xhtml"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:define name="title">
tytol
</ui:define>
</ui:composition>
Run Code Online (Sandbox Code Playgroud)