new tomcat
419
tomcat/server/webapps/admin/WEB-INF/controls.tld
Normal file
|
@ -0,0 +1,419 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE taglib
|
||||
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
|
||||
"http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
|
||||
|
||||
<taglib>
|
||||
|
||||
<tlib-version>1.0</tlib-version>
|
||||
<jsp-version>1.2</jsp-version>
|
||||
<short-name>controls</short-name>
|
||||
<description>
|
||||
JSP tag library containing custom GUI controls used in the
|
||||
Tomcat Administrative Application.
|
||||
</description>
|
||||
|
||||
<!-- ========== Instant Table Tag ===================================== -->
|
||||
|
||||
<tag>
|
||||
|
||||
<name>table</name>
|
||||
<tag-class>org.apache.webapp.admin.TableTag</tag-class>
|
||||
<body-content>JSP</body-content>
|
||||
<description>
|
||||
Render a "table" object, which is rendered as an HTML
|
||||
"table" element.
|
||||
|
||||
NOTE: The only valid nested content for this tag is
|
||||
"row" tags from this library. Anything else will cause
|
||||
the rendered HTML to be invalid.
|
||||
|
||||
NOTE: To be usable, this tag must be nested inside an
|
||||
HTML <form> element.
|
||||
</description>
|
||||
|
||||
<attribute>
|
||||
<name>columns</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
<description>
|
||||
(Integer) number of columns that the table contains. If
|
||||
not specified, only two columns will be visible.
|
||||
</description>
|
||||
</attribute>
|
||||
|
||||
<attribute>
|
||||
<name>tableStyle</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
<description>
|
||||
The CSS style class to be applied to the entire rendered output
|
||||
of the instant table. If not specified, no overall
|
||||
style class is applied.
|
||||
</description>
|
||||
</attribute>
|
||||
|
||||
<attribute>
|
||||
<name>lineStyle</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
<description>
|
||||
The CSS style for the lines between rows.
|
||||
</description>
|
||||
</attribute>
|
||||
|
||||
</tag>
|
||||
|
||||
<tag>
|
||||
|
||||
<name>row</name>
|
||||
<tag-class>org.apache.webapp.admin.RowTag</tag-class>
|
||||
<body-content>JSP</body-content>
|
||||
<description>
|
||||
Define a single "instant table row" option for the surrounding "table"
|
||||
tag. It is not valid to use this tag *except* when nested inside an
|
||||
"table" tag.
|
||||
|
||||
NOTE: This tag can nest only "label" and "data" tags.
|
||||
</description>
|
||||
|
||||
<attribute>
|
||||
<name>header</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
<description>
|
||||
(Boolean) variable set to "true" or "yes" if this row is
|
||||
the header row.
|
||||
</description>
|
||||
</attribute>
|
||||
|
||||
<attribute>
|
||||
<name>labelStyle</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
<description>
|
||||
The style for the label table data element.
|
||||
</description>
|
||||
</attribute>
|
||||
|
||||
<attribute>
|
||||
<name>dataStyle</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
<description>
|
||||
The style for the value of the table data element.
|
||||
</description>
|
||||
</attribute>
|
||||
|
||||
<attribute>
|
||||
<name>styleId</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
<description>
|
||||
The styleId for the label table data element.
|
||||
</description>
|
||||
</attribute>
|
||||
|
||||
</tag>
|
||||
|
||||
<tag>
|
||||
|
||||
<name>label</name>
|
||||
<tag-class>org.apache.webapp.admin.LabelTag</tag-class>
|
||||
<body-content>JSP</body-content>
|
||||
<description>
|
||||
Render a "label" object, which is rendered as a label in the row of
|
||||
an HTML "table" element.
|
||||
|
||||
NOTE: To be usable, this tag must be nested inside a "row" tag.
|
||||
</description>
|
||||
</tag>
|
||||
|
||||
<tag>
|
||||
|
||||
<name>data</name>
|
||||
<tag-class>org.apache.webapp.admin.DataTag</tag-class>
|
||||
<body-content>JSP</body-content>
|
||||
<description>
|
||||
Render a "data" object, which is rendered as a label in the row of
|
||||
an HTML "table" element.
|
||||
|
||||
NOTE: To be usable, this tag must be nested inside a "row" tag.
|
||||
</description>
|
||||
</tag>
|
||||
|
||||
<!-- ========== Instant Actions Tag ===================================== -->
|
||||
|
||||
<tag>
|
||||
|
||||
<name>actions</name>
|
||||
<tag-class>org.apache.webapp.admin.ActionsTag</tag-class>
|
||||
<body-content>JSP</body-content>
|
||||
<description>
|
||||
Render an "instant actions" object, which is rendered as an HTML
|
||||
"select" element, where the selection of a particular element from
|
||||
the list immediately causes a JavaScript function to be executed
|
||||
(with the available elements specified by "action" tag instances
|
||||
nested within the body of the "actions" tag).
|
||||
|
||||
NOTE: The only valid nested content for this tag is
|
||||
"action" tags from this library. Anything else will cause
|
||||
the rendered HTML to be invalid.
|
||||
|
||||
NOTE: To be usable, this tag must be nested inside an
|
||||
HTML <form> element.
|
||||
</description>
|
||||
|
||||
<attribute>
|
||||
<name>size</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
<description>
|
||||
(Integer) number of rows that will be visible to the user. If
|
||||
not specified, only one row will be visible.
|
||||
</description>
|
||||
</attribute>
|
||||
|
||||
<attribute>
|
||||
<name>style</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
<description>
|
||||
The CSS style class to be applied to the entire rendered output
|
||||
of the instant actions control. If not specified, no overall
|
||||
style class is applied.
|
||||
</description>
|
||||
</attribute>
|
||||
|
||||
<attribute>
|
||||
<name>label</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
<description>
|
||||
HTML Label tag generation.
|
||||
</description>
|
||||
</attribute>
|
||||
|
||||
</tag>
|
||||
|
||||
<tag>
|
||||
|
||||
<name>action</name>
|
||||
<tag-class>org.apache.webapp.admin.ActionTag</tag-class>
|
||||
<body-content>JSP</body-content>
|
||||
<description>
|
||||
Define a single "instant action" option for the surrounding "actions"
|
||||
tag. It is not valid to use this tag *except* when nested inside an
|
||||
"actions" tag.
|
||||
|
||||
NOTE: The body content of this tag (which should be suitably
|
||||
localized, if required by your application) is used as the
|
||||
user-visible label for this action.
|
||||
</description>
|
||||
|
||||
<attribute>
|
||||
<name>selected</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
<description>
|
||||
(Boolean) variable set to "true" or "yes" if this action should
|
||||
already be selected when the "instant actions" element is
|
||||
initially displayed.
|
||||
</description>
|
||||
</attribute>
|
||||
|
||||
<attribute>
|
||||
<name>disabled</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
<description>
|
||||
(Boolean) variable set to "true" or "yes" if the selection
|
||||
for this action should be disabled.
|
||||
</description>
|
||||
</attribute>
|
||||
|
||||
<attribute>
|
||||
<name>url</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
<description>
|
||||
The URL to which the current frame or window will be transferred
|
||||
if the "onchange" event handler of this "instant actions" element
|
||||
is triggered, and this is the currently selected action. If no
|
||||
URL is specified, no action will be taken (useful for "(None)"
|
||||
options and dividers).
|
||||
|
||||
If this URL starts with a slash, it will be assumed to be
|
||||
context-relative, and will be prefixed with the context path
|
||||
of this request. Otherwise, it will be used unmodified.
|
||||
|
||||
NOTE: This URL will be passed through URL rewriting so that it
|
||||
will maintain session identity even in environments were cookies
|
||||
are not being used.
|
||||
</description>
|
||||
</attribute>
|
||||
|
||||
</tag>
|
||||
|
||||
|
||||
<!-- ========== Tree Control Tag ======================================== -->
|
||||
|
||||
<tag>
|
||||
|
||||
<name>tree</name>
|
||||
<tag-class>org.apache.webapp.admin.TreeControlTag</tag-class>
|
||||
<body-content>empty</body-content>
|
||||
<description>
|
||||
Render a "tree" control, based on the current state of a data object
|
||||
of type org.apache.webapp.admin.TreeControl, which is identified
|
||||
by the name specified in the "tree" attribute, in the JSP scope
|
||||
specified by the "scope" attribute.
|
||||
</description>
|
||||
|
||||
<attribute>
|
||||
<name>action</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
<description>
|
||||
Hyperlink to which expand/contract actions should be sent,
|
||||
with a string "${node}" marking where the node name of the
|
||||
affected node should be included (which will usually be as
|
||||
the value of a request parameter).
|
||||
</description>
|
||||
</attribute>
|
||||
|
||||
<attribute>
|
||||
<name>images</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
<description>
|
||||
Name of a directory containing the images for our icons,
|
||||
relative to the page including this tag. If not specified,
|
||||
defaults to "images".
|
||||
</description>
|
||||
</attribute>
|
||||
|
||||
<attribute>
|
||||
<name>scope</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
<description>
|
||||
The JSP scope within which the "tree" attribute is to be found
|
||||
(page, request, session, or application). If not specified, the
|
||||
"tree" attribute will be searched for in any scope.
|
||||
</description>
|
||||
</attribute>
|
||||
|
||||
<attribute>
|
||||
<name>style</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
<description>
|
||||
The CSS style class to be applied to the entire rendered output
|
||||
of the tree control. If not specified, no overall style class
|
||||
is applied.
|
||||
</description>
|
||||
</attribute>
|
||||
|
||||
<attribute>
|
||||
<name>styleSelected</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
<description>
|
||||
The CSS style class to be applied to the text of any node that
|
||||
is currently selected. If not specified, no style class will be
|
||||
applied to the text of the selected node.
|
||||
</description>
|
||||
</attribute>
|
||||
|
||||
<attribute>
|
||||
<name>styleUnselected</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
<description>
|
||||
The CSS style class to be applied to the text of any node that
|
||||
is *not* currently selected. If not specified, no style class will
|
||||
be applied to the text of non-selected nodes.
|
||||
</description>
|
||||
</attribute>
|
||||
|
||||
<attribute>
|
||||
<name>tree</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
<description>
|
||||
Name of the attribute (in the scope specified by the "scope"
|
||||
attribute, if any) under which an object of type
|
||||
org.apache.webapp.admin.TreeControl is stored. This object
|
||||
represents the entire current state of the tree, including
|
||||
a representation of the hierarchical representation of the
|
||||
nodes, plus the current expanded/ or contracted state of
|
||||
non-leaf nodes.
|
||||
</description>
|
||||
</attribute>
|
||||
|
||||
</tag>
|
||||
|
||||
<!-- ========== JMX Attribute Display Tag =============================== -->
|
||||
|
||||
<tag>
|
||||
|
||||
<name>attribute</name>
|
||||
<tag-class>org.apache.webapp.admin.AttributeTag</tag-class>
|
||||
<body-content>empty</body-content>
|
||||
<description>
|
||||
Look up an attribute on a JMX MBean, specified by an object name
|
||||
specified by the "name" (and optional "property" and "scope")
|
||||
attributes, and render it to the current JSP writer. The object name
|
||||
identified by these attributes can be either a java.lang.String version
|
||||
of the name, or a javax.management.ObjectName instance.
|
||||
</description>
|
||||
|
||||
<attribute>
|
||||
<name>attribute</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
<description>
|
||||
Name of the attribute of the JMX MBean whose value is to be
|
||||
retrieved and written to the current JSP writer.
|
||||
</description>
|
||||
</attribute>
|
||||
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
<description>
|
||||
Name of a bean, optionally in some scope identified by the "scope"
|
||||
attribute. If the "property" attribute is not specified, this bean
|
||||
must by a String or an ObjectName. Otherwise, this bean must have
|
||||
a property getter for the property named by "property", which will
|
||||
return the String or ObjectName.
|
||||
</description>
|
||||
</attribute>
|
||||
|
||||
<attribute>
|
||||
<name>property</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
<description>
|
||||
Name of a bean property, on the bean identified by the "name"
|
||||
(and optional "scope") attributes, that is either a String or an
|
||||
ObjectName of the JMX MBean whose attribute is to be retrieved.
|
||||
</description>
|
||||
</attribute>
|
||||
|
||||
<attribute>
|
||||
<name>scope</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
<description>
|
||||
Name of the scope ("page", "request", "session", or "application")
|
||||
in which the bean identified by the "name" attribute is to be found.
|
||||
If not specified, all scopes will be searched in ascending order.
|
||||
</description>
|
||||
</attribute>
|
||||
|
||||
</tag>
|
||||
|
||||
</taglib>
|
BIN
tomcat/server/webapps/admin/WEB-INF/lib/catalina-admin.jar
Normal file
BIN
tomcat/server/webapps/admin/WEB-INF/lib/commons-beanutils.jar
Normal file
BIN
tomcat/server/webapps/admin/WEB-INF/lib/commons-collections.jar
Normal file
BIN
tomcat/server/webapps/admin/WEB-INF/lib/commons-digester.jar
Normal file
BIN
tomcat/server/webapps/admin/WEB-INF/lib/struts.jar
Normal file
970
tomcat/server/webapps/admin/WEB-INF/struts-config.xml
Normal file
|
@ -0,0 +1,970 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
|
||||
<!DOCTYPE struts-config PUBLIC
|
||||
"-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
|
||||
"http://struts.apache.org/dtds/struts-config_1_2.dtd">
|
||||
|
||||
|
||||
<struts-config>
|
||||
|
||||
|
||||
<!-- ========== Data Source Configuration =============================== -->
|
||||
|
||||
|
||||
<!-- ========== Form Bean Definitions =================================== -->
|
||||
|
||||
<form-beans>
|
||||
|
||||
<!-- Set Locale form bean -->
|
||||
<form-bean name="setLocaleForm"
|
||||
type="org.apache.webapp.admin.SetLocaleForm"/>
|
||||
|
||||
<!-- ============= Server Module ============= -->
|
||||
|
||||
<form-bean name="serverForm"
|
||||
type="org.apache.webapp.admin.server.ServerForm"/>
|
||||
|
||||
<!-- ============= Service Module ============= -->
|
||||
|
||||
<form-bean name="serviceForm"
|
||||
type="org.apache.webapp.admin.service.ServiceForm"/>
|
||||
|
||||
<form-bean name="servicesForm"
|
||||
type="org.apache.webapp.admin.service.ServicesForm"/>
|
||||
|
||||
<!-- ============= Host Module ============= -->
|
||||
|
||||
<form-bean name="hostForm"
|
||||
type="org.apache.webapp.admin.host.HostForm"/>
|
||||
|
||||
<form-bean name="hostsForm"
|
||||
type="org.apache.webapp.admin.host.HostsForm"/>
|
||||
|
||||
<form-bean name="aliasForm"
|
||||
type="org.apache.webapp.admin.host.AliasForm"/>
|
||||
|
||||
<form-bean name="aliasesForm"
|
||||
type="org.apache.webapp.admin.host.AliasesForm"/>
|
||||
|
||||
<!-- ============= Realm Module ============= -->
|
||||
|
||||
<form-bean name="dataSourceRealmForm"
|
||||
type="org.apache.webapp.admin.realm.DataSourceRealmForm"/>
|
||||
|
||||
<form-bean name="jdbcRealmForm"
|
||||
type="org.apache.webapp.admin.realm.JDBCRealmForm"/>
|
||||
|
||||
<form-bean name="jndiRealmForm"
|
||||
type="org.apache.webapp.admin.realm.JNDIRealmForm"/>
|
||||
|
||||
<form-bean name="memoryRealmForm"
|
||||
type="org.apache.webapp.admin.realm.MemoryRealmForm"/>
|
||||
|
||||
<form-bean name="userDatabaseRealmForm"
|
||||
type="org.apache.webapp.admin.realm.UserDatabaseRealmForm"/>
|
||||
|
||||
<form-bean name="realmsForm"
|
||||
type="org.apache.webapp.admin.realm.RealmsForm"/>
|
||||
|
||||
<!-- ============= Context Module ============= -->
|
||||
|
||||
<form-bean name="contextForm"
|
||||
type="org.apache.webapp.admin.context.ContextForm"/>
|
||||
|
||||
<form-bean name="contextsForm"
|
||||
type="org.apache.webapp.admin.context.ContextsForm"/>
|
||||
|
||||
<!-- ============= DefaultContext Module ============= -->
|
||||
|
||||
<!-- ============= Connector Module ============= -->
|
||||
|
||||
<form-bean name="connectorForm"
|
||||
type="org.apache.webapp.admin.connector.ConnectorForm"/>
|
||||
|
||||
<form-bean name="connectorsForm"
|
||||
type="org.apache.webapp.admin.connector.ConnectorsForm"/>
|
||||
|
||||
<!-- ============= Valve Module ============= -->
|
||||
|
||||
<form-bean name="accessLogValveForm"
|
||||
type="org.apache.webapp.admin.valve.AccessLogValveForm"/>
|
||||
|
||||
<form-bean name="remoteAddrValveForm"
|
||||
type="org.apache.webapp.admin.valve.RemoteAddrValveForm"/>
|
||||
|
||||
<form-bean name="remoteHostValveForm"
|
||||
type="org.apache.webapp.admin.valve.RemoteHostValveForm"/>
|
||||
|
||||
<form-bean name="requestDumperValveForm"
|
||||
type="org.apache.webapp.admin.valve.RequestDumperValveForm"/>
|
||||
|
||||
<form-bean name="singleSignOnValveForm"
|
||||
type="org.apache.webapp.admin.valve.SingleSignOnValveForm"/>
|
||||
|
||||
<form-bean name="valvesForm"
|
||||
type="org.apache.webapp.admin.valve.ValvesForm"/>
|
||||
|
||||
<!-- ========== Resources Module ========== -->
|
||||
|
||||
<form-bean name="envEntryForm"
|
||||
type="org.apache.webapp.admin.resources.EnvEntryForm"/>
|
||||
|
||||
<form-bean name="envEntriesForm"
|
||||
type="org.apache.webapp.admin.resources.EnvEntriesForm"/>
|
||||
|
||||
<form-bean name="userDatabaseForm"
|
||||
type="org.apache.webapp.admin.resources.UserDatabaseForm"/>
|
||||
|
||||
<form-bean name="userDatabasesForm"
|
||||
type="org.apache.webapp.admin.resources.UserDatabasesForm"/>
|
||||
|
||||
<form-bean name="dataSourceForm"
|
||||
type="org.apache.webapp.admin.resources.DataSourceForm"/>
|
||||
|
||||
<form-bean name="dataSourcesForm"
|
||||
type="org.apache.webapp.admin.resources.DataSourcesForm"/>
|
||||
|
||||
<form-bean name="mailSessionForm"
|
||||
type="org.apache.webapp.admin.resources.MailSessionForm"/>
|
||||
|
||||
<form-bean name="mailSessionsForm"
|
||||
type="org.apache.webapp.admin.resources.MailSessionsForm"/>
|
||||
|
||||
<form-bean name="resourceLinkForm"
|
||||
type="org.apache.webapp.admin.resources.ResourceLinkForm"/>
|
||||
|
||||
<form-bean name="resourceLinksForm"
|
||||
type="org.apache.webapp.admin.resources.ResourceLinksForm"/>
|
||||
|
||||
<!-- ========== User Database Module ========== -->
|
||||
|
||||
<form-bean name="databaseForm"
|
||||
type="org.apache.webapp.admin.users.BaseForm"/>
|
||||
|
||||
<form-bean name="groupForm"
|
||||
type="org.apache.webapp.admin.users.GroupForm"/>
|
||||
|
||||
<form-bean name="groupsForm"
|
||||
type="org.apache.webapp.admin.users.GroupsForm"/>
|
||||
|
||||
<form-bean name="roleForm"
|
||||
type="org.apache.webapp.admin.users.RoleForm"/>
|
||||
|
||||
<form-bean name="rolesForm"
|
||||
type="org.apache.webapp.admin.users.RolesForm"/>
|
||||
|
||||
<form-bean name="userForm"
|
||||
type="org.apache.webapp.admin.users.UserForm"/>
|
||||
|
||||
<form-bean name="usersForm"
|
||||
type="org.apache.webapp.admin.users.UsersForm"/>
|
||||
|
||||
<!-- ========== ==================== ========== -->
|
||||
|
||||
|
||||
</form-beans>
|
||||
|
||||
|
||||
<!-- ========== Global Forward Definitions ============================== -->
|
||||
|
||||
<global-forwards>
|
||||
|
||||
<forward name="Dump Registry Results"
|
||||
path="/dumpRegistry.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="Dump Server Results"
|
||||
path="/dumpServer.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="Main Menu"
|
||||
path="/index.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="Tree Control Test"
|
||||
path="/tree-control-test.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="Save Successful"
|
||||
path="/saved.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="Save Unsuccessful"
|
||||
path="/savefail.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="Blank"
|
||||
path="/blank.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="User"
|
||||
path="/user.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<!-- ============ Server Module ============== -->
|
||||
|
||||
<forward name="Server"
|
||||
path="/server/server.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<!-- ============ Service Module ============== -->
|
||||
|
||||
<forward name="Service"
|
||||
path="/service/service.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="Services"
|
||||
path="/service/services.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<!-- ============ Host Module ============== -->
|
||||
|
||||
<forward name="Host"
|
||||
path="/host/host.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="Hosts"
|
||||
path="/host/hosts.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="Alias"
|
||||
path="/host/alias.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="Aliases"
|
||||
path="/host/aliases.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
|
||||
<!-- ============ Context Module ============== -->
|
||||
|
||||
<forward name="Context"
|
||||
path="/context/context.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="Contexts"
|
||||
path="/context/contexts.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<!-- ============ DefaultContext Module ============== -->
|
||||
|
||||
<!-- ============ Connector Module ============== -->
|
||||
|
||||
<forward name="Connector"
|
||||
path="/connector/connector.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="Connectors"
|
||||
path="/connector/connectors.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<!-- ============ Realm Module ============== -->
|
||||
|
||||
<forward name="DataSourceRealm"
|
||||
path="/realm/dataSourceRealm.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="JDBCRealm"
|
||||
path="/realm/jdbcRealm.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="JNDIRealm"
|
||||
path="/realm/jndiRealm.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="MemoryRealm"
|
||||
path="/realm/memoryRealm.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="UserDatabaseRealm"
|
||||
path="/realm/userDatabaseRealm.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="Realms"
|
||||
path="/realm/realms.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<!-- ============ Context Module ============== -->
|
||||
|
||||
<forward name="Context"
|
||||
path="/context/context.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="Contexts"
|
||||
path="/context/contexts.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<!-- ============ Valve Module ============== -->
|
||||
|
||||
<forward name="AccessLogValve"
|
||||
path="/valve/accessLogValve.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="RemoteAddrValve"
|
||||
path="/valve/remoteAddrValve.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="RemoteHostValve"
|
||||
path="/valve/remoteHostValve.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="RequestDumperValve"
|
||||
path="/valve/requestDumperValve.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="SingleSignOn"
|
||||
path="/valve/singleSignOnValve.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="Valves"
|
||||
path="/valve/valves.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<!-- ========== Resources Module ========== -->
|
||||
|
||||
<forward name="EnvEntry"
|
||||
path="/resources/envEntry.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="EnvEntries Delete List"
|
||||
path="/resources/deleteEnvEntries.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="EnvEntries List"
|
||||
path="/resources/listEnvEntries.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="EnvEntries List Setup"
|
||||
path="/resources/listEnvEntries.do?forward=EnvEntries+List"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="UserDatabase"
|
||||
path="/resources/userDatabase.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="UserDatabases Delete List"
|
||||
path="/resources/deleteUserDatabases.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="UserDatabases List"
|
||||
path="/resources/listUserDatabases.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="UserDatabases List Setup"
|
||||
path="/resources/listUserDatabases.do?forward=UserDatabases+List"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="DataSource"
|
||||
path="/resources/dataSource.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="DataSources Delete List"
|
||||
path="/resources/deleteDataSources.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="DataSources List"
|
||||
path="/resources/listDataSources.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="DataSources List Setup"
|
||||
path="/resources/listDataSources.do?forward=DataSources+List"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="MailSession"
|
||||
path="/resources/mailSession.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="MailSessions Delete List"
|
||||
path="/resources/deleteMailSessions.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="MailSessions List"
|
||||
path="/resources/listMailSessions.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="MailSessions List Setup"
|
||||
path="/resources/listMailSessions.do?forward=MailSessions+List"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="ResourceLink"
|
||||
path="/resources/resourceLink.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="ResourceLinks Delete List"
|
||||
path="/resources/deleteResourceLinks.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="ResourceLinks List"
|
||||
path="/resources/listResourceLinks.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="ResourceLinks List Setup"
|
||||
path="/resources/listResourceLinks.do?forward=ResourceLinks+List"
|
||||
redirect="false"/>
|
||||
|
||||
<!-- ========== User Database Module ========== -->
|
||||
|
||||
<forward name="Group"
|
||||
path="/users/group.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="Groups Delete List"
|
||||
path="/users/deleteGroups.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="Groups List"
|
||||
path="/users/listGroups.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="Groups List Setup"
|
||||
path="/users/listGroups.do?forward=Groups+List"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="Role"
|
||||
path="/users/role.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="Roles Delete List"
|
||||
path="/users/deleteRoles.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="Roles List"
|
||||
path="/users/listRoles.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="Roles List Setup"
|
||||
path="/users/listRoles.do?forward=Roles+List"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="User"
|
||||
path="/users/user.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="Users Delete List"
|
||||
path="/users/deleteUsers.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="Users List"
|
||||
path="/users/listUsers.jsp"
|
||||
redirect="false"/>
|
||||
|
||||
<forward name="Users List Setup"
|
||||
path="/users/listUsers.do?forward=Users+List"
|
||||
redirect="false"/>
|
||||
|
||||
<!-- ========== ==================== ========== -->
|
||||
|
||||
|
||||
</global-forwards>
|
||||
|
||||
|
||||
<!-- ========== Action Mapping Definitions ============================== -->
|
||||
|
||||
<action-mappings>
|
||||
|
||||
<!-- Dump registry information (debugging) -->
|
||||
<action path="/dumpRegistry"
|
||||
type="org.apache.webapp.admin.DumpRegistryAction"/>
|
||||
|
||||
<!-- Dump MBean server information (debugging) -->
|
||||
<action path="/dumpServer"
|
||||
type="org.apache.webapp.admin.DumpServerAction"/>
|
||||
|
||||
<!-- Set up Tree datastructure -->
|
||||
<action path="/setUpTree"
|
||||
type="org.apache.webapp.admin.SetUpTreeAction">
|
||||
<forward name="SetUpTree"
|
||||
path="/tree-control-test.jsp"
|
||||
redirect="true"/>
|
||||
</action>
|
||||
|
||||
<!-- Log out of the application -->
|
||||
<action path="/logOut"
|
||||
type="org.apache.webapp.admin.LogOutAction">
|
||||
<forward name="Main Menu"
|
||||
path="/index.jsp"
|
||||
redirect="true"/>
|
||||
</action>
|
||||
|
||||
<!-- Save current settings to server.xml -->
|
||||
<action path="/commitChanges"
|
||||
type="org.apache.webapp.admin.CommitChangesAction">
|
||||
<forward name="Banner"
|
||||
path="/banner.jsp"
|
||||
redirect="true"/>
|
||||
</action>
|
||||
|
||||
<!-- Process a set-locale action -->
|
||||
<action path="/setLocale"
|
||||
type="org.apache.webapp.admin.SetLocaleAction"
|
||||
name="setLocaleForm"
|
||||
scope="session">
|
||||
</action>
|
||||
|
||||
<!-- Tree control test action -->
|
||||
<action path="/treeControlTest"
|
||||
type="org.apache.webapp.admin.TreeControlTestAction"/>
|
||||
|
||||
<!-- ============= Server Module ============== -->
|
||||
|
||||
<!-- Set up Edit Server transaction -->
|
||||
<action path="/EditServer"
|
||||
type="org.apache.webapp.admin.server.EditServerAction">
|
||||
</action>
|
||||
|
||||
<!-- Perform Save Server transaction -->
|
||||
<action path="/SaveServer"
|
||||
type="org.apache.webapp.admin.server.SaveServerAction"
|
||||
name="serverForm"
|
||||
input="/server/server.jsp"
|
||||
scope="session"/>
|
||||
|
||||
<!-- ============= Service Module ============== -->
|
||||
|
||||
<!-- Set up Add Service transaction -->
|
||||
<action path="/AddService"
|
||||
type="org.apache.webapp.admin.service.AddServiceAction">
|
||||
</action>
|
||||
|
||||
<!-- Set up Delete Services transaction -->
|
||||
<action path="/DeleteService"
|
||||
type="org.apache.webapp.admin.service.DeleteServiceAction"
|
||||
name="servicesForm"
|
||||
scope="request"/>
|
||||
|
||||
<!-- Perform Delete Services transaction -->
|
||||
<action path="/DeleteServices"
|
||||
type="org.apache.webapp.admin.service.DeleteServicesAction"
|
||||
name="servicesForm"
|
||||
scope="request"/>
|
||||
|
||||
<!-- Set up Edit Service transaction -->
|
||||
<action path="/EditService"
|
||||
type="org.apache.webapp.admin.service.EditServiceAction">
|
||||
</action>
|
||||
|
||||
<!-- Perform Save Service transaction -->
|
||||
<action path="/SaveService"
|
||||
type="org.apache.webapp.admin.service.SaveServiceAction"
|
||||
name="serviceForm"
|
||||
input="/service/service.jsp"
|
||||
scope="session"/>
|
||||
|
||||
<!-- ============= Host Module ============== -->
|
||||
|
||||
<!-- Set up Add Host transaction -->
|
||||
<action path="/AddHost"
|
||||
type="org.apache.webapp.admin.host.AddHostAction">
|
||||
</action>
|
||||
|
||||
<!-- Set up Delete Hosts transaction -->
|
||||
<action path="/DeleteHost"
|
||||
type="org.apache.webapp.admin.host.DeleteHostAction"
|
||||
name="hostsForm"
|
||||
scope="request"/>
|
||||
|
||||
<!-- Perform Delete Hosts transaction -->
|
||||
<action path="/DeleteHosts"
|
||||
type="org.apache.webapp.admin.host.DeleteHostsAction"
|
||||
name="hostsForm"
|
||||
scope="request"/>
|
||||
|
||||
<!-- Set up Edit Host transaction -->
|
||||
<action path="/EditHost"
|
||||
type="org.apache.webapp.admin.host.EditHostAction">
|
||||
</action>
|
||||
|
||||
<!-- Perform Save Host transaction -->
|
||||
<action path="/SaveHost"
|
||||
type="org.apache.webapp.admin.host.SaveHostAction"
|
||||
name="hostForm"
|
||||
input="/host/host.jsp"
|
||||
scope="session"/>
|
||||
|
||||
<!-- Set up Add Alias transaction -->
|
||||
<action path="/AddAlias"
|
||||
type="org.apache.webapp.admin.host.AddAliasAction">
|
||||
</action>
|
||||
|
||||
<!-- Perform Delete Aliases transaction -->
|
||||
<action path="/DeleteAlias"
|
||||
type="org.apache.webapp.admin.host.DeleteAliasAction"
|
||||
name="aliasesForm"
|
||||
scope="request"/>
|
||||
|
||||
<!-- Perform Delete Aliases transaction -->
|
||||
<action path="/DeleteAliases"
|
||||
type="org.apache.webapp.admin.host.DeleteAliasesAction"
|
||||
name="aliasesForm"
|
||||
scope="request"/>
|
||||
|
||||
<!-- Perform Save Host transaction -->
|
||||
<action path="/SaveAlias"
|
||||
type="org.apache.webapp.admin.host.SaveAliasAction"
|
||||
name="aliasForm"
|
||||
input="/host/alias.jsp"
|
||||
scope="session"/>
|
||||
|
||||
<!-- ============= Realm Module ============== -->
|
||||
|
||||
<!-- Set up Add Realm transaction -->
|
||||
<action path="/AddRealm"
|
||||
type="org.apache.webapp.admin.realm.AddRealmAction">
|
||||
</action>
|
||||
|
||||
<!-- Set up Add Realm transaction -->
|
||||
<action path="/realm/AddRealm"
|
||||
type="org.apache.webapp.admin.realm.AddRealmAction">
|
||||
</action>
|
||||
|
||||
<!-- Set up Delete Realms transaction -->
|
||||
<action path="/DeleteRealm"
|
||||
type="org.apache.webapp.admin.realm.DeleteRealmAction"
|
||||
name="realmsForm"
|
||||
scope="request"/>
|
||||
|
||||
<!-- Perform Delete Realms transaction -->
|
||||
<action path="/DeleteRealms"
|
||||
type="org.apache.webapp.admin.realm.DeleteRealmsAction"
|
||||
name="realmsForm"
|
||||
scope="request"/>
|
||||
|
||||
<!-- Set up Edit Realm transaction (generic) -->
|
||||
<action path="/EditRealm"
|
||||
type="org.apache.webapp.admin.realm.EditRealmAction">
|
||||
</action>
|
||||
|
||||
<!-- Perform Save UserDatabase Realm transaction -->
|
||||
<action path="/SaveUserDatabaseRealm"
|
||||
type="org.apache.webapp.admin.realm.SaveUserDatabaseRealmAction"
|
||||
name="userDatabaseRealmForm"
|
||||
input="/realm/userDatabaseRealm.jsp"
|
||||
scope="session"/>
|
||||
|
||||
<!-- Perform Save DataSource Realm transaction -->
|
||||
<action path="/SaveDataSourceRealm"
|
||||
type="org.apache.webapp.admin.realm.SaveDataSourceRealmAction"
|
||||
name="dataSourceRealmForm"
|
||||
input="/realm/dataSourceRealm.jsp"
|
||||
scope="session"/>
|
||||
|
||||
<!-- Perform Save JDBC Realm transaction -->
|
||||
<action path="/SaveJDBCRealm"
|
||||
type="org.apache.webapp.admin.realm.SaveJDBCRealmAction"
|
||||
name="jdbcRealmForm"
|
||||
input="/realm/jdbcRealm.jsp"
|
||||
scope="session"/>
|
||||
|
||||
<!-- Perform Save JNDI Realm transaction -->
|
||||
<action path="/SaveJNDIRealm"
|
||||
type="org.apache.webapp.admin.realm.SaveJNDIRealmAction"
|
||||
name="jndiRealmForm"
|
||||
input="/realm/jndiRealm.jsp"
|
||||
scope="session"/>
|
||||
|
||||
<!-- Perform Save Memory transaction -->
|
||||
<action path="/SaveMemoryRealm"
|
||||
type="org.apache.webapp.admin.realm.SaveMemoryRealmAction"
|
||||
name="memoryRealmForm"
|
||||
input="/realm/memoryRealm.jsp"
|
||||
scope="session"/>
|
||||
|
||||
<!-- ============= Context Module ============== -->
|
||||
|
||||
<!-- Set up Add Context transaction -->
|
||||
<action path="/AddContext"
|
||||
type="org.apache.webapp.admin.context.AddContextAction">
|
||||
</action>
|
||||
|
||||
<!-- Set up Delete Contexts transaction -->
|
||||
<action path="/DeleteContext"
|
||||
type="org.apache.webapp.admin.context.DeleteContextAction"
|
||||
name="contextsForm"
|
||||
scope="request"/>
|
||||
|
||||
<!-- Perform Delete Contexts transaction -->
|
||||
<action path="/DeleteContexts"
|
||||
type="org.apache.webapp.admin.context.DeleteContextsAction"
|
||||
name="contextsForm"
|
||||
scope="request"/>
|
||||
|
||||
<!-- Set up Edit Context transaction -->
|
||||
<action path="/EditContext"
|
||||
type="org.apache.webapp.admin.context.EditContextAction">
|
||||
</action>
|
||||
|
||||
<!-- Perform Save Context transaction -->
|
||||
<action path="/SaveContext"
|
||||
type="org.apache.webapp.admin.context.SaveContextAction"
|
||||
name="contextForm"
|
||||
input="/context/context.jsp"
|
||||
scope="session"/>
|
||||
|
||||
<!-- ============= DefaultContext Module ============== -->
|
||||
|
||||
<!-- ============= Connector Module ============== -->
|
||||
|
||||
<!-- Set up Add Connector transaction -->
|
||||
<action path="/AddConnector"
|
||||
type="org.apache.webapp.admin.connector.AddConnectorAction">
|
||||
</action>
|
||||
|
||||
<!-- Set up Add Connector transaction -->
|
||||
<action path="/connector/AddConnector"
|
||||
type="org.apache.webapp.admin.connector.AddConnectorAction">
|
||||
</action>
|
||||
|
||||
<!-- Set up Delete Connectors transaction -->
|
||||
<action path="/DeleteConnector"
|
||||
type="org.apache.webapp.admin.connector.DeleteConnectorAction"
|
||||
name="connectorsForm"
|
||||
scope="request"/>
|
||||
|
||||
<!-- Perform Delete Connectors transaction -->
|
||||
<action path="/DeleteConnectors"
|
||||
type="org.apache.webapp.admin.connector.DeleteConnectorsAction"
|
||||
name="connectorsForm"
|
||||
scope="request"/>
|
||||
|
||||
<!-- Set up Edit Connector transaction -->
|
||||
<action path="/EditConnector"
|
||||
type="org.apache.webapp.admin.connector.EditConnectorAction">
|
||||
</action>
|
||||
|
||||
<!-- Perform Save Connector transaction -->
|
||||
<action path="/SaveConnector"
|
||||
type="org.apache.webapp.admin.connector.SaveConnectorAction"
|
||||
name="connectorForm"
|
||||
input="/connector/connector.jsp"
|
||||
scope="session"/>
|
||||
|
||||
<!-- ============= Valve Module ============== -->
|
||||
|
||||
<!-- Set up Add Valve transaction -->
|
||||
<action path="/AddValve"
|
||||
type="org.apache.webapp.admin.valve.AddValveAction">
|
||||
</action>
|
||||
|
||||
<!-- Set up Add Valve transaction -->
|
||||
<action path="/valve/AddValve"
|
||||
type="org.apache.webapp.admin.valve.AddValveAction">
|
||||
</action>
|
||||
|
||||
<!-- Set up Delete Valves transaction -->
|
||||
<action path="/DeleteValve"
|
||||
type="org.apache.webapp.admin.valve.DeleteValveAction"
|
||||
name="valvesForm"
|
||||
scope="request"/>
|
||||
|
||||
<!-- Perform Delete Valves transaction -->
|
||||
<action path="/DeleteValves"
|
||||
type="org.apache.webapp.admin.valve.DeleteValvesAction"
|
||||
name="valvesForm"
|
||||
scope="request"/>
|
||||
|
||||
<!-- Set up Edit Valve transaction (generic) -->
|
||||
<action path="/EditValve"
|
||||
type="org.apache.webapp.admin.valve.EditValveAction">
|
||||
</action>
|
||||
|
||||
<!-- Perform Save AccessLog Valve transaction -->
|
||||
<action path="/SaveAccessLogValve"
|
||||
type="org.apache.webapp.admin.valve.SaveAccessLogValveAction"
|
||||
name="accessLogValveForm"
|
||||
input="/valve/accessLogValve.jsp"
|
||||
scope="session"/>
|
||||
|
||||
<!-- Perform Save Remote Addr Valve transaction -->
|
||||
<action path="/SaveRemoteAddrValve"
|
||||
type="org.apache.webapp.admin.valve.SaveRemoteAddrValveAction"
|
||||
name="remoteAddrValveForm"
|
||||
input="/valve/remoteAddrValve.jsp"
|
||||
scope="session"/>
|
||||
|
||||
<!-- Perform Save Remote Host Valve transaction -->
|
||||
<action path="/SaveRemoteHostValve"
|
||||
type="org.apache.webapp.admin.valve.SaveRemoteHostValveAction"
|
||||
name="remoteHostValveForm"
|
||||
input="/valve/remoteHostValve.jsp"
|
||||
scope="session"/>
|
||||
|
||||
<!-- Perform Save Request Dumper Valve transaction -->
|
||||
<action path="/SaveRequestDumperValve"
|
||||
type="org.apache.webapp.admin.valve.SaveRequestDumperValveAction"
|
||||
name="requestDumperValveForm"
|
||||
input="/valve/requestDumperValve.jsp"
|
||||
scope="session"/>
|
||||
|
||||
<!-- Perform Save Single Sign On Valve transaction -->
|
||||
<action path="/SaveSingleSignOn"
|
||||
type="org.apache.webapp.admin.valve.SaveSingleSignOnValveAction"
|
||||
name="singleSignOnValveForm"
|
||||
input="/valve/singleSignOnValve.jsp"
|
||||
scope="session"/>
|
||||
|
||||
<!-- ========== Resources Module ========== -->
|
||||
|
||||
<action path="/resources/deleteEnvEntries"
|
||||
name="envEntriesForm"
|
||||
scope="request"
|
||||
type="org.apache.webapp.admin.resources.DeleteEnvEntriesAction"/>
|
||||
|
||||
<action path="/resources/deleteUserDatabases"
|
||||
name="userDatabasesForm"
|
||||
scope="request"
|
||||
type="org.apache.webapp.admin.resources.DeleteUserDatabasesAction"/>
|
||||
|
||||
<action path="/resources/deleteDataSources"
|
||||
name="dataSourcesForm"
|
||||
scope="request"
|
||||
type="org.apache.webapp.admin.resources.DeleteDataSourcesAction"/>
|
||||
|
||||
<action path="/resources/deleteMailSessions"
|
||||
name="mailSessionsForm"
|
||||
scope="request"
|
||||
type="org.apache.webapp.admin.resources.DeleteMailSessionsAction"/>
|
||||
|
||||
<action path="/resources/deleteResourceLinks"
|
||||
name="resourceLinksForm"
|
||||
scope="request"
|
||||
type="org.apache.webapp.admin.resources.DeleteResourceLinksAction"/>
|
||||
|
||||
<action path="/resources/listEnvEntries"
|
||||
name="envEntriesForm"
|
||||
scope="request"
|
||||
type="org.apache.webapp.admin.resources.ListEnvEntriesAction"/>
|
||||
|
||||
<action path="/resources/listUserDatabases"
|
||||
name="userDatabasesForm"
|
||||
scope="request"
|
||||
type="org.apache.webapp.admin.resources.ListUserDatabasesAction"/>
|
||||
|
||||
<action path="/resources/listDataSources"
|
||||
name="dataSourcesForm"
|
||||
scope="request"
|
||||
type="org.apache.webapp.admin.resources.ListDataSourcesAction"/>
|
||||
|
||||
<action path="/resources/listMailSessions"
|
||||
name="mailSessionsForm"
|
||||
scope="request"
|
||||
type="org.apache.webapp.admin.resources.ListMailSessionsAction"/>
|
||||
|
||||
<action path="/resources/listResourceLinks"
|
||||
name="resourceLinksForm"
|
||||
scope="request"
|
||||
type="org.apache.webapp.admin.resources.ListResourceLinksAction"/>
|
||||
|
||||
<action path="/resources/saveEnvEntry"
|
||||
input="/resources/envEntry.jsp"
|
||||
name="envEntryForm"
|
||||
scope="request"
|
||||
type="org.apache.webapp.admin.resources.SaveEnvEntryAction"/>
|
||||
|
||||
<action path="/resources/saveUserDatabase"
|
||||
input="/resources/userDatabase.jsp"
|
||||
name="userDatabaseForm"
|
||||
scope="request"
|
||||
type="org.apache.webapp.admin.resources.SaveUserDatabaseAction"/>
|
||||
|
||||
<action path="/resources/saveDataSource"
|
||||
input="/resources/dataSource.jsp"
|
||||
name="dataSourceForm"
|
||||
scope="request"
|
||||
type="org.apache.webapp.admin.resources.SaveDataSourceAction"/>
|
||||
|
||||
<action path="/resources/saveMailSession"
|
||||
input="/resources/mailSession.jsp"
|
||||
name="mailSessionForm"
|
||||
scope="request"
|
||||
type="org.apache.webapp.admin.resources.SaveMailSessionAction"/>
|
||||
|
||||
<action path="/resources/saveResourceLink"
|
||||
input="/resources/resourceLink.jsp"
|
||||
name="resourceLinkForm"
|
||||
scope="request"
|
||||
type="org.apache.webapp.admin.resources.SaveResourceLinkAction"/>
|
||||
|
||||
<action path="/resources/setUpEnvEntry"
|
||||
type="org.apache.webapp.admin.resources.SetUpEnvEntryAction"/>
|
||||
|
||||
<action path="/resources/setUpUserDatabase"
|
||||
type="org.apache.webapp.admin.resources.SetUpUserDatabaseAction"/>
|
||||
|
||||
<action path="/resources/setUpDataSource"
|
||||
type="org.apache.webapp.admin.resources.SetUpDataSourceAction"/>
|
||||
|
||||
<action path="/resources/setUpMailSession"
|
||||
type="org.apache.webapp.admin.resources.SetUpMailSessionAction"/>
|
||||
|
||||
<action path="/resources/setUpResourceLink"
|
||||
type="org.apache.webapp.admin.resources.SetUpResourceLinkAction"/>
|
||||
|
||||
<!-- ========== User Database Module ========== -->
|
||||
|
||||
<action path="/users/deleteGroups"
|
||||
name="groupsForm"
|
||||
scope="request"
|
||||
type="org.apache.webapp.admin.users.DeleteGroupsAction"/>
|
||||
|
||||
<action path="/users/deleteRoles"
|
||||
name="rolesForm"
|
||||
scope="request"
|
||||
type="org.apache.webapp.admin.users.DeleteRolesAction"/>
|
||||
|
||||
<action path="/users/deleteUsers"
|
||||
name="usersForm"
|
||||
scope="request"
|
||||
type="org.apache.webapp.admin.users.DeleteUsersAction"/>
|
||||
|
||||
<action path="/users/listGroups"
|
||||
name="groupsForm"
|
||||
scope="request"
|
||||
type="org.apache.webapp.admin.users.ListGroupsAction"/>
|
||||
|
||||
<action path="/users/listRoles"
|
||||
name="rolesForm"
|
||||
scope="request"
|
||||
type="org.apache.webapp.admin.users.ListRolesAction"/>
|
||||
|
||||
<action path="/users/listUsers"
|
||||
name="usersForm"
|
||||
scope="request"
|
||||
type="org.apache.webapp.admin.users.ListUsersAction"/>
|
||||
|
||||
<action path="/users/saveGroup"
|
||||
input="/users/group.jsp"
|
||||
name="groupForm"
|
||||
scope="request"
|
||||
type="org.apache.webapp.admin.users.SaveGroupAction"/>
|
||||
|
||||
<action path="/users/saveRole"
|
||||
input="/users/role.jsp"
|
||||
name="roleForm"
|
||||
scope="request"
|
||||
type="org.apache.webapp.admin.users.SaveRoleAction"/>
|
||||
|
||||
<action path="/users/saveUser"
|
||||
input="/users/user.jsp"
|
||||
name="userForm"
|
||||
scope="request"
|
||||
type="org.apache.webapp.admin.users.SaveUserAction"/>
|
||||
|
||||
<action path="/users/setUpGroup"
|
||||
type="org.apache.webapp.admin.users.SetUpGroupAction"/>
|
||||
|
||||
<action path="/users/setUpRole"
|
||||
type="org.apache.webapp.admin.users.SetUpRoleAction"/>
|
||||
|
||||
<action path="/users/setUpUser"
|
||||
type="org.apache.webapp.admin.users.SetUpUserAction"/>
|
||||
|
||||
<!-- ========== ==================== ========== -->
|
||||
|
||||
|
||||
</action-mappings>
|
||||
|
||||
<controller locale="true" nocache="true" />
|
||||
|
||||
<message-resources parameter="org.apache.webapp.admin.ApplicationResources" />
|
||||
|
||||
</struts-config>
|
772
tomcat/server/webapps/admin/WEB-INF/web.xml
Normal file
|
@ -0,0 +1,772 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
|
||||
version="2.4">
|
||||
|
||||
<display-name>Tomcat Administration Application</display-name>
|
||||
<description>
|
||||
Tomcat HTML based administration web application.
|
||||
</description>
|
||||
|
||||
<!-- Example filter to set character encoding on each request.
|
||||
Uncomment this filter definition and the mapping to use
|
||||
the filter to decode post and get parameters -->
|
||||
|
||||
<filter>
|
||||
<filter-name>Set Character Encoding</filter-name>
|
||||
<filter-class>org.apache.webapp.admin.filters.SetCharacterEncodingFilter</filter-class>
|
||||
<init-param>
|
||||
<param-name>encoding</param-name>
|
||||
<param-value>UTF8</param-value>
|
||||
</init-param>
|
||||
</filter>
|
||||
|
||||
<!-- Example filter mapping to apply the "Set Character Encoding" filter
|
||||
to *all* requests processed by this web application -->
|
||||
|
||||
<filter-mapping>
|
||||
<filter-name>Set Character Encoding</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
<!-- Action Servlet Configuration -->
|
||||
<servlet>
|
||||
<servlet-name>action</servlet-name>
|
||||
<servlet-class>
|
||||
org.apache.webapp.admin.ApplicationServlet
|
||||
</servlet-class>
|
||||
<!-- Deprecated
|
||||
<init-param>
|
||||
<param-name>application</param-name>
|
||||
<param-value>
|
||||
org.apache.webapp.admin.ApplicationResources
|
||||
</param-value>
|
||||
</init-param>
|
||||
-->
|
||||
<init-param>
|
||||
<param-name>config</param-name>
|
||||
<param-value>/WEB-INF/struts-config.xml</param-value>
|
||||
</init-param>
|
||||
<!-- Deprecated
|
||||
<init-param>
|
||||
<param-name>debug</param-name>
|
||||
<param-value>0</param-value>
|
||||
</init-param>
|
||||
-->
|
||||
<init-param>
|
||||
<param-name>detail</param-name>
|
||||
<param-value>0</param-value>
|
||||
</init-param>
|
||||
<!-- Deprecated
|
||||
<init-param>
|
||||
<param-name>locale</param-name>
|
||||
<param-value>true</param-value>
|
||||
</init-param>
|
||||
-->
|
||||
<!-- Deprecated
|
||||
<init-param>
|
||||
<param-name>nocache</param-name>
|
||||
<param-value>true</param-value>
|
||||
</init-param>
|
||||
-->
|
||||
<init-param>
|
||||
<param-name>validate</param-name>
|
||||
<param-value>false</param-value>
|
||||
</init-param>
|
||||
<!-- Label to be displayed for rootnode. If absent, rootnode is not rendered -->
|
||||
<!--
|
||||
<init-param>
|
||||
<param-name>rootnodename</param-name>
|
||||
<param-value>Tomcat Root</param-value>
|
||||
</init-param>
|
||||
-->
|
||||
<init-param>
|
||||
<param-name>treebuilders</param-name>
|
||||
<param-value>
|
||||
org.apache.webapp.admin.TomcatTreeBuilder,
|
||||
org.apache.webapp.admin.resources.ResourcesTreeBuilder,
|
||||
org.apache.webapp.admin.users.UsersTreeBuilder
|
||||
</param-value>
|
||||
</init-param>
|
||||
<init-param>
|
||||
<param-name>domain</param-name>
|
||||
<param-value>Catalina</param-value>
|
||||
</init-param>
|
||||
</servlet>
|
||||
|
||||
<!-- Action Servlet Mapping -->
|
||||
<!-- JSPC servlet mappings start -->
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.banner_jsp</servlet-name>
|
||||
<servlet-class>admin.banner_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.blank_jsp</servlet-name>
|
||||
<servlet-class>admin.blank_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.buttons_jsp</servlet-name>
|
||||
<servlet-class>admin.buttons_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.dumpRegistry_jsp</servlet-name>
|
||||
<servlet-class>admin.dumpRegistry_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.dumpServer_jsp</servlet-name>
|
||||
<servlet-class>admin.dumpServer_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.error_jsp</servlet-name>
|
||||
<servlet-class>admin.error_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.footer_jsp</servlet-name>
|
||||
<servlet-class>admin.footer_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.frameset_jsp</servlet-name>
|
||||
<servlet-class>admin.frameset_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.header_jsp</servlet-name>
|
||||
<servlet-class>admin.header_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.index_jsp</servlet-name>
|
||||
<servlet-class>admin.index_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.login_jsp</servlet-name>
|
||||
<servlet-class>admin.login_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.saved_jsp</servlet-name>
|
||||
<servlet-class>admin.saved_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.savefail_jsp</servlet-name>
|
||||
<servlet-class>admin.savefail_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.tree_002dcontrol_002dtest_jsp</servlet-name>
|
||||
<servlet-class>admin.tree_002dcontrol_002dtest_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.valve.accessLogValve_jsp</servlet-name>
|
||||
<servlet-class>admin.valve.accessLogValve_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.valve.remoteAddrValve_jsp</servlet-name>
|
||||
<servlet-class>admin.valve.remoteAddrValve_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.valve.remoteHostValve_jsp</servlet-name>
|
||||
<servlet-class>admin.valve.remoteHostValve_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.valve.requestDumperValve_jsp</servlet-name>
|
||||
<servlet-class>admin.valve.requestDumperValve_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.valve.singleSignOnValve_jsp</servlet-name>
|
||||
<servlet-class>admin.valve.singleSignOnValve_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.valve.valves_jsp</servlet-name>
|
||||
<servlet-class>admin.valve.valves_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.users.deleteGroups_jsp</servlet-name>
|
||||
<servlet-class>admin.users.deleteGroups_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.users.deleteRoles_jsp</servlet-name>
|
||||
<servlet-class>admin.users.deleteRoles_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.users.deleteUsers_jsp</servlet-name>
|
||||
<servlet-class>admin.users.deleteUsers_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.users.footer_jsp</servlet-name>
|
||||
<servlet-class>admin.users.footer_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.users.group_jsp</servlet-name>
|
||||
<servlet-class>admin.users.group_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.users.header_jsp</servlet-name>
|
||||
<servlet-class>admin.users.header_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.users.listGroups_jsp</servlet-name>
|
||||
<servlet-class>admin.users.listGroups_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.users.listRoles_jsp</servlet-name>
|
||||
<servlet-class>admin.users.listRoles_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.users.listUsers_jsp</servlet-name>
|
||||
<servlet-class>admin.users.listUsers_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.users.role_jsp</servlet-name>
|
||||
<servlet-class>admin.users.role_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.users.user_jsp</servlet-name>
|
||||
<servlet-class>admin.users.user_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.service.service_jsp</servlet-name>
|
||||
<servlet-class>admin.service.service_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.service.services_jsp</servlet-name>
|
||||
<servlet-class>admin.service.services_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.server.server_jsp</servlet-name>
|
||||
<servlet-class>admin.server.server_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.resources.dataSource_jsp</servlet-name>
|
||||
<servlet-class>admin.resources.dataSource_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.resources.deleteDataSources_jsp</servlet-name>
|
||||
<servlet-class>admin.resources.deleteDataSources_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.resources.deleteEnvEntries_jsp</servlet-name>
|
||||
<servlet-class>admin.resources.deleteEnvEntries_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.resources.deleteMailSessions_jsp</servlet-name>
|
||||
<servlet-class>admin.resources.deleteMailSessions_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.resources.deleteResourceLinks_jsp</servlet-name>
|
||||
<servlet-class>admin.resources.deleteResourceLinks_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.resources.deleteUserDatabases_jsp</servlet-name>
|
||||
<servlet-class>admin.resources.deleteUserDatabases_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.resources.envEntry_jsp</servlet-name>
|
||||
<servlet-class>admin.resources.envEntry_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.resources.listDataSources_jsp</servlet-name>
|
||||
<servlet-class>admin.resources.listDataSources_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.resources.listEnvEntries_jsp</servlet-name>
|
||||
<servlet-class>admin.resources.listEnvEntries_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.resources.listMailSessions_jsp</servlet-name>
|
||||
<servlet-class>admin.resources.listMailSessions_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.resources.listResourceLinks_jsp</servlet-name>
|
||||
<servlet-class>admin.resources.listResourceLinks_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.resources.listUserDatabases_jsp</servlet-name>
|
||||
<servlet-class>admin.resources.listUserDatabases_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.resources.mailSession_jsp</servlet-name>
|
||||
<servlet-class>admin.resources.mailSession_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.resources.resourceLink_jsp</servlet-name>
|
||||
<servlet-class>admin.resources.resourceLink_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.resources.userDatabase_jsp</servlet-name>
|
||||
<servlet-class>admin.resources.userDatabase_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.realm.dataSourceRealm_jsp</servlet-name>
|
||||
<servlet-class>admin.realm.dataSourceRealm_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.realm.jdbcRealm_jsp</servlet-name>
|
||||
<servlet-class>admin.realm.jdbcRealm_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.realm.jndiRealm_jsp</servlet-name>
|
||||
<servlet-class>admin.realm.jndiRealm_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.realm.memoryRealm_jsp</servlet-name>
|
||||
<servlet-class>admin.realm.memoryRealm_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.realm.realms_jsp</servlet-name>
|
||||
<servlet-class>admin.realm.realms_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.realm.userDatabaseRealm_jsp</servlet-name>
|
||||
<servlet-class>admin.realm.userDatabaseRealm_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.host.alias_jsp</servlet-name>
|
||||
<servlet-class>admin.host.alias_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.host.aliases_jsp</servlet-name>
|
||||
<servlet-class>admin.host.aliases_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.host.host_jsp</servlet-name>
|
||||
<servlet-class>admin.host.host_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.host.hosts_jsp</servlet-name>
|
||||
<servlet-class>admin.host.hosts_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.context.context_jsp</servlet-name>
|
||||
<servlet-class>admin.context.context_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.context.contexts_jsp</servlet-name>
|
||||
<servlet-class>admin.context.contexts_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.connector.connector_jsp</servlet-name>
|
||||
<servlet-class>admin.connector.connector_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.connector.connectors_jsp</servlet-name>
|
||||
<servlet-class>admin.connector.connectors_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.banner_jsp</servlet-name>
|
||||
<url-pattern>/banner.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.blank_jsp</servlet-name>
|
||||
<url-pattern>/blank.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.buttons_jsp</servlet-name>
|
||||
<url-pattern>/buttons.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.dumpRegistry_jsp</servlet-name>
|
||||
<url-pattern>/dumpRegistry.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.dumpServer_jsp</servlet-name>
|
||||
<url-pattern>/dumpServer.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.error_jsp</servlet-name>
|
||||
<url-pattern>/error.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.footer_jsp</servlet-name>
|
||||
<url-pattern>/footer.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.frameset_jsp</servlet-name>
|
||||
<url-pattern>/frameset.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.header_jsp</servlet-name>
|
||||
<url-pattern>/header.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.index_jsp</servlet-name>
|
||||
<url-pattern>/index.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.login_jsp</servlet-name>
|
||||
<url-pattern>/login.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.saved_jsp</servlet-name>
|
||||
<url-pattern>/saved.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.savefail_jsp</servlet-name>
|
||||
<url-pattern>/savefail.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.tree_002dcontrol_002dtest_jsp</servlet-name>
|
||||
<url-pattern>/tree-control-test.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.valve.accessLogValve_jsp</servlet-name>
|
||||
<url-pattern>/valve/accessLogValve.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.valve.remoteAddrValve_jsp</servlet-name>
|
||||
<url-pattern>/valve/remoteAddrValve.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.valve.remoteHostValve_jsp</servlet-name>
|
||||
<url-pattern>/valve/remoteHostValve.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.valve.requestDumperValve_jsp</servlet-name>
|
||||
<url-pattern>/valve/requestDumperValve.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.valve.singleSignOnValve_jsp</servlet-name>
|
||||
<url-pattern>/valve/singleSignOnValve.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.valve.valves_jsp</servlet-name>
|
||||
<url-pattern>/valve/valves.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.users.deleteGroups_jsp</servlet-name>
|
||||
<url-pattern>/users/deleteGroups.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.users.deleteRoles_jsp</servlet-name>
|
||||
<url-pattern>/users/deleteRoles.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.users.deleteUsers_jsp</servlet-name>
|
||||
<url-pattern>/users/deleteUsers.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.users.footer_jsp</servlet-name>
|
||||
<url-pattern>/users/footer.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.users.group_jsp</servlet-name>
|
||||
<url-pattern>/users/group.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.users.header_jsp</servlet-name>
|
||||
<url-pattern>/users/header.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.users.listGroups_jsp</servlet-name>
|
||||
<url-pattern>/users/listGroups.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.users.listRoles_jsp</servlet-name>
|
||||
<url-pattern>/users/listRoles.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.users.listUsers_jsp</servlet-name>
|
||||
<url-pattern>/users/listUsers.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.users.role_jsp</servlet-name>
|
||||
<url-pattern>/users/role.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.users.user_jsp</servlet-name>
|
||||
<url-pattern>/users/user.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.service.service_jsp</servlet-name>
|
||||
<url-pattern>/service/service.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.service.services_jsp</servlet-name>
|
||||
<url-pattern>/service/services.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.server.server_jsp</servlet-name>
|
||||
<url-pattern>/server/server.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.resources.dataSource_jsp</servlet-name>
|
||||
<url-pattern>/resources/dataSource.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.resources.deleteDataSources_jsp</servlet-name>
|
||||
<url-pattern>/resources/deleteDataSources.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.resources.deleteEnvEntries_jsp</servlet-name>
|
||||
<url-pattern>/resources/deleteEnvEntries.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.resources.deleteMailSessions_jsp</servlet-name>
|
||||
<url-pattern>/resources/deleteMailSessions.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.resources.deleteResourceLinks_jsp</servlet-name>
|
||||
<url-pattern>/resources/deleteResourceLinks.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.resources.deleteUserDatabases_jsp</servlet-name>
|
||||
<url-pattern>/resources/deleteUserDatabases.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.resources.envEntry_jsp</servlet-name>
|
||||
<url-pattern>/resources/envEntry.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.resources.listDataSources_jsp</servlet-name>
|
||||
<url-pattern>/resources/listDataSources.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.resources.listEnvEntries_jsp</servlet-name>
|
||||
<url-pattern>/resources/listEnvEntries.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.resources.listMailSessions_jsp</servlet-name>
|
||||
<url-pattern>/resources/listMailSessions.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.resources.listResourceLinks_jsp</servlet-name>
|
||||
<url-pattern>/resources/listResourceLinks.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.resources.listUserDatabases_jsp</servlet-name>
|
||||
<url-pattern>/resources/listUserDatabases.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.resources.mailSession_jsp</servlet-name>
|
||||
<url-pattern>/resources/mailSession.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.resources.resourceLink_jsp</servlet-name>
|
||||
<url-pattern>/resources/resourceLink.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.resources.userDatabase_jsp</servlet-name>
|
||||
<url-pattern>/resources/userDatabase.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.realm.dataSourceRealm_jsp</servlet-name>
|
||||
<url-pattern>/realm/dataSourceRealm.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.realm.jdbcRealm_jsp</servlet-name>
|
||||
<url-pattern>/realm/jdbcRealm.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.realm.jndiRealm_jsp</servlet-name>
|
||||
<url-pattern>/realm/jndiRealm.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.realm.memoryRealm_jsp</servlet-name>
|
||||
<url-pattern>/realm/memoryRealm.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.realm.realms_jsp</servlet-name>
|
||||
<url-pattern>/realm/realms.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.realm.userDatabaseRealm_jsp</servlet-name>
|
||||
<url-pattern>/realm/userDatabaseRealm.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.host.alias_jsp</servlet-name>
|
||||
<url-pattern>/host/alias.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.host.aliases_jsp</servlet-name>
|
||||
<url-pattern>/host/aliases.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.host.host_jsp</servlet-name>
|
||||
<url-pattern>/host/host.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.host.hosts_jsp</servlet-name>
|
||||
<url-pattern>/host/hosts.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.context.context_jsp</servlet-name>
|
||||
<url-pattern>/context/context.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.context.contexts_jsp</servlet-name>
|
||||
<url-pattern>/context/contexts.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.connector.connector_jsp</servlet-name>
|
||||
<url-pattern>/connector/connector.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.connector.connectors_jsp</servlet-name>
|
||||
<url-pattern>/connector/connectors.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<!-- JSPC servlet mappings end -->
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>action</servlet-name>
|
||||
<url-pattern>*.do</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<!-- Security is active on entire directory -->
|
||||
<security-constraint>
|
||||
<display-name>Tomcat Server Configuration Security Constraint</display-name>
|
||||
<web-resource-collection>
|
||||
<web-resource-name>Protected Area</web-resource-name>
|
||||
<!-- Define the context-relative URL(s) to be protected -->
|
||||
<url-pattern>*.jsp</url-pattern>
|
||||
<url-pattern>*.do</url-pattern>
|
||||
<url-pattern>*.html</url-pattern>
|
||||
</web-resource-collection>
|
||||
<auth-constraint>
|
||||
<!-- Anyone with one of the listed roles may access this area -->
|
||||
<role-name>admin</role-name>
|
||||
</auth-constraint>
|
||||
</security-constraint>
|
||||
|
||||
<!-- Login configuration uses form-based authentication -->
|
||||
<login-config>
|
||||
<auth-method>FORM</auth-method>
|
||||
<realm-name>Tomcat Server Configuration Form-Based Authentication Area</realm-name>
|
||||
<form-login-config>
|
||||
<form-login-page>/login.jsp</form-login-page>
|
||||
<form-error-page>/error.jsp</form-error-page>
|
||||
</form-login-config>
|
||||
</login-config>
|
||||
|
||||
<!-- Security roles referenced by this web application -->
|
||||
<security-role>
|
||||
<description>
|
||||
The role that is required to log in to the Administration Application
|
||||
</description>
|
||||
<role-name>admin</role-name>
|
||||
</security-role>
|
||||
|
||||
</web-app>
|
95
tomcat/server/webapps/admin/admin.css
Normal file
|
@ -0,0 +1,95 @@
|
|||
.masthead-title-text {
|
||||
color: #FFFFFF;
|
||||
margin: 3px 5px 5px 3px;
|
||||
font-size: large;
|
||||
font-family: Arial, Verdana,Helvetica, Sans-Serif;
|
||||
}
|
||||
|
||||
.page-title-text {
|
||||
color: #FFFFFF;
|
||||
font-weight: bold;
|
||||
margin: 3px 5px 5px 3px;
|
||||
font-size: normal;
|
||||
font-family: Arial, Verdana, Helvetica, Sans-Serif;
|
||||
}
|
||||
|
||||
.table-title-text {
|
||||
color: #000000;
|
||||
font-weight: bold;
|
||||
margin: 3px 5px 5px 4px;
|
||||
font-family: Arial, Verdana, Helvetica, Sans-Serif;
|
||||
}
|
||||
|
||||
.table-header-text {
|
||||
color: #FFFFFF;
|
||||
font-weight: normal;
|
||||
margin: 3px 5px 1px 15px;
|
||||
font-family: Arial, Verdana,Helvetica, Sans-Serif;
|
||||
}
|
||||
|
||||
.table-label-text {
|
||||
color: #000000;
|
||||
margin: 3px 5px 3px 15px;
|
||||
font-family: Arial, Verdana, Helvetica, Sans-Serif;
|
||||
}
|
||||
|
||||
.table-normal-text {
|
||||
color: #000000;
|
||||
margin: 3px 5px 3px 15px;
|
||||
font-family: "Times New Roman", Times, serif;
|
||||
}
|
||||
|
||||
.back-table {
|
||||
background-color: #9999CC;
|
||||
margin: 0px 5px 3px 5px;
|
||||
font-family: Verdana, Arial, Helvetica, Sans-Serif;
|
||||
}
|
||||
|
||||
.front-table {
|
||||
background-color: #FFFFFF;
|
||||
font-family: Arial, Verdana, Helvetica, Sans-Serif;
|
||||
}
|
||||
|
||||
.page-title-row {
|
||||
background-color: #7171A5;
|
||||
text-align: right;
|
||||
font-family: Arial, Verdana, Helvetica, Sans-Serif;
|
||||
}
|
||||
|
||||
.header-row {
|
||||
background-color: #9999CC;
|
||||
text-align: center;
|
||||
font-family: Arial, Verdana, Helvetica, Sans-Serif;
|
||||
}
|
||||
|
||||
.sort-row {
|
||||
background-color: #CECEFF;
|
||||
text-align: center;
|
||||
font-family: Arial, Verdana, Helvetica, Sans-Serif;
|
||||
}
|
||||
|
||||
.line-row {
|
||||
background-color: #CCCCCC;
|
||||
font-family: Arial, Verdana, Helvetica, Sans-Serif;
|
||||
}
|
||||
|
||||
.button {
|
||||
background-color: #CCCCFF;
|
||||
font-family: Arial, Verdana, Helvetica, Sans-Serif;
|
||||
}
|
||||
|
||||
a.button-link-text:visited, a.button-link-text:link, a.button-link-text:active {
|
||||
color: #000000;
|
||||
background-color: #CCCCFF;
|
||||
font-weight: bold;
|
||||
font-family: Arial, Verdana, Geneva, Helvetica, Sans-Serif;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a.button-link-text:hover {
|
||||
color: #000000;
|
||||
background-color: #CCCCFF;
|
||||
font-weight: bold;
|
||||
font-family: Arial, Verdana, Geneva, Helvetica, Sans-Serif;
|
||||
text-decoration: underline;
|
||||
}
|
20
tomcat/server/webapps/admin/admin.xml
Normal file
|
@ -0,0 +1,20 @@
|
|||
<!--
|
||||
|
||||
Context configuration file for the Tomcat Administration Web App
|
||||
|
||||
$Id: admin.xml,v 1.3 2005/05/17 16:51:21 aranganath Exp $
|
||||
|
||||
-->
|
||||
|
||||
|
||||
<Context docBase="${catalina.home}/server/webapps/admin" privileged="true"
|
||||
antiResourceLocking="false" antiJARLocking="false">
|
||||
|
||||
<!-- Uncomment this Valve to limit access to the Admin app to localhost
|
||||
for obvious security reasons. Allow may be a comma-separated list of
|
||||
hosts (or even regular expressions).
|
||||
<Valve className="org.apache.catalina.valves.RemoteAddrValve"
|
||||
allow="127.0.0.1"/>
|
||||
-->
|
||||
|
||||
</Context>
|
BIN
tomcat/server/webapps/admin/images/BlueTile.gif
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
tomcat/server/webapps/admin/images/Connector.gif
Normal file
After Width: | Height: | Size: 366 B |
BIN
tomcat/server/webapps/admin/images/Context.gif
Normal file
After Width: | Height: | Size: 361 B |
BIN
tomcat/server/webapps/admin/images/Datasource.gif
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
tomcat/server/webapps/admin/images/DefaultContext.gif
Normal file
After Width: | Height: | Size: 372 B |
BIN
tomcat/server/webapps/admin/images/EnvironmentEntries.gif
Normal file
After Width: | Height: | Size: 338 B |
BIN
tomcat/server/webapps/admin/images/Groups.gif
Normal file
After Width: | Height: | Size: 589 B |
BIN
tomcat/server/webapps/admin/images/Host.gif
Normal file
After Width: | Height: | Size: 248 B |
BIN
tomcat/server/webapps/admin/images/Logger.gif
Normal file
After Width: | Height: | Size: 599 B |
BIN
tomcat/server/webapps/admin/images/Login.jpg
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
tomcat/server/webapps/admin/images/LoginBackgroundTile.gif
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
tomcat/server/webapps/admin/images/Mailsession.gif
Normal file
After Width: | Height: | Size: 600 B |
BIN
tomcat/server/webapps/admin/images/PaperTexture.gif
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
tomcat/server/webapps/admin/images/Realm.gif
Normal file
After Width: | Height: | Size: 596 B |
BIN
tomcat/server/webapps/admin/images/ResourceLink.gif
Normal file
After Width: | Height: | Size: 350 B |
BIN
tomcat/server/webapps/admin/images/Roles.gif
Normal file
After Width: | Height: | Size: 605 B |
BIN
tomcat/server/webapps/admin/images/Server.gif
Normal file
After Width: | Height: | Size: 545 B |
BIN
tomcat/server/webapps/admin/images/Service.gif
Normal file
After Width: | Height: | Size: 603 B |
BIN
tomcat/server/webapps/admin/images/Thumbs.db
Normal file
BIN
tomcat/server/webapps/admin/images/TomcatBanner.jpg
Normal file
After Width: | Height: | Size: 6.7 KiB |
BIN
tomcat/server/webapps/admin/images/Users.gif
Normal file
After Width: | Height: | Size: 331 B |
BIN
tomcat/server/webapps/admin/images/Valve.gif
Normal file
After Width: | Height: | Size: 597 B |
BIN
tomcat/server/webapps/admin/images/folder_16_pad.gif
Normal file
After Width: | Height: | Size: 862 B |
BIN
tomcat/server/webapps/admin/images/handledownlast.gif
Normal file
After Width: | Height: | Size: 145 B |
BIN
tomcat/server/webapps/admin/images/handledownmiddle.gif
Normal file
After Width: | Height: | Size: 145 B |
BIN
tomcat/server/webapps/admin/images/handlerightlast.gif
Normal file
After Width: | Height: | Size: 142 B |
BIN
tomcat/server/webapps/admin/images/handlerightmiddle.gif
Normal file
After Width: | Height: | Size: 146 B |
BIN
tomcat/server/webapps/admin/images/linelastnode.gif
Normal file
After Width: | Height: | Size: 78 B |
BIN
tomcat/server/webapps/admin/images/linemiddlenode.gif
Normal file
After Width: | Height: | Size: 83 B |
BIN
tomcat/server/webapps/admin/images/linevertical.gif
Normal file
After Width: | Height: | Size: 81 B |
19
tomcat/server/webapps/admin/tree-control-test.css
Normal file
|
@ -0,0 +1,19 @@
|
|||
.tree-control {
|
||||
font-family: arial, verdana, geneva, helvetica, sans-serif;
|
||||
font-size: 80%;
|
||||
line-height: 1.0;
|
||||
}
|
||||
|
||||
.tree-control-selected {
|
||||
color: black;
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.tree-control-unselected {
|
||||
color: black;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
95
tomcat/server/webapps/host-manager/WEB-INF/web.xml
Normal file
|
@ -0,0 +1,95 @@
|
|||
<?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>Tomcat Manager Application</display-name>
|
||||
<description>
|
||||
A scriptable management web application for the Tomcat Web Server;
|
||||
Manager lets you view, load/unload/etc particular web applications.
|
||||
</description>
|
||||
|
||||
<!-- Define the Manager Servlet
|
||||
Change servlet-class to: org.apache.catalina.servlets.HTMLManagerServlet
|
||||
to get a Servlet with a more intuitive HTML interface, don't change if you
|
||||
have software that is expected to parse the output from ManagerServlet
|
||||
since they're not compatible.
|
||||
-->
|
||||
<servlet>
|
||||
<servlet-name>HostManager</servlet-name>
|
||||
<servlet-class>org.apache.catalina.hostmanager.HostManagerServlet</servlet-class>
|
||||
<init-param>
|
||||
<param-name>debug</param-name>
|
||||
<param-value>2</param-value>
|
||||
</init-param>
|
||||
</servlet>
|
||||
<servlet>
|
||||
<servlet-name>HTMLHostManager</servlet-name>
|
||||
<servlet-class>org.apache.catalina.hostmanager.HTMLHostManagerServlet</servlet-class>
|
||||
<init-param>
|
||||
<param-name>debug</param-name>
|
||||
<param-value>2</param-value>
|
||||
</init-param>
|
||||
</servlet>
|
||||
|
||||
<!-- Define the Manager Servlet Mapping -->
|
||||
<servlet-mapping>
|
||||
<servlet-name>HostManager</servlet-name>
|
||||
<url-pattern>/list</url-pattern>
|
||||
</servlet-mapping>
|
||||
<servlet-mapping>
|
||||
<servlet-name>HostManager</servlet-name>
|
||||
<url-pattern>/add</url-pattern>
|
||||
</servlet-mapping>
|
||||
<servlet-mapping>
|
||||
<servlet-name>HostManager</servlet-name>
|
||||
<url-pattern>/remove</url-pattern>
|
||||
</servlet-mapping>
|
||||
<servlet-mapping>
|
||||
<servlet-name>HostManager</servlet-name>
|
||||
<url-pattern>/start</url-pattern>
|
||||
</servlet-mapping>
|
||||
<servlet-mapping>
|
||||
<servlet-name>HostManager</servlet-name>
|
||||
<url-pattern>/stop</url-pattern>
|
||||
</servlet-mapping>
|
||||
<servlet-mapping>
|
||||
<servlet-name>HTMLHostManager</servlet-name>
|
||||
<url-pattern>/html/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<!-- Define a Security Constraint on this Application -->
|
||||
<security-constraint>
|
||||
<web-resource-collection>
|
||||
<web-resource-name>HTMLHostManager and HostManager commands</web-resource-name>
|
||||
<url-pattern>/html/*</url-pattern>
|
||||
<url-pattern>/list</url-pattern>
|
||||
<url-pattern>/add</url-pattern>
|
||||
<url-pattern>/remove</url-pattern>
|
||||
<url-pattern>/start</url-pattern>
|
||||
<url-pattern>/stop</url-pattern>
|
||||
</web-resource-collection>
|
||||
<auth-constraint>
|
||||
<!-- NOTE: This role is not present in the default users file -->
|
||||
<role-name>admin</role-name>
|
||||
</auth-constraint>
|
||||
</security-constraint>
|
||||
|
||||
<!-- Define the Login Configuration for this Application -->
|
||||
<login-config>
|
||||
<auth-method>BASIC</auth-method>
|
||||
<realm-name>Tomcat Host Manager Application</realm-name>
|
||||
</login-config>
|
||||
|
||||
<!-- Security roles referenced by this web application -->
|
||||
<security-role>
|
||||
<description>
|
||||
The role that is required to log in to the Manager Application
|
||||
</description>
|
||||
<role-name>admin</role-name>
|
||||
</security-role>
|
||||
|
||||
</web-app>
|
13
tomcat/server/webapps/host-manager/host-manager.xml
Normal file
|
@ -0,0 +1,13 @@
|
|||
<!--
|
||||
|
||||
Context configuration file for the Tomcat Host Manager Web App
|
||||
|
||||
$Id: host-manager.xml,v 1.1 2005/05/17 16:51:21 aranganath Exp $
|
||||
|
||||
-->
|
||||
|
||||
|
||||
<Context docBase="${catalina.home}/server/webapps/host-manager"
|
||||
privileged="true" antiResourceLocking="false" antiJARLocking="false">
|
||||
|
||||
</Context>
|
BIN
tomcat/server/webapps/host-manager/images/add.gif
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
tomcat/server/webapps/host-manager/images/code.gif
Normal file
After Width: | Height: | Size: 394 B |
BIN
tomcat/server/webapps/host-manager/images/design.gif
Normal file
After Width: | Height: | Size: 608 B |
BIN
tomcat/server/webapps/host-manager/images/docs.gif
Normal file
After Width: | Height: | Size: 261 B |
BIN
tomcat/server/webapps/host-manager/images/fix.gif
Normal file
After Width: | Height: | Size: 345 B |
BIN
tomcat/server/webapps/host-manager/images/jakarta-logo.gif
Normal file
After Width: | Height: | Size: 8.4 KiB |
BIN
tomcat/server/webapps/host-manager/images/tomcat.gif
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
tomcat/server/webapps/host-manager/images/update.gif
Normal file
After Width: | Height: | Size: 627 B |
BIN
tomcat/server/webapps/host-manager/images/void.gif
Normal file
After Width: | Height: | Size: 43 B |
13
tomcat/server/webapps/host-manager/manager.xml
Normal file
|
@ -0,0 +1,13 @@
|
|||
<!--
|
||||
|
||||
Context configuration file for the Tomcat Manager Web App
|
||||
|
||||
$Id: manager.xml,v 1.1 2005/05/17 16:51:21 aranganath Exp $
|
||||
|
||||
-->
|
||||
|
||||
|
||||
<Context docBase="${catalina.home}/server/webapps/manager"
|
||||
privileged="true" antiResourceLocking="false" antiJARLocking="false">
|
||||
|
||||
</Context>
|
BIN
tomcat/server/webapps/manager/WEB-INF/lib/catalina-manager.jar
Normal file
186
tomcat/server/webapps/manager/WEB-INF/web.xml
Normal file
|
@ -0,0 +1,186 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!--
|
||||
Copyright 2004 The Apache Software Foundation
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
|
||||
version="2.4">
|
||||
|
||||
<display-name>Tomcat Manager Application</display-name>
|
||||
<description>
|
||||
A scriptable management web application for the Tomcat Web Server;
|
||||
Manager lets you view, load/unload/etc particular web applications.
|
||||
</description>
|
||||
|
||||
<!-- Define the Manager Servlet
|
||||
Change servlet-class to: org.apache.catalina.servlets.HTMLManagerServlet
|
||||
to get a Servlet with a more intuitive HTML interface, don't change if you
|
||||
have software that is expected to parse the output from ManagerServlet
|
||||
since they're not compatible.
|
||||
-->
|
||||
<servlet>
|
||||
<servlet-name>Manager</servlet-name>
|
||||
<servlet-class>org.apache.catalina.manager.ManagerServlet</servlet-class>
|
||||
<init-param>
|
||||
<param-name>debug</param-name>
|
||||
<param-value>2</param-value>
|
||||
</init-param>
|
||||
</servlet>
|
||||
<servlet>
|
||||
<servlet-name>HTMLManager</servlet-name>
|
||||
<servlet-class>org.apache.catalina.manager.HTMLManagerServlet</servlet-class>
|
||||
<init-param>
|
||||
<param-name>debug</param-name>
|
||||
<param-value>2</param-value>
|
||||
</init-param>
|
||||
</servlet>
|
||||
<servlet>
|
||||
<servlet-name>Status</servlet-name>
|
||||
<servlet-class>org.apache.catalina.manager.StatusManagerServlet</servlet-class>
|
||||
<init-param>
|
||||
<param-name>debug</param-name>
|
||||
<param-value>0</param-value>
|
||||
</init-param>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>JMXProxy</servlet-name>
|
||||
<servlet-class>org.apache.catalina.manager.JMXProxyServlet</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<!-- Define the Manager Servlet Mapping -->
|
||||
<servlet-mapping>
|
||||
<servlet-name>Manager</servlet-name>
|
||||
<url-pattern>/list</url-pattern>
|
||||
</servlet-mapping>
|
||||
<servlet-mapping>
|
||||
<servlet-name>Manager</servlet-name>
|
||||
<url-pattern>/sessions</url-pattern>
|
||||
</servlet-mapping>
|
||||
<servlet-mapping>
|
||||
<servlet-name>Manager</servlet-name>
|
||||
<url-pattern>/start</url-pattern>
|
||||
</servlet-mapping>
|
||||
<servlet-mapping>
|
||||
<servlet-name>Manager</servlet-name>
|
||||
<url-pattern>/stop</url-pattern>
|
||||
</servlet-mapping>
|
||||
<servlet-mapping>
|
||||
<servlet-name>Manager</servlet-name>
|
||||
<url-pattern>/install</url-pattern>
|
||||
</servlet-mapping>
|
||||
<servlet-mapping>
|
||||
<servlet-name>Manager</servlet-name>
|
||||
<url-pattern>/remove</url-pattern>
|
||||
</servlet-mapping>
|
||||
<servlet-mapping>
|
||||
<servlet-name>Manager</servlet-name>
|
||||
<url-pattern>/deploy</url-pattern>
|
||||
</servlet-mapping>
|
||||
<servlet-mapping>
|
||||
<servlet-name>Manager</servlet-name>
|
||||
<url-pattern>/undeploy</url-pattern>
|
||||
</servlet-mapping>
|
||||
<servlet-mapping>
|
||||
<servlet-name>Manager</servlet-name>
|
||||
<url-pattern>/reload</url-pattern>
|
||||
</servlet-mapping>
|
||||
<servlet-mapping>
|
||||
<servlet-name>Manager</servlet-name>
|
||||
<url-pattern>/save</url-pattern>
|
||||
</servlet-mapping>
|
||||
<servlet-mapping>
|
||||
<servlet-name>Manager</servlet-name>
|
||||
<url-pattern>/serverinfo</url-pattern>
|
||||
</servlet-mapping>
|
||||
<servlet-mapping>
|
||||
<servlet-name>Manager</servlet-name>
|
||||
<url-pattern>/roles</url-pattern>
|
||||
</servlet-mapping>
|
||||
<servlet-mapping>
|
||||
<servlet-name>Manager</servlet-name>
|
||||
<url-pattern>/resources</url-pattern>
|
||||
</servlet-mapping>
|
||||
<servlet-mapping>
|
||||
<servlet-name>Status</servlet-name>
|
||||
<url-pattern>/status/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
<servlet-mapping>
|
||||
<servlet-name>JMXProxy</servlet-name>
|
||||
<url-pattern>/jmxproxy/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
<servlet-mapping>
|
||||
<servlet-name>HTMLManager</servlet-name>
|
||||
<url-pattern>/html/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<!-- Define reference to the user database for looking up roles -->
|
||||
<resource-env-ref>
|
||||
<description>
|
||||
Link to the UserDatabase instance from which we request lists of
|
||||
defined role names. Typically, this will be connected to the global
|
||||
user database with a ResourceLink element in server.xml or the context
|
||||
configuration file for the Manager web application.
|
||||
</description>
|
||||
<resource-env-ref-name>users</resource-env-ref-name>
|
||||
<resource-env-ref-type>
|
||||
org.apache.catalina.UserDatabase
|
||||
</resource-env-ref-type>
|
||||
</resource-env-ref>
|
||||
|
||||
<!-- Define a Security Constraint on this Application -->
|
||||
<security-constraint>
|
||||
<web-resource-collection>
|
||||
<web-resource-name>HTMLManger and Manager command</web-resource-name>
|
||||
<url-pattern>/jmxproxy/*</url-pattern>
|
||||
<url-pattern>/html/*</url-pattern>
|
||||
<url-pattern>/list</url-pattern>
|
||||
<url-pattern>/sessions</url-pattern>
|
||||
<url-pattern>/start</url-pattern>
|
||||
<url-pattern>/stop</url-pattern>
|
||||
<url-pattern>/install</url-pattern>
|
||||
<url-pattern>/remove</url-pattern>
|
||||
<url-pattern>/deploy</url-pattern>
|
||||
<url-pattern>/undeploy</url-pattern>
|
||||
<url-pattern>/reload</url-pattern>
|
||||
<url-pattern>/save</url-pattern>
|
||||
<url-pattern>/serverinfo</url-pattern>
|
||||
<url-pattern>/status/*</url-pattern>
|
||||
<url-pattern>/roles</url-pattern>
|
||||
<url-pattern>/resources</url-pattern>
|
||||
</web-resource-collection>
|
||||
<auth-constraint>
|
||||
<!-- NOTE: This role is not present in the default users file -->
|
||||
<role-name>manager</role-name>
|
||||
</auth-constraint>
|
||||
</security-constraint>
|
||||
|
||||
<!-- Define the Login Configuration for this Application -->
|
||||
<login-config>
|
||||
<auth-method>BASIC</auth-method>
|
||||
<realm-name>Tomcat Manager Application</realm-name>
|
||||
</login-config>
|
||||
|
||||
<!-- Security roles referenced by this web application -->
|
||||
<security-role>
|
||||
<description>
|
||||
The role that is required to log in to the Manager Application
|
||||
</description>
|
||||
<role-name>manager</role-name>
|
||||
</security-role>
|
||||
|
||||
</web-app>
|
518
tomcat/server/webapps/manager/html-manager-howto.html
Normal file
|
@ -0,0 +1,518 @@
|
|||
<html><head><META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><title>The Apache Jakarta Tomcat 5.5 Servlet/JSP Container - Tomcat Web Application Manager How To</title><meta value="Glenn L. Nielsen" name="author"><meta value="glenn@apache.org" name="email"></head><body vlink="#525D76" alink="#525D76" link="#525D76" text="#000000" bgcolor="#ffffff"><table cellspacing="4" width="100%" border="0"><!--PAGE HEADER--><tr><td colspan="2"><!--JAKARTA LOGO--><a href="http://jakarta.apache.org/"><img border="0" alt="The Jakarta Project" align="left" src="./images/jakarta-logo.gif"></a><!--PROJECT LOGO--><a href="http://jakarta.apache.org/tomcat/"><img border="0" alt="
|
||||
The Apache Jakarta Tomcat Servlet/JSP Container
|
||||
" align="right" src="./images/tomcat.gif"></a></td></tr><!--HEADER SEPARATOR--><tr><td colspan="2"><hr size="1" noshade="noshade"></td></tr><tr><!--RIGHT SIDE MAIN BODY--><td align="left" valign="top" width="80%"><table cellspacing="4" width="100%" border="0"><tr><td valign="top" align="left"><h1>The Apache Jakarta Tomcat 5.5 Servlet/JSP Container</h1><h2>Tomcat Web Application Manager How To</h2></td><td nowrap="true" valign="top" align="right"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td></tr></table><table cellpadding="2" cellspacing="0" border="0"><tr><td bgcolor="#525D76"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="Introduction"><strong>Introduction</strong></a></font></td></tr><tr><td><blockquote>
|
||||
|
||||
<p>In many production environments it is very useful to have the capability
|
||||
to manage your web applications without having to shut down and restart
|
||||
Tomcat. This document is for the HTML web interface to the web application
|
||||
manager.</p>
|
||||
|
||||
<p>The interface is divided into five sections:
|
||||
<ul>
|
||||
<li><strong>Message</strong> - Displays success and failure messages.</li>
|
||||
<li><strong>Manager</strong> - General manager operations like list and
|
||||
help.</li>
|
||||
<li><strong>Applications</strong> - List of web applications and
|
||||
commands.</li>
|
||||
<li><strong>Deploy</strong> - Deploying web applications.</li>
|
||||
<li><strong>Server Information</strong> - Information about the Tomcat
|
||||
server.</li>
|
||||
</ul>
|
||||
</p>
|
||||
|
||||
</blockquote></td></tr></table><table cellpadding="2" cellspacing="0" border="0"><tr><td bgcolor="#525D76"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="Message"><strong>Message</strong></a></font></td></tr><tr><td><blockquote>
|
||||
|
||||
<p>
|
||||
Displays information about the success or failure of the last web application
|
||||
manager command you performed. If it succeeded <strong>OK</strong> is displayed
|
||||
and may be followed by a success message. If it failed <strong>FAIL</strong>
|
||||
is displayed followed by an error message. Common failure messages are
|
||||
documented below for each command. The complete list of failure messages for
|
||||
each command can be found in the manager web
|
||||
application documentation.
|
||||
</p>
|
||||
|
||||
</blockquote></td></tr></table><table cellpadding="2" cellspacing="0" border="0"><tr><td bgcolor="#525D76"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="Manager"><strong>Manager</strong></a></font></td></tr><tr><td><blockquote>
|
||||
|
||||
<p>The Manager section has three links:
|
||||
<ul>
|
||||
<li><strong>List Applications</strong> - Redisplay a list of web
|
||||
applications.</li>
|
||||
<li><strong>HTML Manager Help</strong> - A link to this document.</li>
|
||||
<li><strong>Manager Help</strong> - A link to the comprehensive Manager
|
||||
App HOW TO.</li>
|
||||
</ul>
|
||||
</p>
|
||||
|
||||
</blockquote></td></tr></table><table cellpadding="2" cellspacing="0" border="0"><tr><td bgcolor="#525D76"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="Applications"><strong>Applications</strong></a></font></td></tr><tr><td><blockquote>
|
||||
|
||||
<p>The Applications section lists information about all the installed web
|
||||
applications and provides links for managing them. For each web application
|
||||
the following is displayed:
|
||||
<ul>
|
||||
<li><strong>Path</strong> - The web applicaton context path.</li>
|
||||
<li><strong>Display Name</strong> - The display name for the web application
|
||||
if it has one configured in its "web.xml" file.</li>
|
||||
<li><strong>Running</strong> - Whether the web application is running and
|
||||
available (true), or not running and unavailable (false).</li>
|
||||
<li><strong>Sessions</strong> - The number of active sessions for remote
|
||||
users of this web application. The number of sessions is a link which
|
||||
when submitted displays more details about session usage by the web
|
||||
application in the Message box.</li>
|
||||
<li><strong>Commands</strong> - Lists all commands which can be performed on
|
||||
the web application. Only those commands which can be performed will be
|
||||
listed as a link which can be submitted. No commands can be performed on
|
||||
the manager web application itself. The following commands can be
|
||||
performed:
|
||||
<ul>
|
||||
<li><strong>Start</strong> - Start a web application which had been
|
||||
stopped.</li>
|
||||
<li><strong>Stop</strong> - Stop a web application which is currently
|
||||
running and make it unavailable.</li>
|
||||
<li><strong>Reload</strong> - Reload the web application so that new
|
||||
".jar" files in <code>/WEB-INF/lib/</code> or new classes in
|
||||
<code>/WEB-INF/classes/</code> can be used.</li>
|
||||
<li><strong>Undeploy</strong> - Stop and then remove this web
|
||||
application from the server.</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</p>
|
||||
|
||||
<table cellpadding="2" cellspacing="0" border="0"><tr><td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="Start"><strong>Start</strong></a></font></td></tr><tr><td><blockquote>
|
||||
|
||||
<p>Signal a stopped application to restart, and make itself available again.
|
||||
Stopping and starting is useful, for example, if the database required by
|
||||
your application becomes temporarily unavailable. It is usually better to
|
||||
stop the web application that relies on this database rather than letting
|
||||
users continuously encounter database exceptions.</p>
|
||||
|
||||
<p>If this command succeeds, you will see a Message like this:</p>
|
||||
<div align="left"><table border="0" cellpadding="0" cellspacing="4"><tr><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td></tr><tr><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" bgcolor="#ffffff"><pre>
|
||||
OK - Started application at context path /examples
|
||||
</pre></td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td></tr><tr><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td></tr></table></div>
|
||||
|
||||
<p>Otherwise, the Message will start with <code>FAIL</code> and include an
|
||||
error message. Possible causes for problems include:
|
||||
<ul>
|
||||
<li><em>Encountered exception</em>
|
||||
<blockquote>
|
||||
<p>An exception was encountered trying to start the web application.
|
||||
Check the Tomcat 5 logs for the details.</p>
|
||||
</blockquote></li>
|
||||
<li><em>Invalid context path was specified</em>
|
||||
<blockquote>
|
||||
<p>The context path must start with a slash character, unless you are
|
||||
referencing the ROOT web application -- in which case the context path
|
||||
must be a zero-length string.</p>
|
||||
</blockquote></li>
|
||||
<li><em>No context exists for path /foo</em>
|
||||
<blockquote>
|
||||
<p>There is no deployed application on the context path
|
||||
that you specified.</p>
|
||||
</blockquote></li>
|
||||
<li><em>No context path was specified</em>
|
||||
<blockquote>
|
||||
The <code>path</code> parameter is required.
|
||||
</blockquote></li>
|
||||
</ul>
|
||||
</p>
|
||||
|
||||
</blockquote></td></tr></table>
|
||||
|
||||
<table cellpadding="2" cellspacing="0" border="0"><tr><td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="Stop"><strong>Stop</strong></a></font></td></tr><tr><td><blockquote>
|
||||
|
||||
<p>Signal an existing application to make itself unavailable, but leave it
|
||||
deployed. Any request that comes in while an application is
|
||||
stopped will see an HTTP error 404, and this application will show as
|
||||
"stopped" on a list applications command.</p>
|
||||
|
||||
<p>If this command succeeds, you will see a Message like this:</p>
|
||||
<div align="left"><table border="0" cellpadding="0" cellspacing="4"><tr><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td></tr><tr><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" bgcolor="#ffffff"><pre>
|
||||
OK - Stopped application at context path /examples
|
||||
</pre></td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td></tr><tr><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td></tr></table></div>
|
||||
|
||||
<p>Otherwise, the Message will start with <code>FAIL</code> and include an
|
||||
error message. Possible causes for problems include:
|
||||
<ul>
|
||||
<li><em>Encountered exception</em>
|
||||
<blockquote>
|
||||
<p>An exception was encountered trying to stop the web application.
|
||||
Check the Tomcat 5 logs for the details.</p>
|
||||
</blockquote></li>
|
||||
<li><em>Invalid context path was specified</em>
|
||||
<blockquote>
|
||||
<p>The context path must start with a slash character, unless you are
|
||||
referencing the ROOT web application -- in which case the context path
|
||||
must be a zero-length string.</p>
|
||||
</blockquote></li>
|
||||
<li><em>No context exists for path /foo</em>
|
||||
<blockquote>
|
||||
<p>There is no deployed application on the context path
|
||||
that you specified.</p>
|
||||
</blockquote></li>
|
||||
<li><em>No context path was specified</em>
|
||||
<blockquote>
|
||||
The <code>path</code> parameter is required.
|
||||
</blockquote></li>
|
||||
</ul>
|
||||
</p>
|
||||
|
||||
</blockquote></td></tr></table>
|
||||
|
||||
<table cellpadding="2" cellspacing="0" border="0"><tr><td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="Reload"><strong>Reload</strong></a></font></td></tr><tr><td><blockquote>
|
||||
|
||||
<p>Signal an existing application to shut itself down and reload. This can
|
||||
be useful when the web application context is not reloadable and you have
|
||||
updated classes or property files in the <code>/WEB-INF/classes</code>
|
||||
directory or when you have added or updated jar files in the
|
||||
<code>/WEB-INF/lib</code> directory.
|
||||
</p>
|
||||
<p><strong>NOTE:</strong> The <code>/WEB-INF/web.xml</code>
|
||||
web application configuration file is not checked on a reload;
|
||||
the previous web.xml configuration is used.
|
||||
If you have made changes to your web.xml file you must stop
|
||||
then start the web application.
|
||||
</p>
|
||||
|
||||
<p>If this command succeeds, you will see a Message like this:</p>
|
||||
<div align="left"><table border="0" cellpadding="0" cellspacing="4"><tr><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td></tr><tr><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" bgcolor="#ffffff"><pre>
|
||||
OK - Reloaded application at context path /examples
|
||||
</pre></td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td></tr><tr><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td></tr></table></div>
|
||||
|
||||
<p>Otherwise, the Message will start with <code>FAIL</code> and include an
|
||||
error message. Possible causes for problems include:
|
||||
<ul>
|
||||
<li><em>Encountered exception</em>
|
||||
<blockquote>
|
||||
<p>An exception was encountered trying to restart the web application.
|
||||
Check the Tomcat 5 logs for the details.</p>
|
||||
</blockquote></li>
|
||||
<li><em>Invalid context path was specified</em>
|
||||
<blockquote>
|
||||
<p>The context path must start with a slash character, unless you are
|
||||
referencing the ROOT web application -- in which case the context path
|
||||
must be a zero-length string.</p>
|
||||
</blockquote></li>
|
||||
<li><em>No context exists for path /foo</em>
|
||||
<blockquote>
|
||||
<p>There is no deployed application on the context path
|
||||
that you specified.</p>
|
||||
</blockquote></li>
|
||||
<li><em>No context path was specified</em>
|
||||
<blockquote>
|
||||
The <code>path</code> parameter is required.
|
||||
</blockquote></li>
|
||||
<li><em>Reload not supported on WAR deployed at path /foo</em>
|
||||
<blockquote>
|
||||
Currently, application reloading (to pick up changes to the classes or
|
||||
<code>web.xml</code> file) is not supported when a web application is
|
||||
installed directly from a WAR file, which happens when the host is
|
||||
configured to not unpack WAR files. As it only works when the web
|
||||
application is installed from an unpacked directory, if you are using
|
||||
a WAR file, you should <code>undeploy</code> and then <code>deploy</code>
|
||||
the application again to pick up your changes.
|
||||
</blockquote></li>
|
||||
</ul>
|
||||
</p>
|
||||
|
||||
</blockquote></td></tr></table>
|
||||
|
||||
<table cellpadding="2" cellspacing="0" border="0"><tr><td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="Undeploy"><strong>Undeploy</strong></a></font></td></tr><tr><td><blockquote>
|
||||
|
||||
<p><strong><font color="red">WARNING</font> - This command will delete the
|
||||
contents of the web application directory and/or ".war" file if it exists within
|
||||
the <code>appBase</code> directory (typically "webapps") for this virtual host
|
||||
</strong>. The web application temporary work directory is also deleted. If
|
||||
you simply want to take an application out of service, you should use the
|
||||
<code>/stop</code> command instead.</p>
|
||||
|
||||
<p>Signal an existing application to gracefully shut itself down, and then
|
||||
remove it from Tomcat (which also makes this context path available for
|
||||
reuse later). This command is the logical opposite of the
|
||||
<code>/deploy</code> Ant command, and the related deploy features available
|
||||
in the HTML manager.</p>
|
||||
|
||||
<p>If this command succeeds, you will see a Message like this:</p>
|
||||
<div align="left"><table border="0" cellpadding="0" cellspacing="4"><tr><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td></tr><tr><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" bgcolor="#ffffff"><pre>
|
||||
OK - Undeployed application at context path /examples
|
||||
</pre></td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td></tr><tr><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td></tr></table></div>
|
||||
|
||||
<p>Otherwise, the Message will start with <code>FAIL</code> and include an
|
||||
error message. Possible causes for problems include:
|
||||
<ul>
|
||||
<li><em>Encountered exception</em>
|
||||
<blockquote>
|
||||
<p>An exception was encountered trying to undeploy the web application.
|
||||
Check the Tomcat logs for the details.</p>
|
||||
</blockquote></li>
|
||||
<li><em>Invalid context path was specified</em>
|
||||
<blockquote>
|
||||
<p>The context path must start with a slash character, unless you are
|
||||
referencing the ROOT web application -- in which case the context path
|
||||
must be a zero-length string.</p>
|
||||
</blockquote></li>
|
||||
<li><em>No context exists for path /foo</em>
|
||||
<blockquote>
|
||||
<p>There is no deployed application on the context path
|
||||
that you specified.</p>
|
||||
</blockquote></li>
|
||||
<li><em>No context path was specified</em>
|
||||
<blockquote>
|
||||
The <code>path</code> parameter is required.
|
||||
</blockquote></li>
|
||||
</ul>
|
||||
</p>
|
||||
|
||||
</blockquote></td></tr></table>
|
||||
|
||||
</blockquote></td></tr></table><table cellpadding="2" cellspacing="0" border="0"><tr><td bgcolor="#525D76"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="Deploy"><strong>Deploy</strong></a></font></td></tr><tr><td><blockquote>
|
||||
|
||||
<p>Web applications can be deployed using files or directories located
|
||||
on the Tomcat server or you can upload a web application archive (WAR)
|
||||
file to the server.</p>
|
||||
|
||||
<p>To install an application, fill in the appropriate fields for the type
|
||||
of install you want to do and then submit it using the <i>Install</i>
|
||||
button.</p>
|
||||
|
||||
<table cellpadding="2" cellspacing="0" border="0"><tr><td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="Deploy directory or WAR file located on server"><strong>Deploy directory or WAR file located on server</strong></a></font></td></tr><tr><td><blockquote>
|
||||
|
||||
<p>Deploy and start a new web application, attached to the specified <i>Context
|
||||
Path:</i> (which must not be in use by any other web application).
|
||||
This command is the logical opposite of the <em>Undeploy</em> command.</p>
|
||||
|
||||
<p>There are a number of different ways the deploy command can be used.</p>
|
||||
|
||||
<h3>Deploy a Directory or WAR by URL</h3>
|
||||
|
||||
<p>Install a web application directory or ".war" file located on the Tomcat
|
||||
server. If no <i>Context Path</i> is specified, the directory name or the
|
||||
war file name without the ".war" extension is used as the path. The
|
||||
<i>WAR or Directory URL</i> specifies a URL (including the <code>file:</code>
|
||||
scheme) for either a directory or a web application archive (WAR) file. The
|
||||
supported syntax for a URL referring to a WAR file is described on the Javadocs
|
||||
page for the <code>java.net.JarURLConnection</code> class. Use only URLs that
|
||||
refer to the entire WAR file.</p>
|
||||
|
||||
<p>In this example the web application located in the directory
|
||||
<code>C:\path\to\foo</code> on the Tomcat server (running on Windows)
|
||||
is deployed as the web application context named <code>/footoo</code>.
|
||||
<div align="left"><table border="0" cellpadding="0" cellspacing="4"><tr><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td></tr><tr><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" bgcolor="#ffffff"><pre>
|
||||
Context Path: /footoo
|
||||
WAR or Directory URL: file:C:/path/to/foo
|
||||
</pre></td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td></tr><tr><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td></tr></table></div>
|
||||
</p>
|
||||
|
||||
<p>In this example the ".war" file <code>/path/to/bar.war</code> on the
|
||||
Tomcat server (running on Unix) is deployed as the web application
|
||||
context named <code>/bar</code>. Notice that there is no <code>path</code>
|
||||
parameter so the context path defaults to the name of the web application
|
||||
archive file without the ".war" extension.
|
||||
<div align="left"><table border="0" cellpadding="0" cellspacing="4"><tr><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td></tr><tr><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" bgcolor="#ffffff"><pre>
|
||||
WAR or Directory URL: jar:file:/path/to/bar.war!/
|
||||
</pre></td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td></tr><tr><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td></tr></table></div>
|
||||
</p>
|
||||
|
||||
<h3>Deploy a Directory or War from the Host appBase</h3>
|
||||
|
||||
<p>Install a web application directory or ".war" file located in your Host
|
||||
appBase directory. If no <i>Context Path</i> is specified the directory name
|
||||
or the war file name without the ".war" extension is used as the path.</p>
|
||||
|
||||
<p>In this example the web application located in a subdirectory named
|
||||
<code>foo</code> in the Host appBase directory of the Tomcat server is
|
||||
deployed as the web application context named <code>/foo</code>. Notice
|
||||
that there is no <code>path</code> parameter so the context path defaults
|
||||
to the name of the web application directory.
|
||||
<div align="left"><table border="0" cellpadding="0" cellspacing="4"><tr><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td></tr><tr><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" bgcolor="#ffffff"><pre>
|
||||
WAR or Directory URL: foo
|
||||
</pre></td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td></tr><tr><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td></tr></table></div>
|
||||
</p>
|
||||
|
||||
<p>In this example the ".war" file <code>bar.war</code> located in your
|
||||
Host appBase directory on the Tomcat server is deployed as the web
|
||||
application context named <code>/bartoo</code>.
|
||||
<div align="left"><table border="0" cellpadding="0" cellspacing="4"><tr><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td></tr><tr><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" bgcolor="#ffffff"><pre>
|
||||
Context Path: /bartoo
|
||||
WAR or Directory URL: bar.war
|
||||
</pre></td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td></tr><tr><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td></tr></table></div>
|
||||
</p>
|
||||
|
||||
<h3>Deploy using a Context configuration ".xml" file</h3>
|
||||
|
||||
<p>If the Host deployXML flag is set to true, you can install a web
|
||||
application using a Context configuration ".xml" file and an optional
|
||||
".war" file or web application directory. The <i>Context Path</i>
|
||||
is not used when installing a web application using a context ".xml"
|
||||
configuration file.</p>
|
||||
|
||||
<p>A Context configuration ".xml" file can contain valid XML for a
|
||||
web application Context just as if it were configured in your
|
||||
Tomcat <code>server.xml</code> configuration file. Here is an
|
||||
example for Tomcat running on Windows:
|
||||
<div align="left"><table border="0" cellpadding="0" cellspacing="4"><tr><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td></tr><tr><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" bgcolor="#ffffff"><pre>
|
||||
<Context path="/foobar" docBase="C:\path\to\application\foobar"
|
||||
debug="0">
|
||||
|
||||
<!-- Link to the user database we will get roles from -->
|
||||
<ResourceLink name="users" global="UserDatabase"
|
||||
type="org.apache.catalina.UserDatabase"/>
|
||||
|
||||
</Context>
|
||||
</pre></td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td></tr><tr><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td></tr></table></div>
|
||||
</p>
|
||||
|
||||
<p>Use of the <i>WAR or Directory URL</i> is optional. When used
|
||||
to select a web application ".war" file or directory it overrides any
|
||||
docBase configured in the context configuration ".xml" file.</p>
|
||||
|
||||
<p>Here is an example of installing an application using a Context
|
||||
configuration ".xml" file for Tomcat running on Windows.
|
||||
<div align="left"><table border="0" cellpadding="0" cellspacing="4"><tr><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td></tr><tr><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" bgcolor="#ffffff"><pre>
|
||||
XML Configuration file URL: file:C:/path/to/context.xml
|
||||
</pre></td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td></tr><tr><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td></tr></table></div>
|
||||
</p>
|
||||
|
||||
<p>Here is an example of installing an application using a Context
|
||||
configuration ".xml" file and a web application ".war" file located
|
||||
on the server (Tomcat running on Unix).
|
||||
<div align="left"><table border="0" cellpadding="0" cellspacing="4"><tr><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td></tr><tr><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" bgcolor="#ffffff"><pre>
|
||||
XML Configuration file URL: file:/path/to/context.xml
|
||||
WAR or Directory URL: jar:file:/path/to/bar.war!/
|
||||
</pre></td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td></tr><tr><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td></tr></table></div>
|
||||
</p>
|
||||
|
||||
</blockquote></td></tr></table>
|
||||
|
||||
<table cellpadding="2" cellspacing="0" border="0"><tr><td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="Upload a WAR file to install"><strong>Upload a WAR file to install</strong></a></font></td></tr><tr><td><blockquote>
|
||||
|
||||
<p>Upload a WAR file from your local system and install it into the
|
||||
appBase for your Host. The name of the WAR file without the ".war"
|
||||
extension is used as the context path name.</p>
|
||||
|
||||
<p>Use the <i>Browse</i> button to select a WAR file to upload to the
|
||||
server from your local desktop system.</p>
|
||||
|
||||
<p>The .WAR file may include Tomcat specific deployment configuration, by
|
||||
including a Context configuration XML file in
|
||||
<code>/META-INF/context.xml</code>.</p>
|
||||
|
||||
<p>Upload of a WAR file could fail for the following reasons:</p>
|
||||
<ul>
|
||||
<li><em>File uploaded must be a .war</em>
|
||||
<blockquote>
|
||||
<p>The upload install will only accept files which have the filename
|
||||
extension of ".war".</p>
|
||||
</blockquote></li>
|
||||
<li><em>War file already exists on server</em>
|
||||
<blockquote>
|
||||
<p>If a war file of the same name already exists in your Host's
|
||||
appBase the upload will fail. Either undeploy the existing war file
|
||||
from your Host's appBase or upload the new war file using a different
|
||||
name.</p>
|
||||
</blockquote></li>
|
||||
<li><em>File upload failed, no file</em>
|
||||
<blockquote>
|
||||
<p>The file upload failed, no file was received by the server.</p>
|
||||
</blockquote></li>
|
||||
<li><em>Install Upload Failed, Exception:</em>
|
||||
<blockquote>
|
||||
<p>The war file upload or install failed with a Java Exception.
|
||||
The exception message will be listed.</p>
|
||||
</blockquote></li>
|
||||
</ul>
|
||||
|
||||
</blockquote></td></tr></table>
|
||||
|
||||
<table cellpadding="2" cellspacing="0" border="0"><tr><td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="Deployment Notes"><strong>Deployment Notes</strong></a></font></td></tr><tr><td><blockquote>
|
||||
|
||||
<p>If the Host is configured with unpackWARs=true and you install a war
|
||||
file, the war will be unpacked into a directory in your Host appBase
|
||||
directory.</p>
|
||||
|
||||
<p>If the application war or directory is deployed in your Host appBase
|
||||
directory and either the Host is configured with autoDeploy=true or
|
||||
liveDeploy=true, the Context path must match the directory name or
|
||||
war file name without the ".war" extension.</p>
|
||||
|
||||
<p>For security when untrusted users can manage web applications, the
|
||||
Host deployXML flag can be set to false. This prevents untrusted users
|
||||
from installing web applications using a configuration XML file and
|
||||
also prevents them from installing application directories or ".war"
|
||||
files located outside of their Host appBase.</p>
|
||||
|
||||
</blockquote></td></tr></table>
|
||||
|
||||
<table cellpadding="2" cellspacing="0" border="0"><tr><td bgcolor="#828DA6"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="Deploy Message"><strong>Deploy Message</strong></a></font></td></tr><tr><td><blockquote>
|
||||
|
||||
<p>If deployment and startup is successful, you will receive a Message
|
||||
like this:</p>
|
||||
<div align="left"><table border="0" cellpadding="0" cellspacing="4"><tr><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td></tr><tr><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" bgcolor="#ffffff"><pre>
|
||||
OK - Deployed application at context path /foo
|
||||
</pre></td><td width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td></tr><tr><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td><td height="1" width="1" bgcolor="#023264"><img border="0" hspace="0" vspace="0" height="1" width="1" src="./images/void.gif"></td></tr></table></div>
|
||||
|
||||
<p>Otherwise, the Message will start with <code>FAIL</code> and include an
|
||||
error message. Possible causes for problems include:</p>
|
||||
<ul>
|
||||
<li><em>Application already exists at path /foo</em>
|
||||
<blockquote>
|
||||
<p>The context paths for all currently running web applications must be
|
||||
unique. Therefore, you must either undeploy the existing web
|
||||
application using this context path, or choose a different context path
|
||||
for the new one.</p>
|
||||
</blockquote></li>
|
||||
<li><em>Document base does not exist or is not a readable directory</em>
|
||||
<blockquote>
|
||||
<p>The URL specified by the <i>WAR or Directory URL:</i> field must
|
||||
identify a directory on this server that contains the "unpacked" version
|
||||
of a web application, or the absolute URL of a web application archive
|
||||
(WAR) file that contains this application. Correct the value entered for
|
||||
the <i>WAR or Directory URL:</i> field.</p>
|
||||
</blockquote></li>
|
||||
<li><em>Encountered exception</em>
|
||||
<blockquote>
|
||||
<p>An exception was encountered trying to start the new web application.
|
||||
Check the Tomcat 5 logs for the details, but likely explanations include
|
||||
problems parsing your <code>/WEB-INF/web.xml</code> file, or missing
|
||||
classes encountered when initializing application event listeners and
|
||||
filters.</p>
|
||||
</blockquote></li>
|
||||
<li><em>Invalid application URL was specified</em>
|
||||
<blockquote>
|
||||
<p>The URL for the <i>WAR or Directory URL:</i> field that you specified
|
||||
was not valid. Such URLs must start with <code>file:</code>, and URLs
|
||||
for a WAR file must end in ".war".</p>
|
||||
</blockquote></li>
|
||||
<li><em>Invalid context path was specified</em>
|
||||
<blockquote>
|
||||
<p>The context path must start with a slash character, unless you are
|
||||
referencing the ROOT web application -- in which case the context path
|
||||
must be a "/" string.</p>
|
||||
</blockquote></li>
|
||||
<li><em>Context path must match the directory or WAR file name:</em>
|
||||
<blockquote>
|
||||
If the application war or directory is deployed in your Host appBase
|
||||
directory and either the Host is configured with autoDeploy=true or
|
||||
liveDeploy=true, the Context path must match the directory name or
|
||||
war file name without the ".war" extension.
|
||||
</blockquote></li>
|
||||
<li><em>Only web applications in the Host web application directory can
|
||||
be deployed</em>
|
||||
<blockquote>
|
||||
If the Host deployXML flag is set to false this error will happen
|
||||
if an attempt is made to install a web application directory or
|
||||
".war" file outside of the Host appBase directory.
|
||||
</blockquote></li>
|
||||
</ul>
|
||||
|
||||
</blockquote></td></tr></table>
|
||||
</blockquote></td></tr></table><table cellpadding="2" cellspacing="0" border="0"><tr><td bgcolor="#525D76"><font face="arial,helvetica.sanserif" color="#ffffff"><a name="Server Information"><strong>Server Information</strong></a></font></td></tr><tr><td><blockquote>
|
||||
|
||||
<p>This section displays information about Tomcat, the operating system of
|
||||
the server Tomcat is hosted on, and the Java Virtual Machine Tomcat is
|
||||
running in.</p>
|
||||
|
||||
</blockquote></td></tr></table></td></tr><!--FOOTER SEPARATOR--><tr><td colspan="2"><hr size="1" noshade="noshade"></td></tr><!--PAGE FOOTER--><tr><td colspan="2"><div align="center"><font size="-1" color="#525D76"><em>
|
||||
Copyright © 1999-2005, Apache Software Foundation
|
||||
</em></font></div></td></tr></table></body></html>
|
BIN
tomcat/server/webapps/manager/images/add.gif
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
tomcat/server/webapps/manager/images/code.gif
Normal file
After Width: | Height: | Size: 394 B |
BIN
tomcat/server/webapps/manager/images/design.gif
Normal file
After Width: | Height: | Size: 608 B |
BIN
tomcat/server/webapps/manager/images/docs.gif
Normal file
After Width: | Height: | Size: 261 B |
BIN
tomcat/server/webapps/manager/images/fix.gif
Normal file
After Width: | Height: | Size: 345 B |
BIN
tomcat/server/webapps/manager/images/jakarta-logo.gif
Normal file
After Width: | Height: | Size: 8.4 KiB |
BIN
tomcat/server/webapps/manager/images/tomcat.gif
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
tomcat/server/webapps/manager/images/update.gif
Normal file
After Width: | Height: | Size: 627 B |
BIN
tomcat/server/webapps/manager/images/void.gif
Normal file
After Width: | Height: | Size: 43 B |
1267
tomcat/server/webapps/manager/manager-howto.html
Normal file
17
tomcat/server/webapps/manager/manager.xml
Normal file
|
@ -0,0 +1,17 @@
|
|||
<!--
|
||||
|
||||
Context configuration file for the Tomcat Manager Web App
|
||||
|
||||
$Id: manager.xml,v 1.3 2005/05/17 16:51:26 aranganath Exp $
|
||||
|
||||
-->
|
||||
|
||||
|
||||
<Context docBase="${catalina.home}/server/webapps/manager"
|
||||
privileged="true" antiResourceLocking="false" antiJARLocking="false">
|
||||
|
||||
<!-- Link to the user database we will get roles from -->
|
||||
<ResourceLink name="users" global="UserDatabase"
|
||||
type="org.apache.catalina.UserDatabase"/>
|
||||
|
||||
</Context>
|
63
tomcat/server/webapps/manager/status.xsd
Normal file
|
@ -0,0 +1,63 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by peter lin (consultant) -->
|
||||
<!--W3C Schema generated by XMLSPY v5 rel. 4 U (http://www.xmlspy.com)-->
|
||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
|
||||
<xs:complexType name="connector">
|
||||
<xs:sequence>
|
||||
<xs:element name="threadInfo" type="threadInfo"/>
|
||||
<xs:element name="requestInfo" type="requestInfo"/>
|
||||
<xs:element name="workers" type="workers"/>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="name" type="xs:string" use="required"/>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="jvm">
|
||||
<xs:sequence>
|
||||
<xs:element name="memory" type="memory"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="memory">
|
||||
<xs:attribute name="free" type="xs:long" use="required"/>
|
||||
<xs:attribute name="total" type="xs:long" use="required"/>
|
||||
<xs:attribute name="max" type="xs:long" use="required"/>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="requestInfo">
|
||||
<xs:attribute name="maxTime" type="xs:long" use="required"/>
|
||||
<xs:attribute name="processingTime" type="xs:int" use="required"/>
|
||||
<xs:attribute name="requestCount" type="xs:long" use="required"/>
|
||||
<xs:attribute name="errorCount" type="xs:long" use="required"/>
|
||||
<xs:attribute name="bytesReceived" type="xs:long" use="required"/>
|
||||
<xs:attribute name="bytesSent" type="xs:long" use="required"/>
|
||||
</xs:complexType>
|
||||
<xs:element name="status">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="jvm" type="jvm"/>
|
||||
<xs:element name="connector" type="connector"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:complexType name="threadInfo">
|
||||
<xs:attribute name="maxThreads" type="xs:int" use="required"/>
|
||||
<xs:attribute name="minSpareThreads" type="xs:int" use="required"/>
|
||||
<xs:attribute name="maxSpareThreads" type="xs:int" use="required"/>
|
||||
<xs:attribute name="currentThreadCount" type="xs:int" use="required"/>
|
||||
<xs:attribute name="currentThreadsBusy" type="xs:int" use="required"/>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="worker">
|
||||
<xs:attribute name="stage" type="xs:string" use="required"/>
|
||||
<xs:attribute name="requestProcessingTime" type="xs:int" use="required"/>
|
||||
<xs:attribute name="requestBytesSent" type="xs:long" use="required"/>
|
||||
<xs:attribute name="requestBytesRecieved" type="xs:long" use="required"/>
|
||||
<xs:attribute name="remoteAddr" type="xs:string" use="required"/>
|
||||
<xs:attribute name="virtualHost" type="xs:string" use="required"/>
|
||||
<xs:attribute name="method" type="xs:string" use="required"/>
|
||||
<xs:attribute name="currentUri" type="xs:string" use="required"/>
|
||||
<xs:attribute name="currentQueryString" type="xs:string" use="required"/>
|
||||
<xs:attribute name="protocol" type="xs:string" use="required"/>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="workers">
|
||||
<xs:sequence>
|
||||
<xs:element name="worker" type="worker"/>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:schema>
|
96
tomcat/server/webapps/manager/xform.xsl
Normal 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>
|