JBoss, a division of Red HatJBoss.org - Community driven.
Links
Docs Home
Config Ref. Home
Top Level Element
Web SubSystem
Connectors
HTTP
AJP
HTTPS
Native
Configuration elements
static-resources
jsp-configuration
Virtual Hosts
virtual-server
Executors
Executor
Printer Friendly Version

The WEB subsystem

Introduction

The subsystem=web describes how JBoss Web is configured in AS7.

There should be only one jsp-configuration element inside an subsystem=web element.

Attributes

Common Attributes

The Web SubSystem supports the following attributes:

AttributeDescription
configuration

That is the configuration of the JSP and Servlet containers. The configuration is described below, there is only one configuration per subsystem.

connector

That is the description of the connector element. There could be more than one connector per subsystem. See connector for more information.

virtual-server

That is the description of the virtual-server element. There could be more than one virtual-server per subsystem. See virtual-server for more information.

default-virtual-server

Name of the default virtual-server to use.

native

Native high performance should used if the libraries are installed. The default value is true.

Nested Components

configuration

The configuration of Web SubSystem supports the following attributes:

AttributeDescription
static-resources

A default service for all web applications, that serves static resources. There could be only one static-resources per configuration.

jsp-configuration

Configuration of the JSP container. There could be only one jsp-configuration per configuration.

mime-mapping

That is the mapping of file extension to the Content-Type mime header. Most of the current file extensions are already hard coded in the web subsystem, you only need to add a mime-mapping is you want to overwrite the default mapping for a file extension or add a new file extension to the mapping. See below for more. There could be more than one mime-mapping per configuration.

welcome-file

Welcome files. There could be more than one welcome-file per configuration.

mime-mapping

The mime-mapping of configurationWeb SubSystem supports the following attributes:

AttributeDescription
name

File extension to map.

value

Value to use.