This commit is contained in:
2025-02-26 14:49:25 +07:00
commit 1c1d9c4474
6403 changed files with 1953774 additions and 0 deletions

View File

@@ -0,0 +1,204 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: jboss-service.xml 75558 2008-07-09 16:50:17Z bstansberry@jboss.com $ -->
<server>
<!-- JBossWeb Service-->
<mbean code="org.jboss.web.tomcat.service.JBossWeb"
name="jboss.web:service=WebServer" xmbean-dd="META-INF/webserver-xmbean.xml">
<!-- You can configure a set of authenticators keyed by http-auth method used. This
will apply the same set of authenticators across all web applications. You can
override the set of authenticators at the web application level by adding
<authenticators> element to the respective jboss-web.xml -->
<!--
-->
<attribute name="Authenticators" serialDataType="jbxb">
<java:properties xmlns:java="urn:jboss:java-properties"
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
xs:schemaLocation="urn:jboss:java-properties resource:java-properties_1_0.xsd">
<java:property>
<java:key>BASIC</java:key>
<java:value>org.apache.catalina.authenticator.BasicAuthenticator</java:value>
</java:property>
<java:property>
<java:key>CLIENT-CERT</java:key>
<java:value>org.apache.catalina.authenticator.SSLAuthenticator</java:value>
</java:property>
<java:property>
<java:key>DIGEST</java:key>
<java:value>org.apache.catalina.authenticator.DigestAuthenticator</java:value>
</java:property>
<java:property>
<java:key>FORM</java:key>
<java:value>org.apache.catalina.authenticator.FormAuthenticator</java:value>
</java:property>
<java:property>
<java:key>NONE</java:key>
<java:value>org.apache.catalina.authenticator.NonLoginAuthenticator</java:value>
</java:property>
</java:properties>
</attribute>
<!-- The JAAS security domain to use in the absense of an explicit
security-domain specification in the war WEB-INF/jboss-web.xml
-->
<attribute name="DefaultSecurityDomain">java:/jaas/other</attribute>
<!-- Get the flag indicating if the normal Java2 parent first class
loading model should be used over the servlet 2.3 web container first
model.
-->
<attribute name="Java2ClassLoadingCompliance">false</attribute>
<!-- A flag indicating if the JBoss Loader should be used. This loader
uses a unified class loader as the class loader rather than the tomcat
specific class loader.
The default is false to ensure that wars have isolated class loading
for duplicate jars and jsp files.
-->
<attribute name="UseJBossWebLoader">false</attribute>
<!-- The list of package prefixes that should not be loaded without
delegating to the parent class loader before trying the web app
class loader. The packages listed here are those tha are used by
the web container implementation and cannot be overriden. The format
is a comma separated list of the package names. There cannot be any
whitespace between the package prefixes.
This setting only applies when UseJBossWebLoader=false.
-->
<attribute name="FilteredPackages">javax.servlet</attribute>
<attribute name="LenientEjbLink">true</attribute>
<!--Flag to delete the Work Dir on Context Destroy -->
<attribute name="DeleteWorkDirOnContextDestroy">false</attribute>
<!--
Class of the session manager (used if context is marked as 'distributable'. Currently allowed values:
- org.jboss.web.tomcat.service.session.JBossCacheManager
-->
<attribute name="ManagerClass">org.jboss.web.tomcat.service.session.JBossCacheManager</attribute>
<!-- The name of the request attribute under with the authenticated JAAS
Subject is stored on successful authentication. If null or empty then
the Subject will not be stored.
-->
<!--
<attribute name="SubjectAttributeName">j_subject</attribute>
-->
<!-- The SessionIdAlphabet is the set of characters used to create a session Id
It must be made up of exactly 65 unique characters
<attribute name="SessionIdAlphabet">ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-*</attribute>
-->
<!--
*******************************************************
****************** CLUSTERING *************************
*******************************************************
In order to activate HTTP Session clustering for Tomcat
make sure you run JBoss's "all" configuration i.e.
"run -c all"
(the default configuration doesn't contain clustering)
Furthermore, you may change SnapshotMode and
SnapshotInterval attributes below to indicate when to
synchronize changes with the other node(s).
If you use Apache+mod_jk(2) you will most probably use
the AJP1.3 connector below. Thus, if you so wish,
you may comment (i.e. deactivate) the HTTP connector
as it won't be used anymore.
*******************************************************
*******************************************************
*******************************************************
-->
<!--
If you are using clustering, the following two attributes
define when the sessions are replicated to the other nodes.
The default value, "instant", synchronously replicates changes
to the other nodes at the end of requests. In this case, the
"SnapshotInterval" attribute is not used.
The "interval" mode, in association with the "SnapshotInterval"
attribute, indicates that modified sessions will only be replicated
every "SnapshotInterval" milliseconds at most.
Note that this attribute is not in effect if the replication-granularity
is set to FIELD. If it is FIELD, it will be per http request (that is,
"instant" mode.)
-->
<attribute name="SnapshotMode">instant</attribute> <!-- you may switch to "interval" -->
<attribute name="SnapshotInterval">2000</attribute>
<!--
Whether to use MOD_JK(2) for load balancing with sticky session
combined with JvmRoute. If set to true, it will insert a JvmRouteFilter
to intercept every request and replace the JvmRoute if it detects a
failover. In addition, you will need to set the JvmRoute inside
Tomcat, e.g.,
Engine name="jboss.web" jmvRoute="Node1" defaultHost="localhost"
in server.xml.
For clustering purpose only.
-->
<attribute name="UseJK">false</attribute>
<!--
Clustering only: Determines the maximum interval between requests, in
seconds, after which a request will trigger replication of the session's
timestamp and other metadata regardless of whether the request has otherwise
made the session dirty. Such replication ensures that other nodes in the
cluster are aware of the most recent value for the session's timestamp
and won't incorrectly expire an unreplicated session upon failover. It also
results in correct values for HttpSession.getLastAccessedTime() calls
following failover.
The cost of this metadata replication depends on the configured
replication-granularity. With <code>SESSION</code>, the session's
attribute map is replicated along with the metadata, so it can be fairly
costly. With other granularities, the metadata object is replicated
separately from the attributes and only contains a String, and a few longs,
ints and booleans.
A value of 0 means the metadata will be replicated whenever the session is
accessed. A value of -1 means the metadata will be replicated only if some
other activity during the request (e.g. modifying an attribute) has
resulted in other replication work involving the session. A positive value
greater than the HttpSession.getMaxInactiveInterval() value will be treated
as a likely misconfiguration and converted to 0; i.e. replicate the
metadata on every request.
Default value if unconfigured is 60 seconds.
-->
<attribute name="MaxUnreplicatedInterval">60</attribute>
<attribute name="Domain">jboss.web</attribute>
<!-- A mapping to the server security manager service which must be
operation compatible with type
org.jboss.security.plugins.JaasSecurityManagerServiceMBean. This is only
needed if web applications are allowed to flush the security manager
authentication cache when the web sessions invalidate.
-->
<depends optional-attribute-name="SecurityManagerService"
proxy-type="attribute">jboss.security:service=JaasSecurityManager
</depends>
<!--
Needed if using HTTP Session Clustering or if the
ClusteredSingleSignOn valve is enabled in the tomcat server.xml file
-->
<!--
<depends>jboss.cache:service=TomcatClusteringCache</depends>
-->
<depends>jboss:service=TransactionManager</depends>
<!-- Only needed if the org.jboss.web.tomcat.service.jca.CachedConnectionValve
is enabled in the tomcat server.xml file.
-->
<depends>jboss.jca:service=CachedConnectionManager</depends>
</mbean>
</server>

View File

@@ -0,0 +1,195 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mbean PUBLIC
"-//JBoss//DTD JBOSS XMBEAN 1.2//EN"
"http://www.jboss.org/j2ee/dtd/jboss_xmbean_1_2.dtd">
<!--
JBoss Web XMBean descriptor
$Id: webserver-xmbean.xml 75558 2008-07-09 16:50:17Z bstansberry@jboss.com $
-->
<mbean>
<description>The JBoss Web Deployer responsible for war deployment</description>
<descriptors>
<interceptors>
<!-- comment out DynamicInterceptor to disable dynamic addition of interceptors -->
<interceptor code="org.jboss.mx.interceptor.DynamicInterceptor"/>
</interceptors>
</descriptors>
<class>org.jboss.web.tomcat.service.JBossWeb</class>
<!-- JBossWebMBean attributes -->
<attribute access="read-write" getMethod="getAuthenticators" setMethod="setAuthenticators">
<name>Authenticators</name>
<type>java.util.Properties</type>
</attribute>
<attribute access="read-write" getMethod="getUseJBossWebLoader" setMethod="setUseJBossWebLoader">
<name>UseJBossWebLoader</name>
<type>boolean</type>
</attribute>
<attribute access="read-write" getMethod="getAllowSelfPrivilegedWebApps" setMethod="setAllowSelfPrivilegedWebApps">
<name>AllowSelfPrivilegedWebApps</name>
<type>boolean</type>
</attribute>
<attribute access="read-write" getMethod="getDeleteWorkDirOnContextDestroy"
setMethod="setDeleteWorkDirOnContextDestroy">
<name>DeleteWorkDirOnContextDestroy</name>
<type>boolean</type>
</attribute>
<attribute access="read-write" getMethod="getHttpHeaderForSSOAuth"
setMethod="setHttpHeaderForSSOAuth">
<name>HttpHeaderForSSOAuth</name>
<type>java.lang.String</type>
</attribute>
<attribute access="read-write" getMethod="getSessionCookieForSSOAuth"
setMethod="setSessionCookieForSSOAuth">
<name>SessionCookieForSSOAuth</name>
<type>java.lang.String</type>
</attribute>
<attribute access="read-write" getMethod="getSubjectAttributeName" setMethod="setSubjectAttributeName">
<name>SubjectAttributeName</name>
<type>java.lang.String</type>
</attribute>
<attribute access="read-write" getMethod="getCacheName" setMethod="setCacheName">
<name>CacheName</name>
<type>java.lang.String</type>
</attribute>
<attribute access="read-write" getMethod="getUnpackWars" setMethod="setUnpackWars">
<name>UnpackWars</name>
<type>boolean</type>
</attribute>
<attribute access="read-write" getMethod="getAcceptNonWarDirs" setMethod="setAcceptNonWarDirs">
<name>AcceptNonWarDirs</name>
<type>boolean</type>
</attribute>
<attribute access="read-write" getMethod="getConfig" setMethod="setConfig">
<name>Config</name>
<type>org.w3c.dom.Element</type>
</attribute>
<attribute access="read-write" getMethod="getLenientEjbLink" setMethod="setLenientEjbLink">
<name>LenientEjbLink</name>
<type>boolean</type>
</attribute>
<attribute access="read-write" getMethod="isUseJK" setMethod="setUseJK">
<name>UseJK</name>
<type>boolean</type>
</attribute>
<attribute access="read-write" getMethod="getMaxUnreplicatedInterval" setMethod="setMaxUnreplicatedInterval">
<name>MaxUnreplicatedInterval</name>
<type>int</type>
</attribute>
<attribute access="read-write" getMethod="getDomain" setMethod="setDomain">
<name>Domain</name>
<type>java.lang.String</type>
</attribute>
<attribute access="read-write" getMethod="getFilteredPackages" setMethod="setFilteredPackages">
<name>FilteredPackages</name>
<type>[Ljava.lang.String;</type>
</attribute>
<attribute access="read-write" getMethod="getJava2ClassLoadingCompliance" setMethod="setJava2ClassLoadingCompliance">
<name>Java2ClassLoadingCompliance</name>
<type>boolean</type>
</attribute>
<attribute access="read-write" getMethod="getDefaultSecurityDomain" setMethod="setDefaultSecurityDomain">
<name>DefaultSecurityDomain</name>
<type>java.lang.String</type>
</attribute>
<attribute access="read-write" getMethod="getSnapshotMode" setMethod="setSnapshotMode">
<name>SnapshotMode</name>
<type>java.lang.String</type>
</attribute>
<attribute access="read-write" getMethod="getSnapshotInterval" setMethod="setSnapshotInterval">
<name>SnapshotInterval</name>
<type>int</type>
</attribute>
<attribute access="read-write" getMethod="getConfigFile" setMethod="setConfigFile">
<name>ConfigFile</name>
<type>java.lang.String</type>
</attribute>
<attribute access="read-write" getMethod="getUseLocalCache" setMethod="setUseLocalCache">
<name>UseLocalCache</name>
<type>boolean</type>
</attribute>
<attribute access="read-write" getMethod="getSessionIdAlphabet" setMethod="setSessionIdAlphabet">
<name>SessionIdAlphabet</name>
<type>java.lang.String</type>
</attribute>
<attribute access="read-write" getMethod="getContextMBeanCode" setMethod="setContextMBeanCode">
<name>ContextMBeanCode</name>
<type>java.lang.String</type>
</attribute>
<attribute access="read-write" getMethod="getManagerClass" setMethod="setManagerClass">
<name>ManagerClass</name>
<type>java.lang.String</type>
</attribute>
<attribute access="read-only" getMethod="getDeployedApplications">
<name>DeployedApplications</name>
<type>java.util.Iterator</type>
</attribute>
<attribute access="write-only" setMethod="setSecurityManagerService">
<name>SecurityManagerService</name>
<type>org.jboss.security.plugins.JaasSecurityManagerServiceMBean</type>
</attribute>
<!-- SubDeployerExt attribute -->
<attribute access="read-write" getMethod="getEnhancedSuffixes" setMethod="setEnhancedSuffixes">
<description>Allow the override of supported suffixes and relative order</description>
<name>EnhancedSuffixes</name>
<type>[Ljava.lang.String;</type>
</attribute>
&deployerAttributes;
&defaultAttributes;
<!-- JBossWebMBean operations -->
<operation>
<description>See if a war is deployed</description>
<name>isDeployed</name>
<parameter>
<name>warUrl</name>
<type>java.lang.String</type>
</parameter>
<return-type>boolean</return-type>
</operation>
<operation>
<description>Start all connectors of the Domain</description>
<name>startConnectors</name>
</operation>
<operation>
<description>Stop all connectors of the Domain</description>
<name>stopConnectors</name>
</operation>
&deployerOperations;
&defaultOperations;
&interceptable;
</mbean>

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>Welcome to JBoss</display-name>
<description>
Welcome to JBoss
</description>
<servlet>
<servlet-name>Status Servlet</servlet-name>
<servlet-class>org.jboss.web.tomcat.service.StatusServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Status Servlet</servlet-name>
<url-pattern>/status</url-pattern>
</servlet-mapping>
</web-app>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Welcome to JBoss&trade;</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="StyleSheet" href="jboss.css" type="text/css"/>
</head>
<body>
<!-- header begin -->
<a href="http://www.jboss.org">
<img src="logo.gif" alt="JBoss" id="logo" width="226" height="105" />
</a>
<div id="header">&nbsp;</div>
<div id="navigation_bar"></div>
<!-- header end -->
<h3>JBoss Online Resources</h3>
<ul>
<li><a href="http://www.jboss.org/jbossas/docs">JBoss AS Documentation</a></li>
<li><a href="http://wiki.jboss.org">JBoss Wiki</a></li>
<li><a href="http://jira.jboss.org/jira/browse/JBAS">JBoss JIRA</a></li>
<li><a href="http://www.jboss.org/index.html?module=bb">JBoss Forums</a></li>
</ul>
<h3>JBoss Management</h3>
<ul>
<li><a href="/status">Tomcat status</a>
<a href="/status?full=true">(full)</a>
<a href="/status?XML=true">(XML)</a></li>
<li><a href="/jmx-console/">JMX Console</a></li>
<li><a href="/web-console/">JBoss Web Console</a></li>
</ul>
<!-- footer begin -->
<div id="footer">
<div id="credits">
<a href="http://www.jboss.org/jbossas">JBoss&trade; Application Server</a>
</div>
<div id="footer_bar">&nbsp;</div>
</div>
<!-- footer end -->
</body>
</html>

View File

@@ -0,0 +1,143 @@
body {
margin: 13px 0px 10px 0px;
background-color: #ffffff;
font-size: 10px;
font-family: verdana, arial, "sans-serif";
color: #606060;
}
img {
border: 0px;
}
#header {
background-color: #003D6E;
background-repeat: no-repeat;
width: 100%;
height: 80px;
}
#header #banner {
float: right;
margin: 8px 5px 0px 0px;
}
#logo {
position: absolute;
top: 2px;
left: 4px;
z-index: 200;
}
#navigation_bar {
background-color: #f0f0f0;
border-bottom: 1px dotted #999999;
height: 20px;
}
#items {
font-size: 12px;
width: 600px;
margin: 5px 5px 5px 170px;
position: relative;
z-index: 300;
}
#items .item {
margin-right: 10px;
}
.side_block {
margin: 15px 5px 10px 5px;
background-color: #fbfbfb;
border: 1px solid #f0f0f0;
}
.side_block h3 {
font-size: 11px;
font-weight: 100;
width: 100%;
margin: 0px 0px 5px 0px;
padding: 4px 4px 4px 10x;
background-color: #f0f0f0;
}
.side_block h4 {
font-size: 11px;
color: #003D6E;
font-weight: bold;
margin: 10px 5px 4px 5px;
}
.side_block p {
margin: 5px 5px 3px 5px;
}
.side_block form {
margin: 0px 0px 0px 5px;
}
.side_block #login {
font-size: 9px;
}
.side_block p img {
text-align: center;
}
#content {
width: 90%;
margin: 10px auto;
}
#left {
float: left;
width: 14%;
}
#right {
float: right;
width: 14%;
}
.content_block {
text-align: justify;
border: 1px solid #999999;
margin: 5px;
width: 31%;
float: left;
}
.content_block p {
margin: 0px 5px 3px 5px;
}
.content_block h3 {
font-size: 11px;
font-weight: bold;
color: #000000;
margin: 0px 0px 5px 0px;
padding: 4px 4px 4px 4x;
text-align: center;
background-color: #f0f0f0;
border-bottom: 1px solid #999999
}
.content_block h4 {
font-size: 11px;
color: #003D6E;
text-align: left;
font-weight: bold;
margin: 10px 5px 4px 5px;
}
#footer {
clear: both;
border-top: 1px dotted #999999;
}
#credits {
background-color: #f0f0f0;
padding: 5px;
text-align: center;
}
#footer_bar {
height: 20px;
width: 100%;
background-color: #003D6E;
}
.hide {
display: none;
}
.spacer {
clear: both;
}
.spacer hr {
display: none;
}
.center {
text-align: center;
}
#youcandoit {
background-image: url("youcandoit.jpg");
background-repeat: repeat-x;
height: 165px;
margin: 0px 30px 0px 30px;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

