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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:47:57+00:00 2026-06-14T12:47:57+00:00

I have created a JSF 2.0 application as shown in the Eclipse Documentation with

  • 0

I have created a JSF 2.0 application as shown in the Eclipse Documentation with the Eclipse Indigo and Tomcat 7.0.32.

In this application I have two pages:

  1. login.xhtml
  2. welcome.xhtml

From login.xhtml I am navigation to welcome.xhtml.

And I have declared the login.xhtml as the welcome page in my web.xml.

  <welcome-file-list>
    <welcome-file>login.xhtml</welcome-file>
  </welcome-file-list>

And also defined the url-pattern for Faces Servlet as:

  <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.xhtml</url-pattern>
  </servlet-mapping>

Now I am having two issues:

  1. When I am accessing the URL http://localhost:8080/LibraryInformationSystem/ I can see the login page, but after login, when I am being navigated to the welcome.xhtml, the URL is changing to http://localhost:8080/LibraryInformationSystem/login.xhtml not http://localhost:8080/LibraryInformationSystem/welcome.xhtml; but if I manually browse http://localhost:8080/LibraryInformationSystem/welcome.xhtml, it is also showing same thing. My question is why the URL is not changing? Is it the right way to define the default page? I have found information from two other SO threads, first one is here and the second one is here.
  2. The second problem is, when I am running the application from Eclipse and when it launches the application to its internal browser, I can see the login page, but if I shutdown the server running from Eclipse and run the Tomcat from the batch file startup.bat which resides in bin folder and export the application as a war file and deploy it into the webapps folder, sometime I can see the login page, sometime I am having the Tomcat’s HTTP Error – 404 page, from Firefox or Chrome. If I close the startup.bat and delete the myapplication.war and myapplication folder from the webapps folder, then again start the server from startup.bat and again export the war from Eclipse I can see the login page, in this case no 404 error. Why it is happening?

Any pointer would be very helpful to me.

  • 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-14T12:47:58+00:00Added an answer on June 14, 2026 at 12:47 pm

    About point 1), JSF breaks the HTTP semantics. It should be using a GET to provide the contents of http://localhost:8080/LibraryInformationSystem/welcome.xhtml, but JSF uses POST so the URL does not change. You can do a Post-Redirect-Get to update the URL, but it is not how JSF works by default.

    About point 2, you should avoid making two questions in the same SO question.

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

Sidebar

Related Questions

i have created a demo application Using JSF & EJB 3.0 (Stateless session bean
I have created a JSP / servlets application running in Tomcat 7. It runs
I have created web-application using JSF 2.0 where I have checkbox to select as
I have created web-application using JSF 2.0 where I have many checkboxes. I want
I have created web-application using JSF 2.0 & JSP and facing some weird problem.
I have created a web application using JSF 2.0. I got feedback from my
i ve a jsf application which works fine on eclipse with tomcat 7. The
Background: I have a JSF 2.0 application using MyFaces. Using this application, the users
I have created web application using JSF 2.0. I have hosted it on hosting
I am developing a web application using JSF on Netbeans 7.0. I have created

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.