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

  • Home
  • SEARCH
  • 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 4534336
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T14:16:05+00:00 2026-05-21T14:16:05+00:00

I am using JBoss 6.0 . I have deployed my web application: myApp.ear under

  • 0

I am using JBoss 6.0 .

I have deployed my web application: myApp.ear under the web-context: “/test“.
So in browser-url if I type “http://localhost:8080/test/“, I do get my login page (myLogin.jsp).

Since my WAR exists inside a EAR file, I have specified the context root in the application.xml file using a context-root element inside of the web module – i.e.

<module>
    <web>
        <web-uri>myWeb.war</web-uri>
        <context-root>/test</context-root>
    </web>
</module>

My question is how to auto direct user to my web-app from “root context”?

I mean if user types “http://localhost:8080/“, I would expect my web-application’s login page to load (instead of JBoss’s default ROOT.war’s index.html page).

I deleted existing index.html from {JBOSS}\server\default\deploy\ROOT.war and created a login.jsp there. Now I can see that “login.jsp” is getting invoked when I type http://localhost:8080/. But I can not redirect user-request to my web-app’s login page.

In that login.jsp, I have tried with:
<jsp:forward page="/test" />, but I get error: “HTTP Status 404 – /test”.

If I invoke like <jsp:forward page="/test/myLogin.jsp" /> I still get the same 404 error.

Can any one suggest how to achieve the auto-direct to my web-app from root-context?

  • 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-21T14:16:06+00:00Added an answer on May 21, 2026 at 2:16 pm

    You need to keep index.html in default deploy folder and forward request to your web module.

    For example keep following line only in index.html

    <META HTTP-EQUIV="Refresh" CONTENT="0; URL=/test/"/> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using UrlRewrite in a JSP project over JBoss . I have configured
I want to monitor my application running inside JBoss version 3.2.5 using JVisualVM. I
I am using JBoss 5.1.0.GA on Red Hat Linux 4. We have only webservices
I have a JBOSS batch application that sometimes sends hundreds on emails in a
I have generic question on using JMS provided by JBoss 5.1. I deploy my
I'm using JBoss Seam Framework, but it's seems to me isn't very popular among
Using online interfaces to a version control system is a nice way to have
Using TortoiseSVN against VisualSVN I delete a source file that I should not have
I intended to use JBoss-Maven-Plugin for hotdeployment of jars to JBoss. I have three
We have an application that needs to access a database that is owned by

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.