View File

@@ -0,0 +1,96 @@
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- Output method -->
<xsl:output encoding="iso-8859-1"
indent="no"/>
<xsl:template match="status">
<html>
<head>
<TITLE>Tomcat Status</TITLE>
<STYLE type="text/css">
body, table, tr, td, a, div, span {
vertical-align : top;
}
</STYLE>
</head>
<body>
<div style='font-size:20px;'>Tomcat Status</div>
<xsl:apply-templates select="jvm"/>
<xsl:apply-templates select="connector"/>
</body>
</html>
</xsl:template>
<xsl:template match="jvm">
<xsl:apply-templates select="memory"/>
</xsl:template>
<xsl:template match="memory">
<table><tr>
<td><b>JVM:</b></td>
<td><b>free:</b> <xsl:value-of select="@free"/></td>
<td><b>total:</b> <xsl:value-of select="@total"/></td>
<td><b>max:</b> <xsl:value-of select="@max"/></td>
</tr>
</table><hr />
</xsl:template>
<xsl:template match="connector">
<b>Connector -- </b> <xsl:value-of select="@name"/><br />
<xsl:apply-templates select="threadInfo"/>
<xsl:apply-templates select="requestInfo"/>
<xsl:apply-templates select="workers"/>
</xsl:template>
<xsl:template match="threadInfo">
<table><tr>
<td><b>threadInfo </b></td>
<td><b>maxThreads:</b> <xsl:value-of select="@maxThreads"/></td>
<td><b>minSpareThreads:</b> <xsl:value-of select="@minSpareThreads"/></td>
<td><b>maxSpareThreads:</b> <xsl:value-of select="@maxSpareThreads"/></td>
<td><b>currentThreadCount:</b> <xsl:value-of select="@currentThreadCount"/></td>
<td><b>currentThreadsBusy:</b> <xsl:value-of select="@currentThreadsBusy"/></td>
</tr>
</table><hr />
</xsl:template>
<xsl:template match="requestInfo">
<table><tr>
<td><b>requestInfo </b></td>
<td><b>maxTime:</b> <xsl:value-of select="@maxTime"/></td>
<td><b>processingTime:</b> <xsl:value-of select="@processingTime"/></td>
<td><b>requestCount:</b> <xsl:value-of select="@requestCount"/></td>
<td><b>errorCount:</b> <xsl:value-of select="@errorCount"/></td>
<td><b>bytesReceived:</b> <xsl:value-of select="@bytesReceived"/></td>
<td><b>bytesSent:</b> <xsl:value-of select="@bytesSent"/></td>
</tr>
</table><hr />
</xsl:template>
<xsl:template match="workers">
<table>
<tr><th>Stage</th><th>Time</th><th>B Sent</th><th>B Recv</th><th>Client</th><th>VHost</th><th>Request</th></tr>
<xsl:apply-templates select="worker"/>
</table><hr />
</xsl:template>
<xsl:template match="worker">
<tr>
<td><xsl:value-of select="@stage"/></td>
<td><xsl:value-of select="@requestProcessingTime"/></td>
<td><xsl:value-of select="@requestBytesSent"/></td>
<td><xsl:value-of select="@requestBytesReceived"/></td>
<td><xsl:value-of select="@remoteAddr"/></td>
<td><xsl:value-of select="@virtualHost"/></td>
<td><xsl:value-of select="@method"/> <xsl:value-of select="@currentUri"/>?<xsl:value-of select="@currentQueryString"/> <xsl:value-of select="@protocol"/></td>
</tr>
</xsl:template>
</xsl:stylesheet>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,17 @@
<!-- The contents of this file will be loaded for each web application -->
<Context cookies="true" crossContext="true">
<!-- Session persistence is disable by default. To enable for all web
apps set the pathname to a non-empty value:
<Manager pathname="SESSIONS.ser" />
To enable session persistence for a single web app, add a
WEB-INF/context.xml
-->
<Manager pathname="" />
<!-- Install an InstanceListener to handle the establishment of the run-as
role for servlet init/destroy events.
-->
<InstanceListener>org.jboss.web.tomcat.security.RunAsListener</InstanceListener>
</Context>

