facebook

error in faces-config

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #278946 Reply

    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&#8221;
    xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221;
    xsi:schemaLocation=”http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd&#8221;
    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>

    #278965 Reply

    Loyal Water
    Member

    Are there any erros recorded under <workspace>/.metadata/.log file ?

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: error in faces-config

You must be logged in to post in the forum log in