How does JBoss wildfly (jboss8) Deploy the application to the root context?

Source: Internet
Author: User
Tags jboss wildfly

When we access localhost: 8080/, the JBoss welcome page will always appear. If we want to directly go to our web application when accessing the root directory, we need two steps, one is to add the WEB-INF FILE command JBoss under the/jboss-web.xml/directory to register the application to the root context, and the other is to cancel the welcome page. Wildfly and JBoss earlier versions cancel the welcome page configuration.


First add a WEB-INF under the project directory jboss-web.xml:

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

Open $ jboss_home/standalone/configuration/standalone. xml and find the following snippet:

<server name="default-server">                

Check row 4.

<location name="/" handler="welcome-content"/>

It can be guessed that it allows us to jump to the welcome page of JBoss when accessing. Therefore, delete this row.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.