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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:06:39+00:00 2026-06-13T23:06:39+00:00

I have an application deployed in JBOSS and it is accessed as: localhost/appname When

  • 0

I have an application deployed in JBOSS and it is accessed as: localhost/appname
When i enter only the IP address i get redirected to the JBOSS default page.
Is there a way to go to the application’s homepage with no need to give /appname ?

I hope the question is clear.
Thanks in advance.

  • 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-13T23:06:40+00:00Added an answer on June 13, 2026 at 11:06 pm

    A part of the solution given by Nightsorrow, you can also define the context root of your web application using the context-root tag of the WEB-INF/jboss-web.xml file. So defining it as ‘/’, you can keep your original file name. This way you override the default behaviour of JBoss, which is defining the context root of web apps as the file name of the application (unless the app name is ROOT.war, which its default context is ‘/’).

    So the jboss-web.xml file would look like something similar to:

    <jboss-web>
       ... other tags ...
       <context-root>/</context-root>
       ... other tags ...
    </jboss-web>
    

    Notice that there can’t be two applications with the same context root, so first you will have to remove ROOT.war, or change its context root following the same procedure:

    • adding the context-root tag to jboss-web.xml (for example: <context-root>/oldRoot</context-root>, which would make the old ROOT.war application available through localhost/oldRoot),or
    • just changing its file name.

    In case you want to deploy an EAR file with a web module (war) inside (instead of just a plain war file), you’ve to use the META-INF/application.xml of the EAR. Defining the web module this way:

    <application>
            ... other tags and other modules (ejb, web ...) ...
        <module>
            <web>
                <web-uri>nameOfYourWarFile.war</web-uri>
                <context-root>/</context-root>
            </web>
        </module>
            ... other tags and other modules (ejb, web ...) ... 
    </application>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Spring application deployed in JBoss EAP server, using the following settings:
I have a web application deployed on a jboss server running on a unix
I have a web application deployed on JBoss 5.1.0 with a couple of webservices.
I have developed a java 1.4 web application.Application is deployed on jboss(tomcat). suppose my
i have deployed my application on jboss 3.I have restored a database back up
jboss 5.1 I have an application(war) deployed to a proxied server. I put a
Our application have several EARs deployed to a single JBOSS-AS. Every EAR uses SLF4J
I have a working Spring MVC application(doing everything I wanted when deployed to jboss)
Are there any simple ways to see what wars have been deployed in Jboss
We have a Rails application built with JRuby, and deployed to JBoss as a

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.