I have developed an application for jsf following ICEFaces tutorial on this site. When i deploy it to tomcat 6, i found following error: |”Document root element “faces-config”, must match DOCTYPE root “null”.
faces-config.xml is given below as a reference
<?xml version=’1.0′ encoding=’UTF-8′?>
<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>
<managed-bean>
<managed-bean-name>SessionBean</managed-bean-name>
<managed-bean-class>
com.vahzay.ui.SessionBean
</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>customerDAO</property-name>
<property-class>com.vahzay.CustomerDAO</property-class>
<value>new CustomerDAO()</value>
</managed-property>
</managed-bean>
</faces-config>