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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:50:22+00:00 2026-05-23T11:50:22+00:00

my site uses JSF and the url appears to be, http://mysitename.com/wompower6/faces/home.xhtml I am using

  • 0

my site uses JSF and the url appears to be, http://mysitename.com/wompower6/faces/home.xhtml

I am using prettyfaces, so if I use the following in pretty-config.xml, i can change the name to http://mysitename.com/wompower6/home

<url-mapping id="home">
    <pattern value="/home" />
    <view-id value="/faces/home.xhtml" />
</url-mapping>

my questions are

  1. how can i remove the application
    name wompower6 , so that the url
    becomes mysitename.com/home ?

  2. in my web.xml, i have
    <welcome-file>home.xhtml</welcome-file>,
    but this does not seem to work. When
    i type, mysitename.com, it does not
    get mapped to home.xhtml. any clue
    here?

  • 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-23T11:50:22+00:00Added an answer on May 23, 2026 at 11:50 am

    how can i remove the application name wompower6 , so that the url becomes mysitename.com/home?

    This is a webapp <Context> setting and configuration is dependent on the servletcontainer used. If you’re for example using Tomcat, then there are basically 2 options to make your webapp the root webapp.

    1. Rename the WAR file to ROOT.war and Tomcat will by default deploy it on context root.

    2. Set path attribute of <Context> element in Webapp/META-INF/context.xml (or Tomcat/conf/server.xml, depending where you’d like to define it) to an empty String. E.g.

      <Context path="" ...>
      

    Other containers support similar constructs. Consult their documentation for detail. If you’re using an IDE like Eclipse, then you can also set it in the Web Project Settings property of the project properties (rightclick project and choose Properties). Set the Context root value to just /.


    in my web.xml, i have home.xhtml, but this does not seem to work. When i type, mysitename.com, it does not get mapped to home.xhtml. any clue here?

    I assume that you’re talking about the <welcome-file> setting. This has to point to a physically existing file, not to a virtual URL, such as /faces/*. There are basically two ways to overcome this:

    1. Provide a physically existing /faces/home.xhtml file (it can even be left empty).

    2. Replace the ugly /faces/* URL pattern of the FacesServlet mapping in web.xml by *.xhtml so that it will just kick in on every request for a XHTML file.

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

      This way you don’t need to fiddle with /faces/* URL patterns.

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

Sidebar

Related Questions

I'm looking to recreate the effect used on this site: http://www.brizk.com/ The site uses
My web site uses iBox (http://www.enthropia.com/labs/ibox/) to display information that I would like users
I've been asked to suggest some performance improvements for a site that uses JSF/Richfaces/Seam/A4J.
A site uses this link format for everything: example.com/?article=123 example.com/?category=456 example.com/?article=789&picture=012 An ASP classic
I have an image uploader (http://valums.com/ajax-upload/) that uses an iframe as a fallback for
My 1.2.3 django site uses contrib.auth and my goal is to use the wkhtmltopdf
Some sites use a separate domain for images the site uses, for example YouTube
Our site currently uses Richfaces 3.3.3 and JSF 2. There are various native custom
Our PHP site uses a home-grown forms auth implementation. We're considering making our site
My site uses data uri:s to reduce the number of HTTP requests to my

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.