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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:16:23+00:00 2026-06-11T01:16:23+00:00

I have a jboss 4 webserver and if I deploy a webapp into www/webapps/ROOT.WAR/

  • 0

I have a jboss 4 webserver and if I deploy a webapp into

www/webapps/ROOT.WAR/

it loads on the domain as http://www.mywebsite.com/

If I deploy a webapp into

www/webapps/internal

it loads on the domain as http://www.mywebsite.com/internal/

So somewhere jboss detects ROOT.WAR as a magic keyword indicating ‘/’.

Is this configurable? If I needed my folder structure to be:

www/webapps/default

Can I change a setting to make Jboss load it as http://www.mywebsite.com/ instead of http://www.mywebsite.com/default/

Thanks

  • 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-11T01:16:25+00:00Added an answer on June 11, 2026 at 1:16 am

    ROOT.war being the default web application is part of the Java EE Servlet Specification.

    Basically if your web application doesn’t explicitly specific the context root, it’ll use the name of the war file by default. The “root” context is a special case, which will be assigned to the root of your site. I.e. “/”. The easiest way to change the context root would be for you to rename your war file to something other than “ROOT”.

    For JBoss specifically, you can create a jboss-web.xml in your applications WEB-INF folder like this:

    <?xml version="1.0" encoding="UTF-8"?>
    <jboss-web>
        <context-root />
    </jboss-web>
    

    The above would be how you’d explicitly set root context. Here’s how to set “internal” as the context:

    <?xml version="1.0" encoding="UTF-8"?>
    <jboss-web>
        <context-root>internal</context-root>
    </jboss-web>
    

    Here’s the JBoss guide on how to configure it:

    http://docs.jboss.org/jbossas/guides/webguide/r2/en/html/ch06.html

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

Sidebar

Related Questions

I have downloaded The JBoss Transactions JTA 4.2.3.SP7 from jboss.org http://www.jboss.org/jbosstm/downloads/4-2-3-SP7 , it's a
I have used Jboss and deployment happens by dropping war to deploy folder. But
I have jboss 7.1.1 with the following definition: <subsystem xmlns=urn:jboss:domain:logging:1.1> <console-handler name=CONSOLE> <level name=INFO/>
Which maven repository has the latest hibernate core 3.5? I have repository.jboss.com/maven2 and it
We have a JBoss configured in cluster with Apache HTTP+mod_jk as a load balancer.
i have JBoss and Tomcat, i like to make one portable webapp for both.
I have Intellij IDEA 9.0.4 set up to start a tomcat webserver and deploy
I have a Jboss 7.1.1 installation and I want to deploy 2 EAR files
I have JBoss AS 5. I'd like to see the default JSP that JBoss
I have jboss EAP 5.1 .I want to know which eclipse works with this

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.