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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:37:51+00:00 2026-05-20T15:37:51+00:00

I am working on setting up a JBoss app server on my dev platform

  • 0

I am working on setting up a JBoss app server on my dev platform (Ubuntu 10.04 server with JBoss 5.1) for my coldfusion apps and can’t seem to find the resources I am looking for for setting up the virtual hosts. In the past I have used tomcat which I would setup a virtual host and use the context tag to point to the root of the working directory. The directory was at /mnt/hgfs/ColdFusion/{project}/. Right at the root of the project directory was where my codebase and WEB-INF was.

I would like to setup the same thing on JBoss, but everything seems give different ways to setup the virtual host and none seem to talk about a comparison of the context tag in Tomcat.

So is there a way to do the context tag from tomcat and what is the best way to setup virtual hosts in JBoss AS 5.1?

  • 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-20T15:37:52+00:00Added an answer on May 20, 2026 at 3:37 pm

    You can setup virtual hosts just like in Tomcat (in fact JBoss Web Service is sightly modified version of Tomcat).

    You can find proper in yours profile in the deploy/jbossweb.sar/server.xml. You hvae just define in that file virtual hosts by defining Host tag.

    Next you have to setup your application. Just create jboss-web.xml file and place it in application WEB-INF direcotry. In that file you have to bind your application with proper virtual host. It can looks like that:

    <jboss-web>
       <context-root>/application_context</context-root>
       <virtual-host>virtual_host</virtual-host>
    </jboss-web>
    

    You can find some more info in that article: Hosting Multiple Domains With JBoss

    Install application from outside direcotry

    You can add extra directory in which you can deploy your application (just like deploy directory).

    You have to edit conf/bootstrap/profile.xml – you can find in your profile. Find property name applicationURIs and add extra dir:

    <property name="applicationURIs">
        <list elementClass="java.net.URI">
            <value>${jboss.server.home.url}deploy</value>
    
            <!-- Below new directory do scan by JBoss AS -->
            <value>file:///nfs/applications</value>
        </list>
    </property>
    

    More info you can find here: How to deploy my application in an external directory in JBoss-5

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

Sidebar

Related Questions

Currently I'm working on setting up a basic WebSockets script. I can get the
I am working on setting up a Drupal based website and wanted to replace
In Visual Source Safe 6.0, you could reset a working folder by setting it
When working with tables in Oracle, how do you know when you are setting
If you are in a corporate setting with many people working on a particular
I'm running into a problem setting up my development environment. I've been working on
I'm looking at working on a project which uses C#.NET (sitting on a windows
I'm having a bit of a problem with getting JBoss working across networks. As
Working on setting up a SqlDataSource connecting MySQL database to a ASP .NET GridView.
I'm working on setting up log4net in a multi-tiered application. I have most of

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.