私はICEFACESの初心者で、いくつかのICEFACESコンポーネントを使用して最初のICEFACES画面を正常に実行しようとしています。はじめに。私はICEFACES 1.8.2を使用しています。
このリンクから web.xml のコンテンツをコピーしました。
http://res.icesoft.org/docs/v1_8_2/htmlguide/gettingstarted/SessionRendererTutorial11.html#1054095
以下は、faces-config.xml ファイルです。
<faces-config
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
version="1.2">
<application>
<view-handler>
com.icesoft.faces.facelets.D2DFaceletViewHandler
</view-handler>
</application>
</faces-config>
以下は、Test.jsp画面の内容です。
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ taglib prefix="ice" uri="http://www.icesoft.com/icefaces/component"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<f:view>
<ice:outputText id="txtHello" value="Hello ICEFaces"></ice:outputText> <br>
<ice:panelGroup title="Hello"></ice:panelGroup>
</f:view>
</body>
</html>
以下の URL を使用してアプリを実行すると、次のようになります。
http://localhost:8046/TestMojarra/faces/Test.jsp
例外が発生しています:
javax.servlet.ServletException: ICEfaces requires the PersistentFacesServlet. Please check your web.xml servlet mappings
javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
java.lang.IllegalStateException: ICEfaces requires the PersistentFacesServlet. Please check your web.xml servlet mappings
com.icesoft.faces.context.DOMResponseWriter.<init>(DOMResponseWriter.java:154)
com.icesoft.faces.context.DOMContext.createTemporaryDOMResponseWriter(DOMContext.java:182)
com.icesoft.faces.context.DOMContext.getDOMContext(DOMContext.java:228)
com.icesoft.faces.renderkit.dom_html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:89)
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:840)
javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:266)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:197)
com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:151)
com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:151)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
しかし、上記のjspファイルの行をコメントアウトする<ice:panelGroup>
と、画面が表示されます。
どこが問題なのか教えてください。