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 6065069
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:20:59+00:00 2026-05-23T09:20:59+00:00

In IntelliJIdea, i’ve created a little application with just default pages auto created by

  • 0

In IntelliJIdea, i’ve created a little application with just default pages auto created by ide. I’ve added two frameworks: spring (3) and JSF 2. The app level is java ee 2.5, because I want to deploy on a Tomcat 6.0.
I installed an Apache Tomcat 6.0, created an administrator user, and tested, it works.
But when I deploy the simple application, it seems to deploy it correctly, but accessing it, the browser gives the error:

Simple jsp page
12:   <body>
13: 
14:   f:view>
15:       
16:   
17: 


Stacktrace:
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:519)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:428)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

root cause

java.lang.RuntimeException: FacesContext not found
....
  • 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-05-23T09:20:59+00:00Added an answer on May 23, 2026 at 9:20 am

    java.lang.RuntimeException: FacesContext not found

    The JSF component is complaining that the FacesContext cannot be found. The FacesServlet is the one responsible for creating it. So it has clearly not run. You need to ensure that the request URL as you entered in the browser address bar matches the URL pattern of the FacesServlet as it is been definied in the webapp’s web.xml file (and that it is been definied in the web.xml). If it is for example

    <url-pattern>*.jsf</url-pattern>
    

    then you need to ensure that the request URL is

    http://localhost:8080/contextname/page.jsf

    and thus not

    http://localhost:8080/contextname/page.jsp

    If the request URL matches the URL pattern of the FacesServlet, then it will be invoked and it will do all the JSF jobs.


    Unrelated to the problem: why the choice for JSP when you’re using JSF2? Why not using its superior successor Facelets instead?

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

Sidebar

Related Questions

I have a problem configuring IntelliJ IDEA for developing spring and maven powered application.
Im using IntelliJ Idea IDE for working on a scalatra project i created using
I downloaded spring-framework-3.0.5.RELEASE . I have also downloaded eclipse-j2ee and intellijIDEA. But can't understand
By default IntelliJ IDEA 7.0.4 seems to use 4 spaces for indentation in XML
I just started using IntelliJ-IDEA, and I don't know if the problem resides with
I'm using Intellij IDEA Community Edition for IDE, and I like it a lot.
I'm using IntelliJ IDEA v11.0.1 In Run/Debug configuration of my Android application I can
I have an IntelliJ IDEA project contains two Scala modules M1 and M2. Each
I've created an IntelliJ Idea SBT Scala project like Heiko Seeberger's article describes. I'd
I downloaded IntelliJ IDEA and started with the 30 day evaluation. Now I'm just

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.