Binary file not shown.

View File

@@ -0,0 +1,171 @@
<Server>
<!--APR library loader. Documentation at /docs/apr.html -->
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
<!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
<Listener className="org.apache.catalina.core.JasperListener" />
<!-- Use a custom version of StandardService that allows the
connectors to be started independent of the normal lifecycle
start to allow web apps to be deployed before starting the
connectors.
-->
<Service name="jboss.web">
<!-- A "Connector" represents an endpoint by which requests are received
and responses are returned. Documentation at :
Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
Java AJP Connector: /docs/config/ajp.html
APR (HTTP/AJP) Connector: /docs/apr.html
Define a non-SSL HTTP/1.1 Connector on port 8080
-->
<Connector port="8080" address="${jboss.bind.address}"
maxThreads="250" maxHttpHeaderSize="8192"
emptySessionPath="true" protocol="HTTP/1.1"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
<!-- Define a SSL HTTP/1.1 Connector on port 8443
This connector uses the JSSE configuration, when using APR, the
connector should be using the OpenSSL style configuration
described in the APR documentation -->
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="true" sslProtocol="TLS"
ciphers="SSL_RSA_WITH_NULL_SHA,TLS_RSA_WITH_AES_128_CBC_SHA"
keystoreFile="${jboss.server.home.dir}/conf/certificates/test_sys_1.p12"
keystorePass="secret" keystoreType="PKCS12"
truststoreFile="${jboss.server.home.dir}/conf/certificates/mesa_certs.jks"
truststorePass="secret" truststoreType="JKS"
SSLImplementation="org.dcm4chee.audit.tomcat.ATNAImplementation"
/>
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009" address="${jboss.bind.address}" protocol="AJP/1.3"
emptySessionPath="true" enableLookups="false" redirectPort="8443" />
<Engine name="jboss.web" defaultHost="localhost">
<!-- The JAAS based authentication and authorization realm implementation
that is compatible with the jboss 3.2.x realm implementation.
- certificatePrincipal : the class name of the
org.jboss.security.auth.certs.CertificatePrincipal impl
used for mapping X509[] cert chains to a Princpal.
- allRolesMode : how to handle an auth-constraint with a role-name=*,
one of strict, authOnly, strictAuthOnly
+ strict = Use the strict servlet spec interpretation which requires
that the user have one of the web-app/security-role/role-name
+ authOnly = Allow any authenticated user
+ strictAuthOnly = Allow any authenticated user only if there are no
web-app/security-roles
-->
<Realm className="org.jboss.web.tomcat.security.JBossSecurityMgrRealm"
certificatePrincipal="org.jboss.security.auth.certs.SubjectDNMapping"
allRolesMode="authOnly"
/>
<!-- A subclass of JBossSecurityMgrRealm that uses the authentication
behavior of JBossSecurityMgrRealm, but overrides the authorization
checks to use JACC permissions with the current java.security.Policy
to determine authorized access.
- allRolesMode : how to handle an auth-constraint with a role-name=*,
one of strict, authOnly, strictAuthOnly
+ strict = Use the strict servlet spec interpretation which requires
that the user have one of the web-app/security-role/role-name
+ authOnly = Allow any authenticated user
+ strictAuthOnly = Allow any authenticated user only if there are no
web-app/security-roles
<Realm className="org.jboss.web.tomcat.security.JaccAuthorizationRealm"
certificatePrincipal="org.jboss.security.auth.certs.SubjectDNMapping"
allRolesMode="authOnly"
/>
-->
<Host name="localhost"
autoDeploy="false" deployOnStartup="false" deployXML="false"
configClass="org.jboss.web.tomcat.security.config.JBossContextConfig"
>
<!-- Uncomment to enable request dumper. This Valve "logs interesting
contents from the specified Request (before processing) and the
corresponding Response (after processing). It is especially useful
in debugging problems related to headers and cookies."
-->
<!--
<Valve className="org.apache.catalina.valves.RequestDumperValve" />
-->
<!-- Access logger -->
<!--
<Valve className="org.apache.catalina.valves.AccessLogValve"
prefix="localhost_access_log." suffix=".log"
pattern="common" directory="${jboss.server.home.dir}/log"
resolveHosts="false" />
-->
<!-- Uncomment to enable single sign-on across web apps
deployed to this host. Does not provide SSO across a cluster.
If this valve is used, do not use the JBoss ClusteredSingleSignOn
valve shown below.
A new configuration attribute is available beginning with
release 4.0.4:
cookieDomain configures the domain to which the SSO cookie
will be scoped (i.e. the set of hosts to
which the cookie will be presented). By default
the cookie is scoped to "/", meaning the host
that presented it. Set cookieDomain to a
wider domain (e.g. "xyz.com") to allow an SSO
to span more than one hostname.
-->
<Valve className="org.apache.catalina.authenticator.SingleSignOn" requireReauthentication="true" />
<!-- Uncomment to enable single sign-on across web apps
deployed to this host AND to all other hosts in the cluster.
If this valve is used, do not use the standard Tomcat SingleSignOn
valve shown above.
Valve uses a JBossCache instance to support SSO credential
caching and replication across the cluster. The JBossCache
instance must be configured separately. By default, the valve
shares a JBossCache with the service that supports HttpSession
replication. See the "jboss-web-cluster-service.xml" file in the
server/all/deploy directory for cache configuration details.
Besides the attributes supported by the standard Tomcat
SingleSignOn valve (see the Tomcat docs), this version also
supports the following attributes:
cookieDomain see above
treeCacheName JMX ObjectName of the JBossCache MBean used to
support credential caching and replication across
the cluster. If not set, the default value is
"jboss.cache:service=TomcatClusteringCache", the
standard ObjectName of the JBossCache MBean used
to support session replication.
-->
<!--
<Valve className="org.jboss.web.tomcat.service.sso.ClusteredSingleSignOn" />
-->
<!-- Check for unclosed connections and transaction terminated checks
in servlets/jsps.
Important: The dependency on the CachedConnectionManager
in META-INF/jboss-service.xml must be uncommented, too
-->
<Valve className="org.jboss.web.tomcat.service.jca.CachedConnectionValve"
cachedConnectionManagerObjectName="jboss.jca:service=CachedConnectionManager"
transactionManagerObjectName="jboss:service=TransactionManager" />
</Host>
</Engine>
</Service>
</Server>