This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes Deployment Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Deployment Question" Watch "Deployment Question" New topic

Deployment Question

Abiodun Adisa
Ranch Hand

Joined: Jan 17, 2002
Posts: 495
I have a web application that i have bundled in a war file called muzzle.war and i have placed this
war into my C:\jboss\server\default\deploy directory any time i start my server and i try to access my
web site ( i always get the Jboss status page, then when i type . I get my site. Please how do i ensure that whenever i enter , I do get my web site
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10069

Create a jboss-web.xml containing the following:

Place this jboss-web.xml in the WEB-INF folder of your WAR file.

Also, rename ROOT.war (which is present in C:\jboss\server\default\deploy\jboss-web.deployer folder) to maybe JBossDefault.war

[My Blog] [JavaRanch Journal]
Bill Shirley
Ranch Hand

Joined: Nov 08, 2007
Posts: 457
or you can have the top level domain contain a redirect file to your /muzzle directory,

Bill Shirley - bshirley -
if (Posts < 30) JavaRanchFAQ);
subject: Deployment Question