Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7924879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T17:59:52+00:00 2026-06-03T17:59:52+00:00

I have just deployed my first JSF site using eatj.com. I have tested my

  • 0

I have just deployed my first JSF site using eatj.com.

I have tested my application on netbeans using glassfish and the site with JSF tags runs fine on localhost.

I have uploaded the project file by ftp to the webapps director folder on the tomcat server.

The jsp-api.jar file is present in the /lib file on the Tomcat server.

When i restart the server and go to /webapps/myproject/web/index.xhtml the page loads but non of the jsf tags are visible.

I have tried to copy the jar libraries to /webapps/myproject/web/WEB-INF/lib/ however there is no change.

Perhaps it is something to do with the fact my home page is .xhtml not .jsf? But I would have thought if it worked on my localhost then it work work on this server?

I am sure that the server supports JSF as there are examples of JSF pages running.

Any help would be greatly appreciated.

Thanks

edit:

Below is my current web.xml file

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" 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-app_2_5.xsd">

<context-param>
    <param-name>javax.faces.PROJECT_STAGE</param-name>
    <param-value>Development</param-value>
</context-param>
<servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.xhtml</url-pattern>
</servlet-mapping>
<session-config>
    <session-timeout>
        30
    </session-timeout>
</session-config>
<welcome-file-list>
    <welcome-file>faces/index.xhtml</welcome-file>
</welcome-file-list>

Edit:

Below is a paste from my catalina.out file for server startup:

INFO: Server startup in 1594 ms
May 7, 2012 1:09:50 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-6713
May 7, 2012 1:09:51 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
May 7, 2012 1:09:51 PM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-6713
May 7, 2012 1:09:57 PM org.apache.catalina.core.AprLifecycleListener init
INFO: 
May 7, 2012 1:09:57 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-6713
May 7, 2012 1:09:57 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1017 ms
May 7, 2012 1:09:57 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
May 7, 2012 1:09:57 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
May 7, 2012 1:09:59 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-6713
May 7, 2012 1:09:59 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:4713
May 7, 2012 1:09:59 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/62  config=null
May 7, 2012 1:09:59 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1580 ms
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T17:59:55+00:00Added an answer on June 3, 2026 at 5:59 pm

    JSF tags will only be processed if the request URL matches the <url-pattern> of the FacesServlet in web.xml. You seem to have mapped it on *.jsf, but the <welcome-file> of index.xhtml does not match that. You have 2 options:

    • Map the FacesServlet on an <url-pattern> of *.xhtml instead of *.jsf. This way you never need to fiddle with virtual URLs.

    • Change <welcome-file> to index.jsf and create an empty index.jsf file next to index.xhtml in the root folder to fool the server that it really exists, to prevent a 404 error.

    By the way, the confirmation that you’ve a jsp-api.jar file in Tomcat’s /lib is irrelevant to this problem. First, that’s standard part of Tomcat and second, that’s not used at all when you’re using Facelets.

    Last but not least, make sure that you ship a concrete JSF implementation along with your webapp in its /WEB-INF/lib folder. Tomcat does as being a simple JSP/Servlet container namely not ship with JSF bundled, while Glassfish as being a full fledged Java EE application server does. If you don’t have any one, download and drop the javax.faces.jar file in /WEB-INF/lib folder of your webapp before deploying to Tomcat. Also make sure that your web.xml is declared conform Servlet 2.5, because Tomcat 6 is a rather old version which doesn’t support Servlet 3.0 like as Glassfish 3.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just deployed my first application in .NET MVC and i'm having issues.
Have just started using Google Chrome , and noticed in parts of our site,
I have just written and tested my first non-hobby WordPress plugin, under Xampp on
I've just deployed my first ASP.NET MVC 2 site, and all appears to be
I have an Apache Solr instance deployed in Glassfish and I am using this
I have just deployed an MVC 3 site to my Windows 2008 Web Edition
Have just started converting an existing job tracking system into an ASP.NET MVC application.
Have just started using Visual Studio Professional's built-in unit testing features, which as I
I have just integrated my design built using twitter bootstrap, html5, css, jquery with
I have just inherited a server application, however it seems that the only copy

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.