Results 1 to 1 of 1
  1. #1
    wiston is offline Member
    Join Date
    Jan 2016
    Rep Power

    Default Cannot display index.xhtml with TomCat and JSF + Primefaces

    Hi, i would like to ask, how it is possible, that i cannot open index.xhtml with use of Tomcat? I am trying creat some of the primefaces components. I created Java Dynamic Web Project and add libraries - jsf-api, jsf-impl and primefaces .JAR.

    Here is my index.xhtml file:
    Java Code:
     <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
    <html xmlns=""
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Insert title here</title>
    <p:button outcome="productDetail" value="Bookmark" icon="ui-icon-star">
        <f:param name="productId" value="10" />
    And here is my web.xml file:
    Java Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="" xmlns="" xsi:schemaLocation="" id="WebApp_ID" version="3.1">
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-name>Faces Servlet</servlet-name>

    And JPG of project structure.

    When i write some simple code into file index.html, Tomcat just display it. But if I rename the index.html to index.xhtml and add some primefaces components, I get only 404Error.

    Can you please help me? Thanks a lot!
    Attached Thumbnails Attached Thumbnails Cannot display index.xhtml with TomCat and JSF + Primefaces-structure.jpg  

Similar Threads

  1. JSF - PrimeFaces, why both? Is one enough? If not why?
    By bineeth in forum JavaServer Faces (JSF)
    Replies: 1
    Last Post: 09-16-2013, 10:59 PM
  2. JSF Designer and PrimeFaces License
    By rome2 in forum JavaServer Faces (JSF)
    Replies: 1
    Last Post: 08-22-2013, 12:28 PM
  3. Replies: 7
    Last Post: 07-29-2013, 03:27 PM
  4. Replies: 0
    Last Post: 07-06-2012, 02:22 PM
  5. Replies: 5
    Last Post: 07-22-2010, 12:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts