Anoop's major update. Everything has changed location.
This commit is contained in:
parent
c4c899c895
commit
6251b6c670
438 changed files with 40585 additions and 0 deletions
201
tomcat/LICENSE
Normal file
201
tomcat/LICENSE
Normal file
|
@ -0,0 +1,201 @@
|
|||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
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.
|
13
tomcat/NOTICE
Normal file
13
tomcat/NOTICE
Normal file
|
@ -0,0 +1,13 @@
|
|||
This product includes software developed by
|
||||
The Apache Software Foundation (http://www.apache.org/).
|
||||
|
||||
Java Management Extensions (JMX) support is provided by
|
||||
the MX4J package, which is open source software. The
|
||||
original software and related information is available
|
||||
at http://mx4j.sourceforge.net.
|
||||
|
||||
The Windows Installer is built with the Nullsoft
|
||||
Scriptable Install Sysem (NSIS), which is
|
||||
open source software. The original software and
|
||||
related information is available at
|
||||
http://nsis.sourceforge.net.
|
248
tomcat/RELEASE-NOTES
Normal file
248
tomcat/RELEASE-NOTES
Normal file
|
@ -0,0 +1,248 @@
|
|||
|
||||
|
||||
Apache Tomcat Version @VERSION@
|
||||
Release Notes
|
||||
|
||||
|
||||
$Id: RELEASE-NOTES,v 1.1 2005/02/21 06:54:22 amontano Exp $
|
||||
|
||||
|
||||
============================
|
||||
KNOWN ISSUES IN THIS RELEASE:
|
||||
============================
|
||||
|
||||
* Tomcat 5.0 and JNI Based Applications
|
||||
* Tomcat 5.0 Standard APIs Available
|
||||
* Tomcat 5.0 and XML Parsers
|
||||
* Web application reloading and static fields in shared libraries
|
||||
* JAVAC leaking memory
|
||||
* Tomcat on Linux
|
||||
* Enabling SSI and CGI Support
|
||||
* Security manager URLs
|
||||
* Symlinking static resources
|
||||
* Enabling invoker servlet
|
||||
* Viewing the Tomcat Change Log
|
||||
* When all else fails
|
||||
|
||||
|
||||
-------------------------------------
|
||||
Tomcat 5.0 and JNI Based Applications:
|
||||
-------------------------------------
|
||||
|
||||
Applications that require native libraries must ensure that the libraries have
|
||||
been loaded prior to use. Typically, this is done with a call like:
|
||||
|
||||
static {
|
||||
System.loadLibrary("path-to-library-file");
|
||||
}
|
||||
|
||||
in some class. However, the application must also ensure that the library is
|
||||
not loaded more than once. If the above code were placed in a class inside
|
||||
the web application (i.e. under /WEB-INF/classes or /WEB-INF/lib), and the
|
||||
application were reloaded, the loadLibrary() call would be attempted a second
|
||||
time.
|
||||
|
||||
To avoid this problem, place classes that load native libraries outside of the
|
||||
web application, and ensure that the loadLibrary() call is executed only once
|
||||
during the lifetime of a particular JVM.
|
||||
|
||||
|
||||
----------------------------------
|
||||
Tomcat 5.0 Standard APIs Available:
|
||||
----------------------------------
|
||||
|
||||
A standard installation of Tomcat 5 makes all of the following APIs available
|
||||
for use by web applications (by placing them in "common/lib" or "shared/lib"):
|
||||
* ant.jar (Apache Ant 1.6 or later)
|
||||
* commons-collections*.jar (Commons Collections 2.1 or later)
|
||||
* commons-dbcp.jar (Commons DBCP 1.1 or later)
|
||||
* commons-el.jar (Commons Expression Language 1.0)
|
||||
* commons-logging-api.jar (Commons Logging API 1.0.3 or later)
|
||||
* commons-pool.jar (Commons Pool 1.1 or later)
|
||||
* jasper-compiler.jar (Jasper 2 Compiler)
|
||||
* jasper-runtime.jar (Jasper 2 Runtime)
|
||||
* jsp-api.jar (JSP 2.0 API)
|
||||
* commons-el.jar (JSP 2.0 Expression Language)
|
||||
* naming-common.jar (JNDI Context implementation)
|
||||
* naming-factory.jar (JNDI object factories for J2EE ENC support)
|
||||
* naming-resources.jar (JNDI DirContext implementations)
|
||||
* servlet-api.jar (Servlet 2.4 API)
|
||||
|
||||
You can make additional APIs available to all of your web applications by
|
||||
putting unpacked classes into a "classes" directory (not created by default),
|
||||
or by placing them in JAR files in the "lib" directory.
|
||||
|
||||
Tomcat 5.0 also makes Xerces 2 and the Commons Logging API (release 1.0.3)
|
||||
available to web applications.
|
||||
|
||||
Please note that the JMX API is available to applications as well. The jmx.jar
|
||||
file used to be located in the common/lib directory, but was moved to the bin
|
||||
directory as part of the Tomcat 5.0.20 release. The jmx.jar is in Tomcat's
|
||||
bootstrap classpath (included via the Class Path line in bootstrap.jar's manifest).
|
||||
|
||||
|
||||
--------------------------
|
||||
Tomcat 5.0 and XML Parsers:
|
||||
--------------------------
|
||||
|
||||
As described above, Tomcat 5.0 makes an XML parser (and many other standard
|
||||
APIs) available to web applications. This parser is also used internally
|
||||
to parse web.xml files and the server.xml configuration file. If you wish,
|
||||
you may replace the "xercesImpl.jar" file in "common/endorsed" with another
|
||||
XML parser, as long as it is compatible with the JAXP 1.2 APIs.
|
||||
|
||||
Xerces 2.6.2 is included.
|
||||
|
||||
|
||||
---------------------------------------------------------------
|
||||
Web application reloading and static fields in shared libraries:
|
||||
---------------------------------------------------------------
|
||||
|
||||
Some shared libraries (many are part of the JDK) keep references to objects
|
||||
instantiated by the web application. To avoid class loading related problems
|
||||
(ClassCastExceptions, messages indicating that the classloader
|
||||
is stopped, etc.), the shared libraries state should be reinitialized.
|
||||
|
||||
Something which might help is to avoid putting classes which would be
|
||||
referenced by a shared static field in the web application classloader,
|
||||
and putting them in the shared classloader instead (JARs should be put in the
|
||||
"lib" folder, and classes should be put in the "classes" folder).
|
||||
|
||||
|
||||
--------------------
|
||||
JAVAC leaking memory:
|
||||
--------------------
|
||||
|
||||
The Java compiler leaks memory each time a class is compiled. Web applications
|
||||
containing hundreds of JSP files may as a result trigger out of memory errors
|
||||
once a significant number of pages have been accessed. The memory can only be
|
||||
freed by stopping Tomcat and then restarting it.
|
||||
|
||||
The JSP command line compiler (JSPC) can also be used to precompile the JSPs.
|
||||
|
||||
Note: This issue has been fixed in Sun JDK 1.4.x.
|
||||
|
||||
|
||||
---------------
|
||||
Tomcat on Linux:
|
||||
---------------
|
||||
|
||||
Virtual machine crashes can be experienced when using certain combinations of
|
||||
kernel / glibc under Linux with Sun Hotspot 1.2 to 1.3. The crashes were
|
||||
reported to occur mostly on startup. Sun JDK 1.4 does not exhibit the problems,
|
||||
and neither does IBM JDK for Linux.
|
||||
|
||||
The problems can be fixed by reducing the default stack size. At bash shell,
|
||||
do "ulimit -s 2048"; use "limit stacksize 2048" for tcsh.
|
||||
|
||||
GLIBC 2.2 / Linux 2.4 users should also define an environment variable:
|
||||
export LD_ASSUME_KERNEL=2.2.5
|
||||
|
||||
Additionally, Redhat Linux 9.0 users should use the same setting, to avoid
|
||||
stability problems.
|
||||
|
||||
|
||||
----------------------------
|
||||
Enabling SSI and CGI Support:
|
||||
----------------------------
|
||||
|
||||
Having CGI and SSI available to web applications created security problems when
|
||||
using a security manager (as a malicious web application could use them to
|
||||
sidestep the security manager access control). In Tomcat 5.0, they have been
|
||||
disabled by default, as our goal is to provide a fully secure default
|
||||
configuration. However, CGI and SSI remain available.
|
||||
|
||||
|
||||
To enable CGI:
|
||||
* rename the file $CATALINA_HOME/server/lib/servlets-cgi.renametojar to
|
||||
$CATALINA_HOME/server/lib/servlets-cgi.jar.
|
||||
* in $CATALINA_HOME/conf/web.xml, you will need to uncomment 2 areas, the
|
||||
servlet declaration and the servlet mapping. The servlet declaration
|
||||
looks similar to this:
|
||||
<servlet>
|
||||
<servlet-name>cgi</servlet-name>
|
||||
...
|
||||
</servlet>
|
||||
|
||||
While the servlet mapping looks similar to this:
|
||||
<servlet-mapping>
|
||||
<servlet-name>cgi</servlet-name>
|
||||
<url-pattern>/cgi-bin/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
Alternately, these servlet declarations and mappings
|
||||
can be added to your web application deployment descriptor.
|
||||
|
||||
To enable SSI:
|
||||
* rename the file $CATALINA_HOME/server/lib/servlets-ssi.renametojar to
|
||||
$CATALINA_HOME/server/lib/servlets-ssi.jar.
|
||||
* in $CATALINA_HOME/conf/web.xml, you will need to uncomment 2 areas, the
|
||||
servlet declaration and the servlet mapping. The servlet declaration
|
||||
looks similar to this:
|
||||
<servlet>
|
||||
<servlet-name>ssi</servlet-name>
|
||||
...
|
||||
</servlet>
|
||||
|
||||
While the servlet mapping looks similar to this:
|
||||
<servlet-mapping>
|
||||
<servlet-name>ssi</servlet-name>
|
||||
<url-pattern>*.shtml</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
Alternately, these servlet declarations and mappings
|
||||
can be added to your web application deployment descriptor.
|
||||
|
||||
|
||||
|
||||
---------------------
|
||||
Security manager URLs:
|
||||
---------------------
|
||||
|
||||
The URLs to be used in the policy file to grant permissions to JARs located
|
||||
inside the web application repositories have changed as of Tomcat 4.1.
|
||||
|
||||
In Tomcat 4.0, codeBase URLs for JARs loaded from web application
|
||||
repositories were:
|
||||
jar:file:${catalina.home}/webapps/examples/WEB-INF/lib/driver.jar!/-
|
||||
|
||||
In Tomcat 4.1 and 5.0, they should be:
|
||||
file:${catalina.home}/webapps/examples/WEB-INF/lib/driver.jar
|
||||
|
||||
|
||||
---------------------------
|
||||
Symlinking static resources:
|
||||
---------------------------
|
||||
|
||||
By default, Unix symlinks will not work when used in a web application to link
|
||||
resources located outside the web application root directory.
|
||||
|
||||
This behavior is optional, and the "allowLinking" flag may be used to disable
|
||||
the check.
|
||||
|
||||
|
||||
------------------------
|
||||
Enabling invoker servlet:
|
||||
------------------------
|
||||
|
||||
Starting with Tomcat 4.1.12, the invoker servlet is no longer available by
|
||||
default in all webapps. Enabling it for all webapps is possible by editing
|
||||
$CATALINA_HOME/conf/web.xml to uncomment the "/servlet/*" servlet-mapping
|
||||
definition.
|
||||
|
||||
Using the invoker servlet in a production environment is not recommended and
|
||||
is unsupported.
|
||||
|
||||
------------------------
|
||||
Viewing the Tomcat Change Log
|
||||
------------------------
|
||||
|
||||
The Change Log for tomcat 5 is available at
|
||||
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/changelog.html.
|
||||
|
||||
-------------------
|
||||
When all else fails:
|
||||
-------------------
|
||||
|
||||
See the FAQ
|
||||
http://jakarta.apache.org/tomcat/faq/
|
144
tomcat/RUNNING.txt
Normal file
144
tomcat/RUNNING.txt
Normal file
|
@ -0,0 +1,144 @@
|
|||
$Id: RUNNING.txt,v 1.1 2005/02/21 06:54:22 amontano Exp $
|
||||
|
||||
|
||||
Running The Tomcat 5 Servlet/JSP Container
|
||||
==========================================
|
||||
|
||||
This subproject contains Tomcat 5, a server that implements the Servlet 2.4
|
||||
and JSP 2.0 specifications from the Java Community Process
|
||||
<http://www.jcp.org/>. In order to install and run this container, you must do
|
||||
the following:
|
||||
|
||||
|
||||
(0) Download and Install a Java Development Kit
|
||||
|
||||
* Download a Java Development Kit (JDK) release (version 1.3 or later) from:
|
||||
|
||||
http://java.sun.com/j2se/
|
||||
|
||||
* Install the JDK according to the instructions included with the release.
|
||||
|
||||
* Set an environment variable JAVA_HOME to the pathname of the directory
|
||||
into which you installed the JDK release.
|
||||
|
||||
|
||||
(1) Download and Install the Tomcat 5 Binary Distribution
|
||||
|
||||
NOTE: As an alternative to downloading a binary distribution, you can create
|
||||
your own from the Tomcat source repository, as described in "BUILDING.txt".
|
||||
If you do this, the value to use for "${catalina.home}" will be the "dist"
|
||||
subdirectory of your source distribution.
|
||||
|
||||
* Download a binary distribution of Tomcat from:
|
||||
|
||||
http://jakarta.apache.org/site/binindex.cgi
|
||||
|
||||
* Unpack the binary distribution into a convenient location so that the
|
||||
distribution resides in its own directory (conventionally named
|
||||
"jakarta-tomcat-5"). For the purposes of the remainder of this document,
|
||||
the symbolic name "$CATALINA_HOME" is used to refer to the full
|
||||
pathname of the release directory.
|
||||
|
||||
|
||||
(2) Start Up Tomcat 5
|
||||
|
||||
Tomcat 5 can be started by executing the following commands:
|
||||
|
||||
$CATALINA_HOME\bin\startup.bat (Windows)
|
||||
|
||||
$CATALINA_HOME/bin/startup.sh (Unix)
|
||||
|
||||
After startup, the default web applications included with Tomcat 5 will be
|
||||
available by visiting:
|
||||
|
||||
http://localhost:8080/
|
||||
|
||||
Further information about configuring and running Tomcat 5 can be found in
|
||||
the documentation included here, as well as on the Tomcat web site:
|
||||
|
||||
http://jakarta.apache.org/tomcat/
|
||||
|
||||
|
||||
(3) Shut Down Tomcat 5
|
||||
|
||||
Tomcat 5 can be shut down by executing the following command:
|
||||
|
||||
$CATALINA_HOME\bin\shutdown (Windows)
|
||||
|
||||
$CATALINA_HOME/bin/shutdown.sh (Unix)
|
||||
|
||||
|
||||
(4) Advanced Configuration - Multiple Tomcat 5 Instances
|
||||
|
||||
In many circumstances, it is desirable to have a single copy of a Tomcat 5
|
||||
binary distribution shared among multiple users on the same server. To make
|
||||
this possible, you can pass a "-Dcatalina.base=$CATALINA_BASE" argument when
|
||||
executing the startup command (see (2)). In this
|
||||
"-Dcatalina.base=$CATALINA_BASE" argument, replace $CATALINA_BASE with the
|
||||
directory that contains the files for your 'personal' Tomcat 5 instance.
|
||||
|
||||
When you use this "-Dcatalina.base=$CATALINA_BASE" argument, Tomcat 5 will
|
||||
calculate all relative references for files in the following directories based
|
||||
on the value of $CATALINA_BASE instead of $CATALINA_HOME :
|
||||
|
||||
* conf - Server configuration files (including server.xml)
|
||||
|
||||
* logs - Log and output files
|
||||
|
||||
* shared - For classes and resources that must be shared across all web
|
||||
applications
|
||||
|
||||
* webapps - Automatically loaded web applications
|
||||
|
||||
* work - Temporary working directories for web applications
|
||||
|
||||
* temp - Directory used by the JVM for temporary files (java.io.tmpdir)
|
||||
|
||||
If you do not pass the "-Dcatalina.base=$CATALINA_BASE" argument to the startup command, $CATALINA_BASE will default to the same value as $CATALINA_HOME (which means that the same directory is used for all relative path resolutions).
|
||||
|
||||
The administration and manager web applications, which are defined in the
|
||||
$CATALINA_BASE/conf/Catalina/localhost/admin.xml and $CATALINA_BASE/conf/Catalina/localhost/manager.xml files, will
|
||||
not run in that configuration, unless either:
|
||||
- The path specified in the docBase attribute of the Context element is made
|
||||
absolute, and replaced respectively by $CATALINA_HOME/server/webapps/admin
|
||||
and $CATALINA_HOME/server/webapps/manager
|
||||
- Both web applications are copied or moved to $CATALINA_BASE, and the path specified in the docBase attribute of the Context element is modified appropriately.
|
||||
- Both web applications are disabled by removing $CATALINA_BASE/conf/Catalina/localhost/admin.xml
|
||||
and $CATALINA_BASE/conf/Catalina/localhost/manager.xml
|
||||
|
||||
|
||||
(5) Troubleshooting:
|
||||
|
||||
There are only really 3 things likely to go wrong during the stand-alone
|
||||
Tomcat 5 install:
|
||||
|
||||
1) The most common hiccup is when another web server (or any process for that
|
||||
matter) has laid claim to port 8080. This is the default HTTP port that
|
||||
Tomcat attempts to bind to at startup. To change this, open the file:
|
||||
|
||||
$CATALINA_HOME/conf/server.xml
|
||||
|
||||
and search for '8080'. Change it to a port that isn't in use, and is
|
||||
greater than 1024, as ports less than or equal to 1024 require superuser
|
||||
access to bind under UNIX.
|
||||
|
||||
Restart Tomcat and you're in business. Be sure that you replace the "8080"
|
||||
in the URL you're using to access Tomcat. For example, if you change the
|
||||
port to 1977, you would request the URL http://localhost:1977/ in your browser.
|
||||
|
||||
2) An "out of environment space" error when running the batch files in
|
||||
Windows 95, 98, or ME operating systems.
|
||||
|
||||
Right-click on the STARTUP.BAT and SHUTDOWN.BAT files. Click on
|
||||
"Properties", then on the "Memory" tab. For the "Initial environment" field,
|
||||
enter in something like 4096.
|
||||
|
||||
After you click apply, Windows will create shortcuts which you can use to start and stop the container.
|
||||
|
||||
3) The 'localhost' machine isn't found. This could happen if you're behind a
|
||||
proxy. If that's the case, make sure the proxy configuration for your
|
||||
browser knows that you shouldn't be going through the proxy to access the
|
||||
"localhost".
|
||||
|
||||
In Netscape, this is under Edit/Preferences -> Advanced/Proxies, and in
|
||||
Internet Explorer, Tools -> Internet Options -> Connections -> LAN Settings.
|
BIN
tomcat/bin/LauncherBootstrap.class
Normal file
BIN
tomcat/bin/LauncherBootstrap.class
Normal file
Binary file not shown.
BIN
tomcat/bin/bootstrap.jar
Normal file
BIN
tomcat/bin/bootstrap.jar
Normal file
Binary file not shown.
192
tomcat/bin/catalina.50.bat
Normal file
192
tomcat/bin/catalina.50.bat
Normal file
|
@ -0,0 +1,192 @@
|
|||
@echo off
|
||||
if "%OS%" == "Windows_NT" setlocal
|
||||
rem ---------------------------------------------------------------------------
|
||||
rem Start/Stop Script for the CATALINA Server
|
||||
rem
|
||||
rem Environment Variable Prequisites
|
||||
rem
|
||||
rem CATALINA_HOME May point at your Catalina "build" directory.
|
||||
rem
|
||||
rem CATALINA_BASE (Optional) Base directory for resolving dynamic portions
|
||||
rem of a Catalina installation. If not present, resolves to
|
||||
rem the same directory that CATALINA_HOME points to.
|
||||
rem
|
||||
rem CATALINA_OPTS (Optional) Java runtime options used when the "start",
|
||||
rem "stop", or "run" command is executed.
|
||||
rem
|
||||
rem CATALINA_TMPDIR (Optional) Directory path location of temporary directory
|
||||
rem the JVM should use (java.io.tmpdir). Defaults to
|
||||
rem %CATALINA_BASE%\temp.
|
||||
rem
|
||||
rem JAVA_HOME Must point at your Java Development Kit installation.
|
||||
rem
|
||||
rem JAVA_OPTS (Optional) Java runtime options used when the "start",
|
||||
rem "stop", or "run" command is executed.
|
||||
rem
|
||||
rem JSSE_HOME (Optional) May point at your Java Secure Sockets Extension
|
||||
rem (JSSE) installation, whose JAR files will be added to the
|
||||
rem system class path used to start Tomcat.
|
||||
rem
|
||||
rem JPDA_TRANSPORT (Optional) JPDA transport used when the "jpda start"
|
||||
rem command is executed. The default is "dt_shmem".
|
||||
rem
|
||||
rem JPDA_ADDRESS (Optional) Java runtime options used when the "jpda start"
|
||||
rem command is executed. The default is "jdbconn".
|
||||
rem
|
||||
rem $Id: catalina.50.bat,v 1.1 2005/02/21 06:54:22 amontano Exp $
|
||||
rem ---------------------------------------------------------------------------
|
||||
|
||||
rem Guess CATALINA_HOME if not defined
|
||||
set CURRENT_DIR=%cd%
|
||||
if not "%CATALINA_HOME%" == "" goto gotHome
|
||||
set CATALINA_HOME=%CURRENT_DIR%
|
||||
if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
|
||||
cd ..
|
||||
set CATALINA_HOME=%cd%
|
||||
cd %CURRENT_DIR%
|
||||
:gotHome
|
||||
if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
|
||||
echo The CATALINA_HOME environment variable is not defined correctly
|
||||
echo This environment variable is needed to run this program
|
||||
goto end
|
||||
:okHome
|
||||
|
||||
rem Get standard environment variables
|
||||
if exist "%CATALINA_HOME%\bin\setenv.bat" call "%CATALINA_HOME%\bin\setenv.bat"
|
||||
|
||||
rem Get standard Java environment variables
|
||||
if exist "%CATALINA_HOME%\bin\setclasspath.bat" goto okSetclasspath
|
||||
echo Cannot find %CATALINA_HOME%\bin\setclasspath.bat
|
||||
echo This file is needed to run this program
|
||||
goto end
|
||||
:okSetclasspath
|
||||
set BASEDIR=%CATALINA_HOME%
|
||||
call "%CATALINA_HOME%\bin\setclasspath.bat"
|
||||
|
||||
rem Add on extra jar files to CLASSPATH
|
||||
if "%JSSE_HOME%" == "" goto noJsse
|
||||
set CLASSPATH=%CLASSPATH%;%JSSE_HOME%\lib\jcert.jar;%JSSE_HOME%\lib\jnet.jar;%JSSE_HOME%\lib\jsse.jar
|
||||
:noJsse
|
||||
set CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\bin\bootstrap.jar
|
||||
|
||||
if not "%CATALINA_BASE%" == "" goto gotBase
|
||||
set CATALINA_BASE=%CATALINA_HOME%
|
||||
:gotBase
|
||||
|
||||
if not "%CATALINA_TMPDIR%" == "" goto gotTmpdir
|
||||
set CATALINA_TMPDIR=%CATALINA_BASE%\temp
|
||||
:gotTmpdir
|
||||
|
||||
rem ----- Execute The Requested Command ---------------------------------------
|
||||
|
||||
echo Using CATALINA_BASE: %CATALINA_BASE%
|
||||
echo Using CATALINA_HOME: %CATALINA_HOME%
|
||||
echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR%
|
||||
echo Using JAVA_HOME: %JAVA_HOME%
|
||||
|
||||
set _EXECJAVA=%_RUNJAVA%
|
||||
set MAINCLASS=org.apache.catalina.startup.Bootstrap
|
||||
set ACTION=start
|
||||
set SECURITY_POLICY_FILE=
|
||||
set DEBUG_OPTS=
|
||||
set JPDA=
|
||||
|
||||
if not ""%1"" == ""jpda"" goto noJpda
|
||||
set JPDA=jpda
|
||||
if not "%JPDA_TRANSPORT%" == "" goto gotJpdaTransport
|
||||
set JPDA_TRANSPORT=dt_shmem
|
||||
:gotJpdaTransport
|
||||
if not "%JPDA_ADDRESS%" == "" goto gotJpdaAddress
|
||||
set JPDA_ADDRESS=jdbconn
|
||||
:gotJpdaAddress
|
||||
shift
|
||||
:noJpda
|
||||
|
||||
if ""%1"" == ""debug"" goto doDebug
|
||||
if ""%1"" == ""run"" goto doRun
|
||||
if ""%1"" == ""start"" goto doStart
|
||||
if ""%1"" == ""stop"" goto doStop
|
||||
if ""%1"" == ""version"" goto doVersion
|
||||
|
||||
echo Usage: catalina ( commands ... )
|
||||
echo commands:
|
||||
echo debug Start Catalina in a debugger
|
||||
echo debug -security Debug Catalina with a security manager
|
||||
echo jpda start Start Catalina under JPDA debugger
|
||||
echo run Start Catalina in the current window
|
||||
echo run -security Start in the current window with security manager
|
||||
echo start Start Catalina in a separate window
|
||||
echo start -security Start in a separate window with security manager
|
||||
echo stop Stop Catalina
|
||||
echo version What version of tomcat are you running?
|
||||
goto end
|
||||
|
||||
:doDebug
|
||||
shift
|
||||
set _EXECJAVA=%_RUNJDB%
|
||||
set DEBUG_OPTS=-sourcepath "%CATALINA_HOME%\..\..\jakarta-tomcat-catalina\catalina\src\share"
|
||||
if not ""%1"" == ""-security"" goto execCmd
|
||||
shift
|
||||
echo Using Security Manager
|
||||
set SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy
|
||||
goto execCmd
|
||||
|
||||
:doRun
|
||||
shift
|
||||
if not ""%1"" == ""-security"" goto execCmd
|
||||
shift
|
||||
echo Using Security Manager
|
||||
set SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy
|
||||
goto execCmd
|
||||
|
||||
:doStart
|
||||
shift
|
||||
if not "%OS%" == "Windows_NT" goto noTitle
|
||||
set _EXECJAVA=start "Tomcat" %_RUNJAVA%
|
||||
goto gotTitle
|
||||
:noTitle
|
||||
set _EXECJAVA=start %_RUNJAVA%
|
||||
:gotTitle
|
||||
if not ""%1"" == ""-security"" goto execCmd
|
||||
shift
|
||||
echo Using Security Manager
|
||||
set SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy
|
||||
goto execCmd
|
||||
|
||||
:doStop
|
||||
shift
|
||||
set ACTION=stop
|
||||
goto execCmd
|
||||
|
||||
:doVersion
|
||||
%_EXECJAVA% -classpath "%CATALINA_HOME%\server\lib\catalina.jar" org.apache.catalina.util.ServerInfo
|
||||
goto end
|
||||
|
||||
|
||||
:execCmd
|
||||
rem Get remaining unshifted command line arguments and save them in the
|
||||
set CMD_LINE_ARGS=
|
||||
:setArgs
|
||||
if ""%1""=="""" goto doneSetArgs
|
||||
set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
|
||||
shift
|
||||
goto setArgs
|
||||
:doneSetArgs
|
||||
|
||||
rem Execute Java with the applicable properties
|
||||
if not "%JPDA%" == "" goto doJpda
|
||||
if not "%SECURITY_POLICY_FILE%" == "" goto doSecurity
|
||||
%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -classpath "%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
|
||||
goto end
|
||||
:doSecurity
|
||||
%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -classpath "%CLASSPATH%" -Djava.security.manager -Djava.security.policy=="%SECURITY_POLICY_FILE%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
|
||||
goto end
|
||||
:doJpda
|
||||
if not "%SECURITY_POLICY_FILE%" == "" goto doSecurityJpda
|
||||
%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% -Xdebug -Xrunjdwp:transport=%JPDA_TRANSPORT%,address=%JPDA_ADDRESS%,server=y,suspend=n %DEBUG_OPTS% -classpath "%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
|
||||
goto end
|
||||
:doSecurityJpda
|
||||
%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% -Xrunjdwp:transport=%JPDA_TRANSPORT%,address=%JPDA_ADDRESS%,server=y,suspend=n %DEBUG_OPTS% -classpath "%CLASSPATH%" -Djava.security.manager -Djava.security.policy=="%SECURITY_POLICY_FILE%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
|
||||
goto end
|
||||
|
||||
:end
|
287
tomcat/bin/catalina.50.sh
Normal file
287
tomcat/bin/catalina.50.sh
Normal file
|
@ -0,0 +1,287 @@
|
|||
#!/bin/sh
|
||||
# -----------------------------------------------------------------------------
|
||||
# Start/Stop Script for the CATALINA Server
|
||||
#
|
||||
# Environment Variable Prequisites
|
||||
#
|
||||
# CATALINA_HOME May point at your Catalina "build" directory.
|
||||
#
|
||||
# CATALINA_BASE (Optional) Base directory for resolving dynamic portions
|
||||
# of a Catalina installation. If not present, resolves to
|
||||
# the same directory that CATALINA_HOME points to.
|
||||
#
|
||||
# CATALINA_OPTS (Optional) Java runtime options used when the "start",
|
||||
# "stop", or "run" command is executed.
|
||||
#
|
||||
# CATALINA_TMPDIR (Optional) Directory path location of temporary directory
|
||||
# the JVM should use (java.io.tmpdir). Defaults to
|
||||
# $CATALINA_BASE/temp.
|
||||
#
|
||||
# JAVA_HOME Must point at your Java Development Kit installation.
|
||||
#
|
||||
# JAVA_OPTS (Optional) Java runtime options used when the "start",
|
||||
# "stop", or "run" command is executed.
|
||||
#
|
||||
# JPDA_TRANSPORT (Optional) JPDA transport used when the "jpda start"
|
||||
# command is executed. The default is "dt_socket".
|
||||
#
|
||||
# JPDA_ADDRESS (Optional) Java runtime options used when the "jpda start"
|
||||
# command is executed. The default is 8000.
|
||||
#
|
||||
# JSSE_HOME (Optional) May point at your Java Secure Sockets Extension
|
||||
# (JSSE) installation, whose JAR files will be added to the
|
||||
# system class path used to start Tomcat.
|
||||
#
|
||||
# CATALINA_PID (Optional) Path of the file which should contains the pid
|
||||
# of catalina startup java process, when start (fork) is used
|
||||
#
|
||||
# $Id: catalina.50.sh,v 1.1 2005/02/21 06:54:22 amontano Exp $
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
# OS specific support. $var _must_ be set to either true or false.
|
||||
cygwin=false
|
||||
os400=false
|
||||
case "`uname`" in
|
||||
CYGWIN*) cygwin=true;;
|
||||
OS400*) os400=true;;
|
||||
esac
|
||||
|
||||
# resolve links - $0 may be a softlink
|
||||
PRG="$0"
|
||||
|
||||
while [ -h "$PRG" ]; do
|
||||
ls=`ls -ld "$PRG"`
|
||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||
if expr "$link" : '.*/.*' > /dev/null; then
|
||||
PRG="$link"
|
||||
else
|
||||
PRG=`dirname "$PRG"`/"$link"
|
||||
fi
|
||||
done
|
||||
|
||||
# Get standard environment variables
|
||||
PRGDIR=`dirname "$PRG"`
|
||||
|
||||
# Only set CATALINA_HOME if not already set
|
||||
[ -z "$CATALINA_HOME" ] && CATALINA_HOME=`cd "$PRGDIR/.." ; pwd`
|
||||
|
||||
if [ -r "$CATALINA_HOME"/bin/setenv.sh ]; then
|
||||
. "$CATALINA_HOME"/bin/setenv.sh
|
||||
fi
|
||||
|
||||
# For Cygwin, ensure paths are in UNIX format before anything is touched
|
||||
if $cygwin; then
|
||||
[ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
|
||||
[ -n "$CATALINA_HOME" ] && CATALINA_HOME=`cygpath --unix "$CATALINA_HOME"`
|
||||
[ -n "$CATALINA_BASE" ] && CATALINA_BASE=`cygpath --unix "$CATALINA_BASE"`
|
||||
[ -n "$CLASSPATH" ] && CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
|
||||
[ -n "$JSSE_HOME" ] && JSSE_HOME=`cygpath --absolute --unix "$JSSE_HOME"`
|
||||
fi
|
||||
|
||||
# For OS400
|
||||
if $os400; then
|
||||
# Set job priority to standard for interactive (interactive - 6) by using
|
||||
# the interactive priority - 6, the helper threads that respond to requests
|
||||
# will be running at the same priority as interactive jobs.
|
||||
COMMAND='chgjob job('$JOBNAME') runpty(6)'
|
||||
system $COMMAND
|
||||
|
||||
# Enable multi threading
|
||||
export QIBM_MULTI_THREADED=Y
|
||||
fi
|
||||
|
||||
# Get standard Java environment variables
|
||||
if [ -r "$CATALINA_HOME"/bin/setclasspath.sh ]; then
|
||||
BASEDIR="$CATALINA_HOME"
|
||||
. "$CATALINA_HOME"/bin/setclasspath.sh
|
||||
else
|
||||
echo "Cannot find $CATALINA_HOME/bin/setclasspath.sh"
|
||||
echo "This file is needed to run this program"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Add on extra jar files to CLASSPATH
|
||||
if [ -n "$JSSE_HOME" ]; then
|
||||
CLASSPATH="$CLASSPATH":"$JSSE_HOME"/lib/jcert.jar:"$JSSE_HOME"/lib/jnet.jar:"$JSSE_HOME"/lib/jsse.jar
|
||||
fi
|
||||
CLASSPATH="$CLASSPATH":"$CATALINA_HOME"/bin/bootstrap.jar:"$CATALINA_HOME"/bin/commons-logging-api.jar
|
||||
|
||||
if [ -z "$CATALINA_BASE" ] ; then
|
||||
CATALINA_BASE="$CATALINA_HOME"
|
||||
fi
|
||||
|
||||
if [ -z "$CATALINA_TMPDIR" ] ; then
|
||||
# Define the java.io.tmpdir to use for Catalina
|
||||
CATALINA_TMPDIR="$CATALINA_BASE"/temp
|
||||
fi
|
||||
|
||||
# For Cygwin, switch paths to Windows format before running java
|
||||
if $cygwin; then
|
||||
JAVA_HOME=`cygpath --absolute --windows "$JAVA_HOME"`
|
||||
CATALINA_HOME=`cygpath --absolute --windows "$CATALINA_HOME"`
|
||||
CATALINA_BASE=`cygpath --absolute --windows "$CATALINA_BASE"`
|
||||
CATALINA_TMPDIR=`cygpath --absolute --windows "$CATALINA_TMPDIR"`
|
||||
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
|
||||
[ -n "$JSSE_HOME" ] && JSSE_HOME=`cygpath --absolute --windows "$JSSE_HOME"`
|
||||
JAVA_ENDORSED_DIRS=`cygpath --path --windows "$JAVA_ENDORSED_DIRS"`
|
||||
fi
|
||||
|
||||
# ----- Execute The Requested Command -----------------------------------------
|
||||
|
||||
echo "Using CATALINA_BASE: $CATALINA_BASE"
|
||||
echo "Using CATALINA_HOME: $CATALINA_HOME"
|
||||
echo "Using CATALINA_TMPDIR: $CATALINA_TMPDIR"
|
||||
echo "Using JAVA_HOME: $JAVA_HOME"
|
||||
|
||||
if [ "$1" = "jpda" ] ; then
|
||||
if [ -z "$JPDA_TRANSPORT" ]; then
|
||||
JPDA_TRANSPORT="dt_socket"
|
||||
fi
|
||||
if [ -z "$JPDA_ADDRESS" ]; then
|
||||
JPDA_ADDRESS="8000"
|
||||
fi
|
||||
if [ -z "$JPDA_OPTS" ]; then
|
||||
JPDA_OPTS="-Xdebug -Xrunjdwp:transport=$JPDA_TRANSPORT,address=$JPDA_ADDRESS,server=y,suspend=n"
|
||||
fi
|
||||
CATALINA_OPTS="$CATALINA_OPTS $JPDA_OPTS"
|
||||
shift
|
||||
fi
|
||||
|
||||
if [ "$1" = "debug" ] ; then
|
||||
|
||||
if $os400; then
|
||||
echo "Debug command not available on OS400"
|
||||
exit 1
|
||||
else
|
||||
shift
|
||||
if [ "$1" = "-security" ] ; then
|
||||
echo "Using Security Manager"
|
||||
shift
|
||||
exec "$_RUNJDB" $JAVA_OPTS $CATALINA_OPTS \
|
||||
-classpath "$CLASSPATH" \
|
||||
-sourcepath "$CATALINA_HOME"/../../jakarta-tomcat-catalina/catalina/src/share \
|
||||
-Djava.security.manager \
|
||||
-Djava.security.policy=="$CATALINA_BASE"/conf/catalina.policy \
|
||||
-Dcatalina.base="$CATALINA_BASE" \
|
||||
-Dcatalina.home="$CATALINA_HOME" \
|
||||
-Djava.io.tmpdir="$CATALINA_TMPDIR" \
|
||||
org.apache.catalina.startup.Bootstrap "$@" start
|
||||
else
|
||||
exec "$_RUNJDB" $JAVA_OPTS $CATALINA_OPTS \
|
||||
-classpath "$CLASSPATH" \
|
||||
-sourcepath "$CATALINA_HOME"/../../jakarta-tomcat-catalina/catalina/src/share \
|
||||
-Dcatalina.base="$CATALINA_BASE" \
|
||||
-Dcatalina.home="$CATALINA_HOME" \
|
||||
-Djava.io.tmpdir="$CATALINA_TMPDIR" \
|
||||
org.apache.catalina.startup.Bootstrap "$@" start
|
||||
fi
|
||||
fi
|
||||
|
||||
elif [ "$1" = "run" ]; then
|
||||
|
||||
shift
|
||||
if [ "$1" = "-security" ] ; then
|
||||
echo "Using Security Manager"
|
||||
shift
|
||||
exec "$_RUNJAVA" $JAVA_OPTS $CATALINA_OPTS \
|
||||
-classpath "$CLASSPATH" \
|
||||
-Djava.security.manager \
|
||||
-Djava.security.policy=="$CATALINA_BASE"/conf/catalina.policy \
|
||||
-Dcatalina.base="$CATALINA_BASE" \
|
||||
-Dcatalina.home="$CATALINA_HOME" \
|
||||
-Djava.io.tmpdir="$CATALINA_TMPDIR" \
|
||||
org.apache.catalina.startup.Bootstrap "$@" start
|
||||
else
|
||||
exec "$_RUNJAVA" $JAVA_OPTS $CATALINA_OPTS \
|
||||
-classpath "$CLASSPATH" \
|
||||
-Dcatalina.base="$CATALINA_BASE" \
|
||||
-Dcatalina.home="$CATALINA_HOME" \
|
||||
-Djava.io.tmpdir="$CATALINA_TMPDIR" \
|
||||
org.apache.catalina.startup.Bootstrap "$@" start
|
||||
fi
|
||||
|
||||
elif [ "$1" = "start" ] ; then
|
||||
|
||||
shift
|
||||
touch "$CATALINA_BASE"/logs/catalina.out
|
||||
if [ "$1" = "-security" ] ; then
|
||||
echo "Using Security Manager"
|
||||
shift
|
||||
"$_RUNJAVA" $JAVA_OPTS $CATALINA_OPTS \
|
||||
-classpath "$CLASSPATH" \
|
||||
-Djava.security.manager \
|
||||
-Djava.security.policy=="$CATALINA_BASE"/conf/catalina.policy \
|
||||
-Dcatalina.base="$CATALINA_BASE" \
|
||||
-Dcatalina.home="$CATALINA_HOME" \
|
||||
-Djava.io.tmpdir="$CATALINA_TMPDIR" \
|
||||
org.apache.catalina.startup.Bootstrap "$@" start \
|
||||
>> "$CATALINA_BASE"/logs/catalina.out 2>&1 &
|
||||
|
||||
if [ ! -z "$CATALINA_PID" ]; then
|
||||
echo $! > $CATALINA_PID
|
||||
fi
|
||||
else
|
||||
"$_RUNJAVA" $JAVA_OPTS $CATALINA_OPTS \
|
||||
-classpath "$CLASSPATH" \
|
||||
-Dcatalina.base="$CATALINA_BASE" \
|
||||
-Dcatalina.home="$CATALINA_HOME" \
|
||||
-Djava.io.tmpdir="$CATALINA_TMPDIR" \
|
||||
org.apache.catalina.startup.Bootstrap "$@" start \
|
||||
>> "$CATALINA_BASE"/logs/catalina.out 2>&1 &
|
||||
|
||||
if [ ! -z "$CATALINA_PID" ]; then
|
||||
echo $! > $CATALINA_PID
|
||||
fi
|
||||
fi
|
||||
|
||||
elif [ "$1" = "stop" ] ; then
|
||||
|
||||
shift
|
||||
FORCE=0
|
||||
if [ "$1" = "-force" ]; then
|
||||
shift
|
||||
FORCE=1
|
||||
fi
|
||||
|
||||
"$_RUNJAVA" $JAVA_OPTS $CATALINA_OPTS \
|
||||
-classpath "$CLASSPATH" \
|
||||
-Dcatalina.base="$CATALINA_BASE" \
|
||||
-Dcatalina.home="$CATALINA_HOME" \
|
||||
-Djava.io.tmpdir="$CATALINA_TMPDIR" \
|
||||
org.apache.catalina.startup.Bootstrap "$@" stop
|
||||
|
||||
if [ $FORCE -eq 1 ]; then
|
||||
if [ ! -z "$CATALINA_PID" ]; then
|
||||
echo "Killing: `cat $CATALINA_PID`"
|
||||
kill -9 `cat $CATALINA_PID`
|
||||
fi
|
||||
fi
|
||||
|
||||
elif [ "$1" = "version" ] ; then
|
||||
|
||||
"$_RUNJAVA" \
|
||||
-classpath "$CATALINA_HOME/server/lib/catalina.jar" \
|
||||
org.apache.catalina.util.ServerInfo
|
||||
|
||||
else
|
||||
|
||||
echo "Usage: catalina.sh ( commands ... )"
|
||||
echo "commands:"
|
||||
if $os400; then
|
||||
echo " debug Start Catalina in a debugger (not available on OS400)"
|
||||
echo " debug -security Debug Catalina with a security manager (not available on OS400)"
|
||||
else
|
||||
echo " debug Start Catalina in a debugger"
|
||||
echo " debug -security Debug Catalina with a security manager"
|
||||
fi
|
||||
echo " jpda start Start Catalina under JPDA debugger"
|
||||
echo " run Start Catalina in the current window"
|
||||
echo " run -security Start in the current window with security manager"
|
||||
echo " start Start Catalina in a separate window"
|
||||
echo " start -security Start in a separate window with security manager"
|
||||
echo " stop Stop Catalina"
|
||||
echo " stop -force Stop Catalina (followed by kill -KILL)"
|
||||
echo " version What version of tomcat are you running?"
|
||||
exit 1
|
||||
|
||||
fi
|
192
tomcat/bin/catalina.bat
Normal file
192
tomcat/bin/catalina.bat
Normal file
|
@ -0,0 +1,192 @@
|
|||
@echo off
|
||||
if "%OS%" == "Windows_NT" setlocal
|
||||
rem ---------------------------------------------------------------------------
|
||||
rem Start/Stop Script for the CATALINA Server
|
||||
rem
|
||||
rem Environment Variable Prequisites
|
||||
rem
|
||||
rem CATALINA_HOME May point at your Catalina "build" directory.
|
||||
rem
|
||||
rem CATALINA_BASE (Optional) Base directory for resolving dynamic portions
|
||||
rem of a Catalina installation. If not present, resolves to
|
||||
rem the same directory that CATALINA_HOME points to.
|
||||
rem
|
||||
rem CATALINA_OPTS (Optional) Java runtime options used when the "start",
|
||||
rem "stop", or "run" command is executed.
|
||||
rem
|
||||
rem CATALINA_TMPDIR (Optional) Directory path location of temporary directory
|
||||
rem the JVM should use (java.io.tmpdir). Defaults to
|
||||
rem %CATALINA_BASE%\temp.
|
||||
rem
|
||||
rem JAVA_HOME Must point at your Java Development Kit installation.
|
||||
rem
|
||||
rem JAVA_OPTS (Optional) Java runtime options used when the "start",
|
||||
rem "stop", or "run" command is executed.
|
||||
rem
|
||||
rem JSSE_HOME (Optional) May point at your Java Secure Sockets Extension
|
||||
rem (JSSE) installation, whose JAR files will be added to the
|
||||
rem system class path used to start Tomcat.
|
||||
rem
|
||||
rem JPDA_TRANSPORT (Optional) JPDA transport used when the "jpda start"
|
||||
rem command is executed. The default is "dt_shmem".
|
||||
rem
|
||||
rem JPDA_ADDRESS (Optional) Java runtime options used when the "jpda start"
|
||||
rem command is executed. The default is "jdbconn".
|
||||
rem
|
||||
rem $Id: catalina.bat,v 1.1 2005/02/21 06:54:22 amontano Exp $
|
||||
rem ---------------------------------------------------------------------------
|
||||
|
||||
rem Guess CATALINA_HOME if not defined
|
||||
set CURRENT_DIR=%cd%
|
||||
if not "%CATALINA_HOME%" == "" goto gotHome
|
||||
set CATALINA_HOME=%CURRENT_DIR%
|
||||
if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
|
||||
cd ..
|
||||
set CATALINA_HOME=%cd%
|
||||
cd %CURRENT_DIR%
|
||||
:gotHome
|
||||
if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
|
||||
echo The CATALINA_HOME environment variable is not defined correctly
|
||||
echo This environment variable is needed to run this program
|
||||
goto end
|
||||
:okHome
|
||||
|
||||
rem Get standard environment variables
|
||||
if exist "%CATALINA_HOME%\bin\setenv.bat" call "%CATALINA_HOME%\bin\setenv.bat"
|
||||
|
||||
rem Get standard Java environment variables
|
||||
if exist "%CATALINA_HOME%\bin\setclasspath.bat" goto okSetclasspath
|
||||
echo Cannot find %CATALINA_HOME%\bin\setclasspath.bat
|
||||
echo This file is needed to run this program
|
||||
goto end
|
||||
:okSetclasspath
|
||||
set BASEDIR=%CATALINA_HOME%
|
||||
call "%CATALINA_HOME%\bin\setclasspath.bat"
|
||||
|
||||
rem Add on extra jar files to CLASSPATH
|
||||
if "%JSSE_HOME%" == "" goto noJsse
|
||||
set CLASSPATH=%CLASSPATH%;%JSSE_HOME%\lib\jcert.jar;%JSSE_HOME%\lib\jnet.jar;%JSSE_HOME%\lib\jsse.jar
|
||||
:noJsse
|
||||
set CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\bin\bootstrap.jar
|
||||
|
||||
if not "%CATALINA_BASE%" == "" goto gotBase
|
||||
set CATALINA_BASE=%CATALINA_HOME%
|
||||
:gotBase
|
||||
|
||||
if not "%CATALINA_TMPDIR%" == "" goto gotTmpdir
|
||||
set CATALINA_TMPDIR=%CATALINA_BASE%\temp
|
||||
:gotTmpdir
|
||||
|
||||
rem ----- Execute The Requested Command ---------------------------------------
|
||||
|
||||
echo Using CATALINA_BASE: %CATALINA_BASE%
|
||||
echo Using CATALINA_HOME: %CATALINA_HOME%
|
||||
echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR%
|
||||
echo Using JAVA_HOME: %JAVA_HOME%
|
||||
|
||||
set _EXECJAVA=%_RUNJAVA%
|
||||
set MAINCLASS=org.apache.catalina.startup.Bootstrap
|
||||
set ACTION=start
|
||||
set SECURITY_POLICY_FILE=
|
||||
set DEBUG_OPTS=
|
||||
set JPDA=
|
||||
|
||||
if not ""%1"" == ""jpda"" goto noJpda
|
||||
set JPDA=jpda
|
||||
if not "%JPDA_TRANSPORT%" == "" goto gotJpdaTransport
|
||||
set JPDA_TRANSPORT=dt_shmem
|
||||
:gotJpdaTransport
|
||||
if not "%JPDA_ADDRESS%" == "" goto gotJpdaAddress
|
||||
set JPDA_ADDRESS=jdbconn
|
||||
:gotJpdaAddress
|
||||
shift
|
||||
:noJpda
|
||||
|
||||
if ""%1"" == ""debug"" goto doDebug
|
||||
if ""%1"" == ""run"" goto doRun
|
||||
if ""%1"" == ""start"" goto doStart
|
||||
if ""%1"" == ""stop"" goto doStop
|
||||
if ""%1"" == ""version"" goto doVersion
|
||||
|
||||
echo Usage: catalina ( commands ... )
|
||||
echo commands:
|
||||
echo debug Start Catalina in a debugger
|
||||
echo debug -security Debug Catalina with a security manager
|
||||
echo jpda start Start Catalina under JPDA debugger
|
||||
echo run Start Catalina in the current window
|
||||
echo run -security Start in the current window with security manager
|
||||
echo start Start Catalina in a separate window
|
||||
echo start -security Start in a separate window with security manager
|
||||
echo stop Stop Catalina
|
||||
echo version What version of tomcat are you running?
|
||||
goto end
|
||||
|
||||
:doDebug
|
||||
shift
|
||||
set _EXECJAVA=%_RUNJDB%
|
||||
set DEBUG_OPTS=-sourcepath "%CATALINA_HOME%\..\..\jakarta-tomcat-catalina\catalina\src\share"
|
||||
if not ""%1"" == ""-security"" goto execCmd
|
||||
shift
|
||||
echo Using Security Manager
|
||||
set SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy
|
||||
goto execCmd
|
||||
|
||||
:doRun
|
||||
shift
|
||||
if not ""%1"" == ""-security"" goto execCmd
|
||||
shift
|
||||
echo Using Security Manager
|
||||
set SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy
|
||||
goto execCmd
|
||||
|
||||
:doStart
|
||||
shift
|
||||
if not "%OS%" == "Windows_NT" goto noTitle
|
||||
set _EXECJAVA=start "Tomcat" %_RUNJAVA%
|
||||
goto gotTitle
|
||||
:noTitle
|
||||
set _EXECJAVA=start %_RUNJAVA%
|
||||
:gotTitle
|
||||
if not ""%1"" == ""-security"" goto execCmd
|
||||
shift
|
||||
echo Using Security Manager
|
||||
set SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy
|
||||
goto execCmd
|
||||
|
||||
:doStop
|
||||
shift
|
||||
set ACTION=stop
|
||||
goto execCmd
|
||||
|
||||
:doVersion
|
||||
%_EXECJAVA% -classpath "%CATALINA_HOME%\server\lib\catalina.jar" org.apache.catalina.util.ServerInfo
|
||||
goto end
|
||||
|
||||
|
||||
:execCmd
|
||||
rem Get remaining unshifted command line arguments and save them in the
|
||||
set CMD_LINE_ARGS=
|
||||
:setArgs
|
||||
if ""%1""=="""" goto doneSetArgs
|
||||
set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
|
||||
shift
|
||||
goto setArgs
|
||||
:doneSetArgs
|
||||
|
||||
rem Execute Java with the applicable properties
|
||||
if not "%JPDA%" == "" goto doJpda
|
||||
if not "%SECURITY_POLICY_FILE%" == "" goto doSecurity
|
||||
%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
|
||||
goto end
|
||||
:doSecurity
|
||||
%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Djava.security.manager -Djava.security.policy=="%SECURITY_POLICY_FILE%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
|
||||
goto end
|
||||
:doJpda
|
||||
if not "%SECURITY_POLICY_FILE%" == "" goto doSecurityJpda
|
||||
%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% -Xdebug -Xrunjdwp:transport=%JPDA_TRANSPORT%,address=%JPDA_ADDRESS%,server=y,suspend=n %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
|
||||
goto end
|
||||
:doSecurityJpda
|
||||
%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% -Xrunjdwp:transport=%JPDA_TRANSPORT%,address=%JPDA_ADDRESS%,server=y,suspend=n %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Djava.security.manager -Djava.security.policy=="%SECURITY_POLICY_FILE%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
|
||||
goto end
|
||||
|
||||
:end
|
287
tomcat/bin/catalina.sh
Normal file
287
tomcat/bin/catalina.sh
Normal file
|
@ -0,0 +1,287 @@
|
|||
#!/bin/sh
|
||||
# -----------------------------------------------------------------------------
|
||||
# Start/Stop Script for the CATALINA Server
|
||||
#
|
||||
# Environment Variable Prequisites
|
||||
#
|
||||
# CATALINA_HOME May point at your Catalina "build" directory.
|
||||
#
|
||||
# CATALINA_BASE (Optional) Base directory for resolving dynamic portions
|
||||
# of a Catalina installation. If not present, resolves to
|
||||
# the same directory that CATALINA_HOME points to.
|
||||
#
|
||||
# CATALINA_OPTS (Optional) Java runtime options used when the "start",
|
||||
# "stop", or "run" command is executed.
|
||||
#
|
||||
# CATALINA_TMPDIR (Optional) Directory path location of temporary directory
|
||||
# the JVM should use (java.io.tmpdir). Defaults to
|
||||
# $CATALINA_BASE/temp.
|
||||
#
|
||||
# JAVA_HOME Must point at your Java Development Kit installation.
|
||||
#
|
||||
# JAVA_OPTS (Optional) Java runtime options used when the "start",
|
||||
# "stop", or "run" command is executed.
|
||||
#
|
||||
# JPDA_TRANSPORT (Optional) JPDA transport used when the "jpda start"
|
||||
# command is executed. The default is "dt_socket".
|
||||
#
|
||||
# JPDA_ADDRESS (Optional) Java runtime options used when the "jpda start"
|
||||
# command is executed. The default is 8000.
|
||||
#
|
||||
# JSSE_HOME (Optional) May point at your Java Secure Sockets Extension
|
||||
# (JSSE) installation, whose JAR files will be added to the
|
||||
# system class path used to start Tomcat.
|
||||
#
|
||||
# CATALINA_PID (Optional) Path of the file which should contains the pid
|
||||
# of catalina startup java process, when start (fork) is used
|
||||
#
|
||||
# $Id: catalina.sh,v 1.1 2005/02/21 06:54:22 amontano Exp $
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
# OS specific support. $var _must_ be set to either true or false.
|
||||
cygwin=false
|
||||
os400=false
|
||||
case "`uname`" in
|
||||
CYGWIN*) cygwin=true;;
|
||||
OS400*) os400=true;;
|
||||
esac
|
||||
|
||||
# resolve links - $0 may be a softlink
|
||||
PRG="$0"
|
||||
|
||||
while [ -h "$PRG" ]; do
|
||||
ls=`ls -ld "$PRG"`
|
||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||
if expr "$link" : '.*/.*' > /dev/null; then
|
||||
PRG="$link"
|
||||
else
|
||||
PRG=`dirname "$PRG"`/"$link"
|
||||
fi
|
||||
done
|
||||
|
||||
# Get standard environment variables
|
||||
PRGDIR=`dirname "$PRG"`
|
||||
|
||||
# Only set CATALINA_HOME if not already set
|
||||
[ -z "$CATALINA_HOME" ] && CATALINA_HOME=`cd "$PRGDIR/.." ; pwd`
|
||||
|
||||
if [ -r "$CATALINA_HOME"/bin/setenv.sh ]; then
|
||||
. "$CATALINA_HOME"/bin/setenv.sh
|
||||
fi
|
||||
|
||||
# For Cygwin, ensure paths are in UNIX format before anything is touched
|
||||
if $cygwin; then
|
||||
[ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
|
||||
[ -n "$CATALINA_HOME" ] && CATALINA_HOME=`cygpath --unix "$CATALINA_HOME"`
|
||||
[ -n "$CATALINA_BASE" ] && CATALINA_BASE=`cygpath --unix "$CATALINA_BASE"`
|
||||
[ -n "$CLASSPATH" ] && CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
|
||||
[ -n "$JSSE_HOME" ] && JSSE_HOME=`cygpath --absolute --unix "$JSSE_HOME"`
|
||||
fi
|
||||
|
||||
# For OS400
|
||||
if $os400; then
|
||||
# Set job priority to standard for interactive (interactive - 6) by using
|
||||
# the interactive priority - 6, the helper threads that respond to requests
|
||||
# will be running at the same priority as interactive jobs.
|
||||
COMMAND='chgjob job('$JOBNAME') runpty(6)'
|
||||
system $COMMAND
|
||||
|
||||
# Enable multi threading
|
||||
export QIBM_MULTI_THREADED=Y
|
||||
fi
|
||||
|
||||
# Get standard Java environment variables
|
||||
if [ -r "$CATALINA_HOME"/bin/setclasspath.sh ]; then
|
||||
BASEDIR="$CATALINA_HOME"
|
||||
. "$CATALINA_HOME"/bin/setclasspath.sh
|
||||
else
|
||||
echo "Cannot find $CATALINA_HOME/bin/setclasspath.sh"
|
||||
echo "This file is needed to run this program"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Add on extra jar files to CLASSPATH
|
||||
if [ -n "$JSSE_HOME" ]; then
|
||||
CLASSPATH="$CLASSPATH":"$JSSE_HOME"/lib/jcert.jar:"$JSSE_HOME"/lib/jnet.jar:"$JSSE_HOME"/lib/jsse.jar
|
||||
fi
|
||||
CLASSPATH="$CLASSPATH":"$CATALINA_HOME"/bin/bootstrap.jar:"$CATALINA_HOME"/bin/commons-logging-api.jar
|
||||
|
||||
if [ -z "$CATALINA_BASE" ] ; then
|
||||
CATALINA_BASE="$CATALINA_HOME"
|
||||
fi
|
||||
|
||||
if [ -z "$CATALINA_TMPDIR" ] ; then
|
||||
# Define the java.io.tmpdir to use for Catalina
|
||||
CATALINA_TMPDIR="$CATALINA_BASE"/temp
|
||||
fi
|
||||
|
||||
# For Cygwin, switch paths to Windows format before running java
|
||||
if $cygwin; then
|
||||
JAVA_HOME=`cygpath --absolute --windows "$JAVA_HOME"`
|
||||
CATALINA_HOME=`cygpath --absolute --windows "$CATALINA_HOME"`
|
||||
CATALINA_BASE=`cygpath --absolute --windows "$CATALINA_BASE"`
|
||||
CATALINA_TMPDIR=`cygpath --absolute --windows "$CATALINA_TMPDIR"`
|
||||
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
|
||||
[ -n "$JSSE_HOME" ] && JSSE_HOME=`cygpath --absolute --windows "$JSSE_HOME"`
|
||||
JAVA_ENDORSED_DIRS=`cygpath --path --windows "$JAVA_ENDORSED_DIRS"`
|
||||
fi
|
||||
|
||||
# ----- Execute The Requested Command -----------------------------------------
|
||||
|
||||
echo "Using CATALINA_BASE: $CATALINA_BASE"
|
||||
echo "Using CATALINA_HOME: $CATALINA_HOME"
|
||||
echo "Using CATALINA_TMPDIR: $CATALINA_TMPDIR"
|
||||
echo "Using JAVA_HOME: $JAVA_HOME"
|
||||
|
||||
if [ "$1" = "jpda" ] ; then
|
||||
if [ -z "$JPDA_TRANSPORT" ]; then
|
||||
JPDA_TRANSPORT="dt_socket"
|
||||
fi
|
||||
if [ -z "$JPDA_ADDRESS" ]; then
|
||||
JPDA_ADDRESS="8000"
|
||||
fi
|
||||
if [ -z "$JPDA_OPTS" ]; then
|
||||
JPDA_OPTS="-Xdebug -Xrunjdwp:transport=$JPDA_TRANSPORT,address=$JPDA_ADDRESS,server=y,suspend=n"
|
||||
fi
|
||||
CATALINA_OPTS="$CATALINA_OPTS $JPDA_OPTS"
|
||||
shift
|
||||
fi
|
||||
|
||||
if [ "$1" = "debug" ] ; then
|
||||
|
||||
if $os400; then
|
||||
echo "Debug command not available on OS400"
|
||||
exit 1
|
||||
else
|
||||
shift
|
||||
if [ "$1" = "-security" ] ; then
|
||||
echo "Using Security Manager"
|
||||
shift
|
||||
exec "$_RUNJDB" $JAVA_OPTS $CATALINA_OPTS \
|
||||
-Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \
|
||||
-sourcepath "$CATALINA_HOME"/../../jakarta-tomcat-catalina/catalina/src/share \
|
||||
-Djava.security.manager \
|
||||
-Djava.security.policy=="$CATALINA_BASE"/conf/catalina.policy \
|
||||
-Dcatalina.base="$CATALINA_BASE" \
|
||||
-Dcatalina.home="$CATALINA_HOME" \
|
||||
-Djava.io.tmpdir="$CATALINA_TMPDIR" \
|
||||
org.apache.catalina.startup.Bootstrap "$@" start
|
||||
else
|
||||
exec "$_RUNJDB" $JAVA_OPTS $CATALINA_OPTS \
|
||||
-Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \
|
||||
-sourcepath "$CATALINA_HOME"/../../jakarta-tomcat-catalina/catalina/src/share \
|
||||
-Dcatalina.base="$CATALINA_BASE" \
|
||||
-Dcatalina.home="$CATALINA_HOME" \
|
||||
-Djava.io.tmpdir="$CATALINA_TMPDIR" \
|
||||
org.apache.catalina.startup.Bootstrap "$@" start
|
||||
fi
|
||||
fi
|
||||
|
||||
elif [ "$1" = "run" ]; then
|
||||
|
||||
shift
|
||||
if [ "$1" = "-security" ] ; then
|
||||
echo "Using Security Manager"
|
||||
shift
|
||||
exec "$_RUNJAVA" $JAVA_OPTS $CATALINA_OPTS \
|
||||
-Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \
|
||||
-Djava.security.manager \
|
||||
-Djava.security.policy=="$CATALINA_BASE"/conf/catalina.policy \
|
||||
-Dcatalina.base="$CATALINA_BASE" \
|
||||
-Dcatalina.home="$CATALINA_HOME" \
|
||||
-Djava.io.tmpdir="$CATALINA_TMPDIR" \
|
||||
org.apache.catalina.startup.Bootstrap "$@" start
|
||||
else
|
||||
exec "$_RUNJAVA" $JAVA_OPTS $CATALINA_OPTS \
|
||||
-Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \
|
||||
-Dcatalina.base="$CATALINA_BASE" \
|
||||
-Dcatalina.home="$CATALINA_HOME" \
|
||||
-Djava.io.tmpdir="$CATALINA_TMPDIR" \
|
||||
org.apache.catalina.startup.Bootstrap "$@" start
|
||||
fi
|
||||
|
||||
elif [ "$1" = "start" ] ; then
|
||||
|
||||
shift
|
||||
touch "$CATALINA_BASE"/logs/catalina.out
|
||||
if [ "$1" = "-security" ] ; then
|
||||
echo "Using Security Manager"
|
||||
shift
|
||||
"$_RUNJAVA" $JAVA_OPTS $CATALINA_OPTS \
|
||||
-Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \
|
||||
-Djava.security.manager \
|
||||
-Djava.security.policy=="$CATALINA_BASE"/conf/catalina.policy \
|
||||
-Dcatalina.base="$CATALINA_BASE" \
|
||||
-Dcatalina.home="$CATALINA_HOME" \
|
||||
-Djava.io.tmpdir="$CATALINA_TMPDIR" \
|
||||
org.apache.catalina.startup.Bootstrap "$@" start \
|
||||
>> "$CATALINA_BASE"/logs/catalina.out 2>&1 &
|
||||
|
||||
if [ ! -z "$CATALINA_PID" ]; then
|
||||
echo $! > $CATALINA_PID
|
||||
fi
|
||||
else
|
||||
"$_RUNJAVA" $JAVA_OPTS $CATALINA_OPTS \
|
||||
-Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \
|
||||
-Dcatalina.base="$CATALINA_BASE" \
|
||||
-Dcatalina.home="$CATALINA_HOME" \
|
||||
-Djava.io.tmpdir="$CATALINA_TMPDIR" \
|
||||
org.apache.catalina.startup.Bootstrap "$@" start \
|
||||
>> "$CATALINA_BASE"/logs/catalina.out 2>&1 &
|
||||
|
||||
if [ ! -z "$CATALINA_PID" ]; then
|
||||
echo $! > $CATALINA_PID
|
||||
fi
|
||||
fi
|
||||
|
||||
elif [ "$1" = "stop" ] ; then
|
||||
|
||||
shift
|
||||
FORCE=0
|
||||
if [ "$1" = "-force" ]; then
|
||||
shift
|
||||
FORCE=1
|
||||
fi
|
||||
|
||||
"$_RUNJAVA" $JAVA_OPTS $CATALINA_OPTS \
|
||||
-Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \
|
||||
-Dcatalina.base="$CATALINA_BASE" \
|
||||
-Dcatalina.home="$CATALINA_HOME" \
|
||||
-Djava.io.tmpdir="$CATALINA_TMPDIR" \
|
||||
org.apache.catalina.startup.Bootstrap "$@" stop
|
||||
|
||||
if [ $FORCE -eq 1 ]; then
|
||||
if [ ! -z "$CATALINA_PID" ]; then
|
||||
echo "Killing: `cat $CATALINA_PID`"
|
||||
kill -9 `cat $CATALINA_PID`
|
||||
fi
|
||||
fi
|
||||
|
||||
elif [ "$1" = "version" ] ; then
|
||||
|
||||
"$_RUNJAVA" \
|
||||
-classpath "$CATALINA_HOME/server/lib/catalina.jar" \
|
||||
org.apache.catalina.util.ServerInfo
|
||||
|
||||
else
|
||||
|
||||
echo "Usage: catalina.sh ( commands ... )"
|
||||
echo "commands:"
|
||||
if $os400; then
|
||||
echo " debug Start Catalina in a debugger (not available on OS400)"
|
||||
echo " debug -security Debug Catalina with a security manager (not available on OS400)"
|
||||
else
|
||||
echo " debug Start Catalina in a debugger"
|
||||
echo " debug -security Debug Catalina with a security manager"
|
||||
fi
|
||||
echo " jpda start Start Catalina under JPDA debugger"
|
||||
echo " run Start Catalina in the current window"
|
||||
echo " run -security Start in the current window with security manager"
|
||||
echo " start Start Catalina in a separate window"
|
||||
echo " start -security Start in a separate window with security manager"
|
||||
echo " stop Stop Catalina"
|
||||
echo " stop -force Stop Catalina (followed by kill -KILL)"
|
||||
echo " version What version of tomcat are you running?"
|
||||
exit 1
|
||||
|
||||
fi
|
234
tomcat/bin/catalina.xml
Normal file
234
tomcat/bin/catalina.xml
Normal file
|
@ -0,0 +1,234 @@
|
|||
<!--
|
||||
XML file for launching Catalina applications using ant.
|
||||
-->
|
||||
|
||||
<project name="Catalina Launcher" default="catalina" basedir=".">
|
||||
<property file="${user.home}/.tomcat5.properties"/>
|
||||
|
||||
<!-- Set the application home to the parent directory of this directory -->
|
||||
<property name="catalina.home" location="${basedir}/.."/>
|
||||
<property name="bootstrap.jar" location="${catalina.home}/bin/bootstrap.jar"/>
|
||||
|
||||
<!-- Import the user's custom properties -->
|
||||
<property file="${catalina.home}/bin/catalina.properties"/> <!-- XXX shold it be conf ?? -->
|
||||
<property file="${catalina.home}/conf/catalina.properties"/> <!-- XXX shold it be conf ?? -->
|
||||
|
||||
|
||||
<!-- Set user configurable properties -->
|
||||
<property name="jsse.home" location="${catalina.home}"/>
|
||||
<property name="catalina.base" location="${catalina.home}"/>
|
||||
<property name="catalina.tmpdir" location="${catalina.base}/temp"/>
|
||||
<property name="catalina.out" location="${catalina.base}/logs/catalina.out"/>
|
||||
<property name="catalina.policy" location="${catalina.base}/conf/catalina.policy"/>
|
||||
<property name="catalina.jvm.args" value="-Dsun.io.useCanonCaches=false"/>
|
||||
|
||||
<property name="catalina.source.path" value="${catalina.home}/../../jakarta-servletapi-5/src/share:${catalina.home}/../../jakarta-tomcat-jasper/jasper2/src/share:${catalina.home}/../../jakarta-tomcat-connectors/coyote/src/java:${catalina.home}/../../jakarta-tomcat-catalina/catalina/src/share"/>
|
||||
|
||||
|
||||
<!-- Build the classpath relative to the application home -->
|
||||
<path id="base.class.path">
|
||||
<pathelement location="${bootstrap.jar}"/>
|
||||
<pathelement path="${jsse.home}/lib/jsse.jar:${jsse.home}/lib/jcert.jar:${jsse.home}/lib/jnet.jar"/>
|
||||
</path>
|
||||
|
||||
<property name="basedir" location="."/>
|
||||
|
||||
<property name="tools.jar" location="${java.home}/../lib/tools.jar" />
|
||||
|
||||
<path id="tomcatcp" >
|
||||
<pathelement location="${catalina.home}/bin/bootstrap.jar"/>
|
||||
<!--
|
||||
<fileset dir="${catalina.home}/common/lib" includes="*.jar"/>
|
||||
<fileset dir="${catalina.home}/server/lib" includes="*.jar"/>
|
||||
<pathelement location="${catalina.home}/common/classes"/>
|
||||
-->
|
||||
<!--
|
||||
<pathelement location="${ant.home}/lib/xercesImpl.jar" />
|
||||
<pathelement location="${ant.home}/lib/xml-apis.jar" />
|
||||
-->
|
||||
<pathelement location="${ant.home}/lib/ant.jar" />
|
||||
<pathelement location="${tools.jar}" />
|
||||
</path>
|
||||
|
||||
|
||||
<!-- =================== Initialization/helpers ================== -->
|
||||
|
||||
|
||||
<target name="init"
|
||||
description="Display configuration and conditional compilation flags">
|
||||
</target>
|
||||
|
||||
<target name="init-launcher" >
|
||||
<!-- Build the sysproperties relative to the application home -->
|
||||
<syspropertyset id="base.sys.properties">
|
||||
<sysproperty key="java.endorsed.dirs" file="${catalina.home}/common/endorsed"/>
|
||||
<sysproperty key="java.io.tmpdir" file="${catalina.tmpdir}"/>
|
||||
<sysproperty key="catalina.home" file="${catalina.home}"/>
|
||||
<sysproperty key="catalina.base" file="${catalina.base}"/>
|
||||
</syspropertyset>
|
||||
|
||||
<!-- Build the standard jvmargs -->
|
||||
<jvmargset id="base.jvm.args">
|
||||
<jvmarg line="${catalina.jvm.args}"/>
|
||||
<jvmarg value="-Xdebug" if="jpda.settings"/>
|
||||
<jvmarg value="-Xrunjdwp:${jpda.settings}" if="jpda.settings"/>
|
||||
<jvmarg value="-sourcepath" if="jdb"/>
|
||||
<jvmarg path="${catalina.source.path}" if="jdb"/>
|
||||
</jvmargset>
|
||||
</target>
|
||||
|
||||
<target name="echo-config" >
|
||||
<echo>TOMCAT_HOME=${catalina.home}</echo>
|
||||
<echo>CLASSPATH=${toString:tomcatcp}</echo>
|
||||
</target>
|
||||
|
||||
<target name="help" >
|
||||
<echo>
|
||||
To run any of the applications in the JDB debugger, execute the Launcher with
|
||||
a "-Ddebug=true" argument.
|
||||
|
||||
To run any of the applications in JPDA mode, execute the Launcher with a
|
||||
"-Djpda=true" argument.
|
||||
</echo>
|
||||
</target>
|
||||
|
||||
<!-- Target that sets JDB properties when the "debug" property is set -->
|
||||
<target name="setjdb" description="Set JDB properties" if="debug">
|
||||
<property name="jdb" value="true"/>
|
||||
</target>
|
||||
|
||||
<!-- Target that sets JPDA properties when the "jpda" property is set -->
|
||||
<target name="setjpda" description="Set JPDA properties" if="jpda">
|
||||
<condition property="jpda.transport" value="dt_shmem">
|
||||
<os family="windows"/>
|
||||
</condition>
|
||||
<condition property="jpda.transport" value="dt_socket">
|
||||
<not>
|
||||
<os family="windows"/>
|
||||
</not>
|
||||
</condition>
|
||||
<condition property="jpda.address" value="jdbconn">
|
||||
<equals arg1="${jpda.transport}" arg2="dt_shmem"/>
|
||||
</condition>
|
||||
<condition property="jpda.address" value="8000">
|
||||
<not>
|
||||
<equals arg1="${jpda.transport}" arg2="dt_shmem"/>
|
||||
</not>
|
||||
</condition>
|
||||
<property name="jpda.suspend" value="y"/>
|
||||
<property name="jpda.settings" value="transport=${jpda.transport},address=${jpda.address},server=y,suspend=${jpda.suspend}"/>
|
||||
</target>
|
||||
|
||||
<!-- =================== Launcher-based ================== -->
|
||||
|
||||
<!-- Target that executes Catalina -->
|
||||
<target name="catalina" description="Execute Catalina"
|
||||
depends="init-launcher,setjdb,setjpda" >
|
||||
|
||||
<!-- Set default title for minimized window -->
|
||||
<property name="catalina.window.title" value="Catalina"/>
|
||||
|
||||
<!--
|
||||
Launch Catalina. Note that the "filterclassname" attribute will force
|
||||
the "waitforchild" attribute to "true" if any invalid arguments are
|
||||
used or if "start" is not the last argument.
|
||||
-->
|
||||
<launch classname="org.apache.catalina.startup.Bootstrap"
|
||||
waitforchild="${wait}"
|
||||
debug="${jdb}"
|
||||
print="${print}"
|
||||
filterclassname="org.apache.catalina.launcher.CatalinaLaunchFilter"
|
||||
filterclasspath="${bootstrap.jar}"
|
||||
usesystemin="false"
|
||||
requiretools="true"
|
||||
redirectoutput="true"
|
||||
output="${catalina.out}"
|
||||
displayMinimizedWindow="true"
|
||||
minimizedWindowTitle="${catalina.window.title}">
|
||||
<jvmargset refid="base.jvm.args"/>
|
||||
<syspropertyset refid="base.sys.properties"/>
|
||||
<sysproperty key="java.security.manager" value="" if="security"/>
|
||||
<sysproperty key="java.security.policy" value="=${catalina.policy}" if="security"/>
|
||||
<classpath refid="base.class.path"/>
|
||||
</launch>
|
||||
|
||||
</target>
|
||||
|
||||
<!-- Target that executes the Catalina tool wrapper -->
|
||||
<target name="tool-wrapper" description="Execute Catalina tool wrapper"
|
||||
depends="setjdb,setjpda" >
|
||||
|
||||
<!-- Launch Catalina tool wrapper -->
|
||||
<launch classname="org.apache.catalina.startup.Tool"
|
||||
debug="${jdb}"
|
||||
print="${print}"
|
||||
usesystemin="false"
|
||||
requiretools="true">
|
||||
<jvmargset refid="base.jvm.args"/>
|
||||
<syspropertyset refid="base.sys.properties"/>
|
||||
<classpath refid="base.class.path"/>
|
||||
</launch>
|
||||
|
||||
</target>
|
||||
|
||||
<!-- ======================= Ant/JMX based ================ -->
|
||||
|
||||
<target name="taskdef" >
|
||||
<property name="tomcat.home" location=".." />
|
||||
|
||||
<path id="jmx.test.classpath">
|
||||
<pathelement location="${commons-modeler.jar}" />
|
||||
<fileset dir="${tomcat.home}/common/lib" includes="*.jar"/>
|
||||
<fileset dir="${tomcat.home}/server/lib" includes="*.jar"/>
|
||||
<fileset dir="${tomcat.home}/bin" includes="*.jar"/>
|
||||
</path>
|
||||
|
||||
<!-- part of modeler -->
|
||||
<taskdef resource="META-INF/ant.properties"
|
||||
classpathref="jmx.test.classpath" />
|
||||
</target>
|
||||
|
||||
|
||||
<target name="run" depends="echo-config,taskdef"
|
||||
description="Start tomcat as a task and return">
|
||||
|
||||
<MLET code="org.apache.commons.modeler.BaseModelMBean"
|
||||
name="catalina:type=server" >
|
||||
<arg value="org.apache.catalina.startup.Catalina" />
|
||||
</MLET>
|
||||
|
||||
<jmxSet name="catalina:type=server"
|
||||
attribute="catalinaHome"
|
||||
value="${tomcat.home}"/>
|
||||
|
||||
<!-- We could also call init and set other properties -
|
||||
init should load the modules -->
|
||||
|
||||
<jmx name="catalina:type=server"
|
||||
method="start" />
|
||||
|
||||
<echo message="Tomcat5 running"/>
|
||||
|
||||
</target>
|
||||
|
||||
|
||||
<!-- ======================= Exec/java ================ -->
|
||||
|
||||
<target name="java-start" depends="echo-config"
|
||||
description="Run tomcat in-process and wait for it to end, using java task" >
|
||||
|
||||
<property name="tomcat.fork" value="false" />
|
||||
|
||||
<java classname="org.apache.catalina.startup.Bootstrap" fork="${tomcat.fork}">
|
||||
<classpath refid="tomcatcp" />
|
||||
<arg value="startd" />
|
||||
<sysproperty key="catalina.home" value="${catalina.home}"/>
|
||||
<sysproperty key="build.compiler" value="jikes"/>
|
||||
<sysproperty key="java.endorsed.dirs" value="${ant.home}/lib:${java.home}/lib"/>
|
||||
</java>
|
||||
|
||||
<echo message="Tomcat5 running"/>
|
||||
|
||||
</target>
|
||||
|
||||
</project>
|
BIN
tomcat/bin/commons-daemon.jar
Normal file
BIN
tomcat/bin/commons-daemon.jar
Normal file
Binary file not shown.
BIN
tomcat/bin/commons-launcher.jar
Normal file
BIN
tomcat/bin/commons-launcher.jar
Normal file
Binary file not shown.
BIN
tomcat/bin/commons-logging-api.jar
Normal file
BIN
tomcat/bin/commons-logging-api.jar
Normal file
Binary file not shown.
19
tomcat/bin/cpappend.bat
Normal file
19
tomcat/bin/cpappend.bat
Normal file
|
@ -0,0 +1,19 @@
|
|||
rem ---------------------------------------------------------------------------
|
||||
rem Append to CLASSPATH
|
||||
rem
|
||||
rem $Id: cpappend.bat,v 1.1 2005/02/21 06:54:22 amontano Exp $
|
||||
rem ---------------------------------------------------------------------------
|
||||
|
||||
rem Process the first argument
|
||||
if ""%1"" == """" goto end
|
||||
set CLASSPATH=%CLASSPATH%;%1
|
||||
shift
|
||||
|
||||
rem Process the remaining arguments
|
||||
:setArgs
|
||||
if ""%1"" == """" goto doneSetArgs
|
||||
set CLASSPATH=%CLASSPATH% %1
|
||||
shift
|
||||
goto setArgs
|
||||
:doneSetArgs
|
||||
:end
|
41
tomcat/bin/digest.bat
Normal file
41
tomcat/bin/digest.bat
Normal file
|
@ -0,0 +1,41 @@
|
|||
@echo off
|
||||
if "%OS%" == "Windows_NT" setlocal
|
||||
rem ---------------------------------------------------------------------------
|
||||
rem Script to digest password using the algorithm specified
|
||||
rem
|
||||
rem $Id: digest.bat,v 1.1 2005/02/21 06:54:22 amontano Exp $
|
||||
rem ---------------------------------------------------------------------------
|
||||
|
||||
rem Guess CATALINA_HOME if not defined
|
||||
if not "%CATALINA_HOME%" == "" goto gotHome
|
||||
set CATALINA_HOME=.
|
||||
if exist "%CATALINA_HOME%\bin\tool-wrapper.bat" goto okHome
|
||||
set CATALINA_HOME=..
|
||||
:gotHome
|
||||
if exist "%CATALINA_HOME%\bin\tool-wrapper.bat" goto okHome
|
||||
echo The CATALINA_HOME environment variable is not defined correctly
|
||||
echo This environment variable is needed to run this program
|
||||
goto end
|
||||
:okHome
|
||||
|
||||
set EXECUTABLE=%CATALINA_HOME%\bin\tool-wrapper.bat
|
||||
|
||||
rem Check that target executable exists
|
||||
if exist "%EXECUTABLE%" goto okExec
|
||||
echo Cannot find %EXECUTABLE%
|
||||
echo This file is needed to run this program
|
||||
goto end
|
||||
:okExec
|
||||
|
||||
rem Get remaining unshifted command line arguments and save them in the
|
||||
set CMD_LINE_ARGS=
|
||||
:setArgs
|
||||
if ""%1""=="""" goto doneSetArgs
|
||||
set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
|
||||
shift
|
||||
goto setArgs
|
||||
:doneSetArgs
|
||||
|
||||
call "%EXECUTABLE%" -server org.apache.catalina.realm.RealmBase %CMD_LINE_ARGS%
|
||||
|
||||
:end
|
31
tomcat/bin/digest.sh
Normal file
31
tomcat/bin/digest.sh
Normal file
|
@ -0,0 +1,31 @@
|
|||
#!/bin/sh
|
||||
# -----------------------------------------------------------------------------
|
||||
# Script to digest password using the algorithm specified
|
||||
#
|
||||
# $Id: digest.sh,v 1.1 2005/02/21 06:54:22 amontano Exp $
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
# resolve links - $0 may be a softlink
|
||||
PRG="$0"
|
||||
|
||||
while [ -h "$PRG" ] ; do
|
||||
ls=`ls -ld "$PRG"`
|
||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||
if expr "$link" : '.*/.*' > /dev/null; then
|
||||
PRG="$link"
|
||||
else
|
||||
PRG=`dirname "$PRG"`/"$link"
|
||||
fi
|
||||
done
|
||||
|
||||
PRGDIR=`dirname "$PRG"`
|
||||
EXECUTABLE=tool-wrapper.sh
|
||||
|
||||
# Check that target executable exists
|
||||
if [ ! -x "$PRGDIR"/"$EXECUTABLE" ]; then
|
||||
echo "Cannot find $PRGDIR/$EXECUTABLE"
|
||||
echo "This file is needed to run this program"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exec "$PRGDIR"/"$EXECUTABLE" -server org.apache.catalina.realm.RealmBase "$@"
|
BIN
tomcat/bin/jmx.jar
Normal file
BIN
tomcat/bin/jmx.jar
Normal file
Binary file not shown.
BIN
tomcat/bin/jsvc.tar.gz
Normal file
BIN
tomcat/bin/jsvc.tar.gz
Normal file
Binary file not shown.
23
tomcat/bin/launcher.properties
Normal file
23
tomcat/bin/launcher.properties
Normal file
|
@ -0,0 +1,23 @@
|
|||
#
|
||||
# Properties for the LauncherBootstrap class
|
||||
#
|
||||
# This file contains the following configurable properties:
|
||||
# - ant.class.path - This property is a ":" separated list of the URL file
|
||||
# fragments where the Ant classes are located. The list must include a JAXP
|
||||
# compliant XML parser if you are not using Java(TM) SE 1.4 or higher.
|
||||
#
|
||||
# Important notes:
|
||||
# - Relative URL file fragments, such as "../lib", are supported and strongly
|
||||
# encouraged as absolute files prevent cross platform distribution.
|
||||
# - URL file fragments are the portions of a URL after the "file:" string.
|
||||
# This means that you must use "/" characters as directory separators on
|
||||
# all platforms. Also, ":" characters in a file fragment, such as in drive
|
||||
# portion of absolute Windows files, must be URL encoded as "%3A". Lastly,
|
||||
# directories must have a "/" character at the end.
|
||||
# - All relative URL file fragments in the above properties will be resolved
|
||||
# using the URL of the directory that the LauncherBootstrap class was
|
||||
# loaded from, not the current working directory. This ensures that the
|
||||
# LauncherBootstrap class can properly resolve the files without regard to
|
||||
# the current working directory.
|
||||
#
|
||||
ant.class.path=../common/lib/ant.jar:../common/lib/ant-launcher.jar:../common/endorsed/xercesImpl.jar:../common/endorsed/xml-apis.jar
|
99
tomcat/bin/service.bat
Normal file
99
tomcat/bin/service.bat
Normal file
|
@ -0,0 +1,99 @@
|
|||
@echo off
|
||||
if "%OS%" == "Windows_NT" setlocal
|
||||
rem ---------------------------------------------------------------------------
|
||||
rem NT Service Install/Uninstall script
|
||||
rem
|
||||
rem Options
|
||||
rem install Install the service using Tomcat5 as service name.
|
||||
rem Service is installed using default settings.
|
||||
rem remove Remove the service from the System.
|
||||
rem
|
||||
rem name (optional) If the second argument is present it is considered
|
||||
rem to be new service name
|
||||
rem
|
||||
rem $Id: service.bat,v 1.1 2005/02/21 06:54:23 amontano Exp $
|
||||
rem ---------------------------------------------------------------------------
|
||||
|
||||
rem Guess CATALINA_HOME if not defined
|
||||
set CURRENT_DIR=%cd%
|
||||
if not "%CATALINA_HOME%" == "" goto gotHome
|
||||
set CATALINA_HOME=%cd%
|
||||
if exist "%CATALINA_HOME%\bin\tomcat5.exe" goto okHome
|
||||
rem CD to the upper dir
|
||||
cd ..
|
||||
set CATALINA_HOME=%cd%
|
||||
:gotHome
|
||||
if exist "%CATALINA_HOME%\bin\tomcat5.exe" goto okHome
|
||||
echo The tomcat.exe was not found...
|
||||
echo The CATALINA_HOME environment variable is not defined correctly.
|
||||
echo This environment variable is needed to run this program
|
||||
goto end
|
||||
rem Make sure prerequisite environment variables are set
|
||||
if not "%JAVA_HOME%" == "" goto okHome
|
||||
echo The JAVA_HOME environment variable is not defined
|
||||
echo This environment variable is needed to run this program
|
||||
goto end
|
||||
:okHome
|
||||
if not "%CATALINA_BASE%" == "" goto gotBase
|
||||
set CATALINA_BASE=%CATALINA_HOME%
|
||||
:gotBase
|
||||
|
||||
set EXECUTABLE=%CATALINA_HOME%\bin\tomcat5.exe
|
||||
|
||||
rem Set default Service name
|
||||
set SERVICE_NAME=Tomcat5
|
||||
set PR_DISPLAYNAME=Apache Tomcat
|
||||
|
||||
if "%1" == "" goto displayUsage
|
||||
if "%2" == "" goto setServiceName
|
||||
set SERVICE_NAME=%2
|
||||
set PR_DISPLAYNAME=Apache Tomcat %2
|
||||
:setServiceName
|
||||
if %1 == install goto doInstall
|
||||
if %1 == remove goto doRemove
|
||||
echo Unknown parameter "%1"
|
||||
:displayUsage
|
||||
echo
|
||||
echo Usage: service.bat install/remove [service_name]
|
||||
goto end
|
||||
|
||||
:doRemove
|
||||
rem Remove the service
|
||||
"%EXECUTABLE%" //DS//%SERVICE_NAME%
|
||||
echo The service '%SERVICE_NAME%' has been removed
|
||||
goto end
|
||||
|
||||
:doInstall
|
||||
rem Install the service
|
||||
echo Installing the service '%SERVICE_NAME%' ...
|
||||
echo Using CATALINA_HOME: %CATALINA_HOME%
|
||||
echo Using JAVA_HOME: %JAVA_HOME%
|
||||
|
||||
rem Use the environment variables as an exaple
|
||||
rem Each command line option is prefixed with PR_
|
||||
|
||||
set PR_DESCRIPTION=Apache Tomcat Server - http://jakarta.apache.org/tomcat
|
||||
set PR_INSTALL=%EXECUTABLE%
|
||||
set PR_LOGPATH=%CATALINA_HOME%\logs
|
||||
set PR_CLASSPATH=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\bin\bootstrap.jar
|
||||
rem Set the server jvm frrom JAVA_HOME
|
||||
set PR_JVM=%JAVA_HOME%\jre\bin\server\jvm.dll
|
||||
rem You can use the 'set PR_JVM=auto' for default JVM
|
||||
"%EXECUTABLE%" //IS//%SERVICE_NAME% --StartClass org.apache.catalina.startup.Bootstrap --StopClass org.apache.catalina.startup.Bootstrap --StartParams start --StopParams stop
|
||||
rem Clear the environment variables. They are not needed any more.
|
||||
set PR_DISPLAYNAME=
|
||||
set PR_DESCRIPTION=
|
||||
set PR_INSTALL=
|
||||
set PR_LOGPATH=
|
||||
set PR_CLASSPATH=
|
||||
set PR_JVM=
|
||||
rem Set extra parameters
|
||||
"%EXECUTABLE%" //US//%SERVICE_NAME% --JvmOptions "-Dcatalina.base=%CATALINA_BASE%;-Dcatalina.home=%CATALINA_HOME%;-Djava.endorsed.dirs=%CATALINA_HOME%\common\endorsed" --StartMode jvm --StopMode jvm
|
||||
rem More extra parameters
|
||||
set PR_STDOUTPUT=%CATALINA_HOME%\logs\stdout.log
|
||||
set PR_STDERROR=%CATALINA_HOME%\logs\stderr.log
|
||||
"%EXECUTABLE%" //US//%SERVICE_NAME% ++JvmOptions "-Djava.io.tmpdir=%CATALINA_BASE%\temp" --JvmMs 128 --JvmMx 256
|
||||
echo The service '%SERVICE_NAME%' has been installed.
|
||||
|
||||
:end
|
||||
cd %CURRENT_DIR%
|
57
tomcat/bin/setclasspath.bat
Normal file
57
tomcat/bin/setclasspath.bat
Normal file
|
@ -0,0 +1,57 @@
|
|||
rem ---------------------------------------------------------------------------
|
||||
rem Set CLASSPATH and Java options
|
||||
rem
|
||||
rem $Id: setclasspath.bat,v 1.1 2005/02/21 06:54:23 amontano Exp $
|
||||
rem ---------------------------------------------------------------------------
|
||||
|
||||
rem Make sure prerequisite environment variables are set
|
||||
if not "%JAVA_HOME%" == "" goto gotJavaHome
|
||||
echo The JAVA_HOME environment variable is not defined
|
||||
echo This environment variable is needed to run this program
|
||||
goto exit
|
||||
:gotJavaHome
|
||||
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
|
||||
if not exist "%JAVA_HOME%\bin\javaw.exe" goto noJavaHome
|
||||
if not exist "%JAVA_HOME%\bin\jdb.exe" goto noJavaHome
|
||||
if not exist "%JAVA_HOME%\bin\javac.exe" goto noJavaHome
|
||||
goto okJavaHome
|
||||
:noJavaHome
|
||||
echo The JAVA_HOME environment variable is not defined correctly
|
||||
echo This environment variable is needed to run this program
|
||||
echo NB: JAVA_HOME should point to a JDK not a JRE
|
||||
goto exit
|
||||
:okJavaHome
|
||||
|
||||
if not "%BASEDIR%" == "" goto gotBasedir
|
||||
echo The BASEDIR environment variable is not defined
|
||||
echo This environment variable is needed to run this program
|
||||
goto exit
|
||||
:gotBasedir
|
||||
if exist "%BASEDIR%\bin\setclasspath.bat" goto okBasedir
|
||||
echo The BASEDIR environment variable is not defined correctly
|
||||
echo This environment variable is needed to run this program
|
||||
goto exit
|
||||
:okBasedir
|
||||
|
||||
rem Set the default -Djava.endorsed.dirs argument
|
||||
set JAVA_ENDORSED_DIRS=%BASEDIR%\common\endorsed
|
||||
|
||||
rem Set standard CLASSPATH
|
||||
rem Note that there are no quotes as we do not want to introduce random
|
||||
rem quotes into the CLASSPATH
|
||||
set CLASSPATH=%JAVA_HOME%\lib\tools.jar
|
||||
|
||||
rem Set standard command for invoking Java.
|
||||
rem Note that NT requires a window name argument when using start.
|
||||
rem Also note the quoting as JAVA_HOME may contain spaces.
|
||||
set _RUNJAVA="%JAVA_HOME%\bin\java"
|
||||
set _RUNJAVAW="%JAVA_HOME%\bin\javaw"
|
||||
set _RUNJDB="%JAVA_HOME%\bin\jdb"
|
||||
set _RUNJAVAC="%JAVA_HOME%\bin\javac"
|
||||
|
||||
goto end
|
||||
|
||||
:exit
|
||||
exit /b 1
|
||||
|
||||
:end
|
61
tomcat/bin/setclasspath.sh
Normal file
61
tomcat/bin/setclasspath.sh
Normal file
|
@ -0,0 +1,61 @@
|
|||
# -----------------------------------------------------------------------------
|
||||
# Set CLASSPATH and Java options
|
||||
#
|
||||
# $Id: setclasspath.sh,v 1.1 2005/02/21 06:54:23 amontano Exp $
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
# Make sure prerequisite environment variables are set
|
||||
if [ -z "$JAVA_HOME" ]; then
|
||||
echo "The JAVA_HOME environment variable is not defined"
|
||||
echo "This environment variable is needed to run this program"
|
||||
exit 1
|
||||
fi
|
||||
if $os400; then
|
||||
if [ ! -x "$JAVA_HOME"/bin/java -o ! -x "$JAVA_HOME"/bin/javac ]; then
|
||||
echo "The JAVA_HOME environment variable is not defined correctly"
|
||||
echo "This environment variable is needed to run this program"
|
||||
echo "NB: JAVA_HOME should point to a JDK not a JRE"
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
if [ ! -x "$JAVA_HOME"/bin/java -o ! -x "$JAVA_HOME"/bin/jdb -o ! -x "$JAVA_HOME"/bin/javac ]; then
|
||||
echo "The JAVA_HOME environment variable is not defined correctly"
|
||||
echo "This environment variable is needed to run this program"
|
||||
echo "NB: JAVA_HOME should point to a JDK not a JRE"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
if [ -z "$BASEDIR" ]; then
|
||||
echo "The BASEDIR environment variable is not defined"
|
||||
echo "This environment variable is needed to run this program"
|
||||
exit 1
|
||||
fi
|
||||
if [ ! -x "$BASEDIR"/bin/setclasspath.sh ]; then
|
||||
echo "The BASEDIR environment variable is not defined correctly"
|
||||
echo "This environment variable is needed to run this program"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Set the default -Djava.endorsed.dirs argument
|
||||
JAVA_ENDORSED_DIRS="$BASEDIR"/common/endorsed
|
||||
|
||||
# Set standard CLASSPATH
|
||||
CLASSPATH="$JAVA_HOME"/lib/tools.jar
|
||||
|
||||
# OSX hack to CLASSPATH
|
||||
JIKESPATH=
|
||||
if [ `uname -s` = "Darwin" ]; then
|
||||
OSXHACK="/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Classes"
|
||||
if [ -d "$OSXHACK" ]; then
|
||||
for i in "$OSXHACK"/*.jar; do
|
||||
JIKESPATH="$JIKESPATH":"$i"
|
||||
done
|
||||
fi
|
||||
fi
|
||||
|
||||
# Set standard commands for invoking Java.
|
||||
_RUNJAVA="$JAVA_HOME"/bin/java
|
||||
if [ $os400 = false ]; then
|
||||
_RUNJDB="$JAVA_HOME"/bin/jdb
|
||||
fi
|
||||
_RUNJAVAC="$JAVA_HOME"/bin/javac
|
40
tomcat/bin/shutdown-using-launcher.bat
Normal file
40
tomcat/bin/shutdown-using-launcher.bat
Normal file
|
@ -0,0 +1,40 @@
|
|||
@echo off
|
||||
if "%OS%" == "Windows_NT" setlocal
|
||||
|
||||
rem ---------------------------------------------------------------------------
|
||||
rem
|
||||
rem Script for shutting down Catalina using the Launcher
|
||||
rem
|
||||
rem ---------------------------------------------------------------------------
|
||||
|
||||
rem Get standard environment variables
|
||||
set PRG=%0
|
||||
if exist %PRG%\..\setenv.bat goto gotCmdPath
|
||||
rem %0 must have been found by DOS using the %PATH% so we assume that
|
||||
rem setenv.bat will also be found in the %PATH%
|
||||
call setenv.bat
|
||||
goto doneSetenv
|
||||
:gotCmdPath
|
||||
call %PRG%\..\setenv.bat
|
||||
:doneSetenv
|
||||
|
||||
rem Make sure prerequisite environment variables are set
|
||||
if not "%JAVA_HOME%" == "" goto gotJavaHome
|
||||
echo The JAVA_HOME environment variable is not defined
|
||||
echo This environment variable is needed to run this program
|
||||
goto end
|
||||
:gotJavaHome
|
||||
|
||||
rem Get command line arguments and save them with the proper quoting
|
||||
set CMD_LINE_ARGS=
|
||||
:setArgs
|
||||
if ""%1""=="""" goto doneSetArgs
|
||||
set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
|
||||
shift
|
||||
goto setArgs
|
||||
:doneSetArgs
|
||||
|
||||
rem Execute the Launcher using the "catalina" target
|
||||
"%JAVA_HOME%\bin\java.exe" -classpath %PRG%\..;"%PATH%";. LauncherBootstrap -launchfile catalina.xml -verbose catalina %CMD_LINE_ARGS% stop
|
||||
|
||||
:end
|
29
tomcat/bin/shutdown-using-launcher.sh
Normal file
29
tomcat/bin/shutdown-using-launcher.sh
Normal file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/sh
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
#
|
||||
# Script for shutting down Catalina using the Launcher
|
||||
#
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
# Resolve links - $0 may be a softlink
|
||||
PRG="$0"
|
||||
|
||||
while [ -h "$PRG" ]; do
|
||||
ls=`ls -ld "$PRG"`
|
||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||
if expr "$link" : '.*/.*' > /dev/null; then
|
||||
PRG="$link"
|
||||
else
|
||||
PRG=`dirname "$PRG"`/"$link"
|
||||
fi
|
||||
done
|
||||
|
||||
# Get standard environment variables
|
||||
PRGDIR=`dirname "$PRG"`
|
||||
if [ -r "$PRGDIR"/setenv.sh ]; then
|
||||
. "$PRGDIR"/setenv.sh
|
||||
fi
|
||||
|
||||
# Execute the Launcher using the "catalina" target
|
||||
exec "$JAVA_HOME"/bin/java -classpath "$PRGDIR" LauncherBootstrap -launchfile catalina.xml -verbose catalina "$@" stop
|
44
tomcat/bin/shutdown.bat
Normal file
44
tomcat/bin/shutdown.bat
Normal file
|
@ -0,0 +1,44 @@
|
|||
@echo off
|
||||
if "%OS%" == "Windows_NT" setlocal
|
||||
rem ---------------------------------------------------------------------------
|
||||
rem Stop script for the CATALINA Server
|
||||
rem
|
||||
rem $Id: shutdown.bat,v 1.1 2005/02/21 06:54:23 amontano Exp $
|
||||
rem ---------------------------------------------------------------------------
|
||||
|
||||
rem Guess CATALINA_HOME if not defined
|
||||
set CURRENT_DIR=%cd%
|
||||
if not "%CATALINA_HOME%" == "" goto gotHome
|
||||
set CATALINA_HOME=%CURRENT_DIR%
|
||||
if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
|
||||
cd ..
|
||||
set CATALINA_HOME=%cd%
|
||||
cd %CURRENT_DIR%
|
||||
:gotHome
|
||||
if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
|
||||
echo The CATALINA_HOME environment variable is not defined correctly
|
||||
echo This environment variable is needed to run this program
|
||||
goto end
|
||||
:okHome
|
||||
|
||||
set EXECUTABLE=%CATALINA_HOME%\bin\catalina.bat
|
||||
|
||||
rem Check that target executable exists
|
||||
if exist "%EXECUTABLE%" goto okExec
|
||||
echo Cannot find %EXECUTABLE%
|
||||
echo This file is needed to run this program
|
||||
goto end
|
||||
:okExec
|
||||
|
||||
rem Get remaining unshifted command line arguments and save them in the
|
||||
set CMD_LINE_ARGS=
|
||||
:setArgs
|
||||
if ""%1""=="""" goto doneSetArgs
|
||||
set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
|
||||
shift
|
||||
goto setArgs
|
||||
:doneSetArgs
|
||||
|
||||
call "%EXECUTABLE%" stop %CMD_LINE_ARGS%
|
||||
|
||||
:end
|
31
tomcat/bin/shutdown.sh
Normal file
31
tomcat/bin/shutdown.sh
Normal file
|
@ -0,0 +1,31 @@
|
|||
#!/bin/sh
|
||||
# -----------------------------------------------------------------------------
|
||||
# Stop script for the CATALINA Server
|
||||
#
|
||||
# $Id: shutdown.sh,v 1.1 2005/02/21 06:54:23 amontano Exp $
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
# resolve links - $0 may be a softlink
|
||||
PRG="$0"
|
||||
|
||||
while [ -h "$PRG" ] ; do
|
||||
ls=`ls -ld "$PRG"`
|
||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||
if expr "$link" : '.*/.*' > /dev/null; then
|
||||
PRG="$link"
|
||||
else
|
||||
PRG=`dirname "$PRG"`/"$link"
|
||||
fi
|
||||
done
|
||||
|
||||
PRGDIR=`dirname "$PRG"`
|
||||
EXECUTABLE=catalina.sh
|
||||
|
||||
# Check that target executable exists
|
||||
if [ ! -x "$PRGDIR"/"$EXECUTABLE" ]; then
|
||||
echo "Cannot find $PRGDIR/$EXECUTABLE"
|
||||
echo "This file is needed to run this program"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exec "$PRGDIR"/"$EXECUTABLE" stop "$@"
|
39
tomcat/bin/startup-using-launcher.bat
Normal file
39
tomcat/bin/startup-using-launcher.bat
Normal file
|
@ -0,0 +1,39 @@
|
|||
@echo off
|
||||
if "%OS%" == "Windows_NT" setlocal
|
||||
|
||||
rem ---------------------------------------------------------------------------
|
||||
rem
|
||||
rem Script for starting Catalina using the Launcher
|
||||
rem
|
||||
rem ---------------------------------------------------------------------------
|
||||
|
||||
rem Get standard environment variables
|
||||
set PRG=%0
|
||||
if exist %PRG%\..\setenv.bat goto gotCmdPath
|
||||
rem %0 must have been found by DOS using the %PATH% so we assume that
|
||||
rem setenv.bat will also be found in the %PATH%
|
||||
goto doneSetenv
|
||||
:gotCmdPath
|
||||
call %PRG%\..\setenv.bat
|
||||
:doneSetenv
|
||||
|
||||
rem Make sure prerequisite environment variables are set
|
||||
if not "%JAVA_HOME%" == "" goto gotJavaHome
|
||||
echo The JAVA_HOME environment variable is not defined
|
||||
echo This environment variable is needed to run this program
|
||||
goto end
|
||||
:gotJavaHome
|
||||
|
||||
rem Get command line arguments and save them with the proper quoting
|
||||
set CMD_LINE_ARGS=
|
||||
:setArgs
|
||||
if ""%1""=="""" goto doneSetArgs
|
||||
set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
|
||||
shift
|
||||
goto setArgs
|
||||
:doneSetArgs
|
||||
|
||||
rem Execute the Launcher using the "catalina" target
|
||||
"%JAVA_HOME%\bin\java.exe" -classpath %PRG%\..;"%PATH%";. LauncherBootstrap -launchfile catalina.xml -verbose catalina %CMD_LINE_ARGS% start
|
||||
|
||||
:end
|
29
tomcat/bin/startup-using-launcher.sh
Normal file
29
tomcat/bin/startup-using-launcher.sh
Normal file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/sh
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
#
|
||||
# Script for starting Catalina using the Launcher
|
||||
#
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
# Resolve links - $0 may be a softlink
|
||||
PRG="$0"
|
||||
|
||||
while [ -h "$PRG" ]; do
|
||||
ls=`ls -ld "$PRG"`
|
||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||
if expr "$link" : '.*/.*' > /dev/null; then
|
||||
PRG="$link"
|
||||
else
|
||||
PRG=`dirname "$PRG"`/"$link"
|
||||
fi
|
||||
done
|
||||
|
||||
# Get standard environment variables
|
||||
PRGDIR=`dirname "$PRG"`
|
||||
if [ -r "$PRGDIR"/setenv.sh ]; then
|
||||
. "$PRGDIR"/setenv.sh
|
||||
fi
|
||||
|
||||
# Execute the Launcher using the "catalina" target
|
||||
exec "$JAVA_HOME"/bin/java -classpath "$PRGDIR" LauncherBootstrap -launchfile catalina.xml -verbose catalina "$@" start
|
44
tomcat/bin/startup.bat
Normal file
44
tomcat/bin/startup.bat
Normal file
|
@ -0,0 +1,44 @@
|
|||
@echo off
|
||||
if "%OS%" == "Windows_NT" setlocal
|
||||
rem ---------------------------------------------------------------------------
|
||||
rem Start script for the CATALINA Server
|
||||
rem
|
||||
rem $Id: startup.bat,v 1.1 2005/02/21 06:54:23 amontano Exp $
|
||||
rem ---------------------------------------------------------------------------
|
||||
|
||||
rem Guess CATALINA_HOME if not defined
|
||||
set CURRENT_DIR=%cd%
|
||||
if not "%CATALINA_HOME%" == "" goto gotHome
|
||||
set CATALINA_HOME=%CURRENT_DIR%
|
||||
if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
|
||||
cd ..
|
||||
set CATALINA_HOME=%cd%
|
||||
cd %CURRENT_DIR%
|
||||
:gotHome
|
||||
if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
|
||||
echo The CATALINA_HOME environment variable is not defined correctly
|
||||
echo This environment variable is needed to run this program
|
||||
goto end
|
||||
:okHome
|
||||
|
||||
set EXECUTABLE=%CATALINA_HOME%\bin\catalina.bat
|
||||
|
||||
rem Check that target executable exists
|
||||
if exist "%EXECUTABLE%" goto okExec
|
||||
echo Cannot find %EXECUTABLE%
|
||||
echo This file is needed to run this program
|
||||
goto end
|
||||
:okExec
|
||||
|
||||
rem Get remaining unshifted command line arguments and save them in the
|
||||
set CMD_LINE_ARGS=
|
||||
:setArgs
|
||||
if ""%1""=="""" goto doneSetArgs
|
||||
set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
|
||||
shift
|
||||
goto setArgs
|
||||
:doneSetArgs
|
||||
|
||||
call "%EXECUTABLE%" start %CMD_LINE_ARGS%
|
||||
|
||||
:end
|
31
tomcat/bin/startup.sh
Normal file
31
tomcat/bin/startup.sh
Normal file
|
@ -0,0 +1,31 @@
|
|||
#!/bin/sh
|
||||
# -----------------------------------------------------------------------------
|
||||
# Start Script for the CATALINA Server
|
||||
#
|
||||
# $Id: startup.sh,v 1.1 2005/02/21 06:54:23 amontano Exp $
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
# resolve links - $0 may be a softlink
|
||||
PRG="$0"
|
||||
|
||||
while [ -h "$PRG" ] ; do
|
||||
ls=`ls -ld "$PRG"`
|
||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||
if expr "$link" : '.*/.*' > /dev/null; then
|
||||
PRG="$link"
|
||||
else
|
||||
PRG=`dirname "$PRG"`/"$link"
|
||||
fi
|
||||
done
|
||||
|
||||
PRGDIR=`dirname "$PRG"`
|
||||
EXECUTABLE=catalina.sh
|
||||
|
||||
# Check that target executable exists
|
||||
if [ ! -x "$PRGDIR"/"$EXECUTABLE" ]; then
|
||||
echo "Cannot find $PRGDIR/$EXECUTABLE"
|
||||
echo "This file is needed to run this program"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exec "$PRGDIR"/"$EXECUTABLE" start "$@"
|
BIN
tomcat/bin/tomcat5.exe
Normal file
BIN
tomcat/bin/tomcat5.exe
Normal file
Binary file not shown.
BIN
tomcat/bin/tomcat5w.exe
Normal file
BIN
tomcat/bin/tomcat5w.exe
Normal file
Binary file not shown.
40
tomcat/bin/tool-wrapper-using-launcher.bat
Normal file
40
tomcat/bin/tool-wrapper-using-launcher.bat
Normal file
|
@ -0,0 +1,40 @@
|
|||
@echo off
|
||||
if "%OS%" == "Windows_NT" setlocal
|
||||
|
||||
rem ---------------------------------------------------------------------------
|
||||
rem
|
||||
rem Script for running the Catalina tool wrapper using the Launcher
|
||||
rem
|
||||
rem ---------------------------------------------------------------------------
|
||||
|
||||
rem Get standard environment variables
|
||||
set PRG=%0
|
||||
if exist %PRG%\..\setenv.bat goto gotCmdPath
|
||||
rem %0 must have been found by DOS using the %PATH% so we assume that
|
||||
rem setenv.bat will also be found in the %PATH%
|
||||
call setenv.bat
|
||||
goto doneSetenv
|
||||
:gotCmdPath
|
||||
call %PRG%\..\setenv.bat
|
||||
:doneSetenv
|
||||
|
||||
rem Make sure prerequisite environment variables are set
|
||||
if not "%JAVA_HOME%" == "" goto gotJavaHome
|
||||
echo The JAVA_HOME environment variable is not defined
|
||||
echo This environment variable is needed to run this program
|
||||
goto end
|
||||
:gotJavaHome
|
||||
|
||||
rem Get command line arguments and save them with the proper quoting
|
||||
set CMD_LINE_ARGS=
|
||||
:setArgs
|
||||
if ""%1""=="""" goto doneSetArgs
|
||||
set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
|
||||
shift
|
||||
goto setArgs
|
||||
:doneSetArgs
|
||||
|
||||
rem Execute the Launcher using the "tool-wrapper" target
|
||||
"%JAVA_HOME%\bin\java.exe" -classpath %PRG%\..;"%PATH%";. LauncherBootstrap -launchfile catalina.xml -verbose tool-wrapper %CMD_LINE_ARGS%
|
||||
|
||||
:end
|
29
tomcat/bin/tool-wrapper-using-launcher.sh
Normal file
29
tomcat/bin/tool-wrapper-using-launcher.sh
Normal file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/sh
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
#
|
||||
# Script for running the Catalina tool wrapper using the Launcher
|
||||
#
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
# Resolve links - $0 may be a softlink
|
||||
PRG="$0"
|
||||
|
||||
while [ -h "$PRG" ]; do
|
||||
ls=`ls -ld "$PRG"`
|
||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||
if expr "$link" : '.*/.*' > /dev/null; then
|
||||
PRG="$link"
|
||||
else
|
||||
PRG=`dirname "$PRG"`/"$link"
|
||||
fi
|
||||
done
|
||||
|
||||
# Get standard environment variables
|
||||
PRGDIR=`dirname "$PRG"`
|
||||
if [ -r "$PRGDIR"/setenv.sh ]; then
|
||||
. "$PRGDIR"/setenv.sh
|
||||
fi
|
||||
|
||||
# Execute the Launcher using the "tool-wrapper" target
|
||||
exec "$JAVA_HOME"/bin/java -classpath "$PRGDIR" LauncherBootstrap -launchfile catalina.xml -verbose tool-wrapper "$@"
|
59
tomcat/bin/tool-wrapper.bat
Normal file
59
tomcat/bin/tool-wrapper.bat
Normal file
|
@ -0,0 +1,59 @@
|
|||
@echo off
|
||||
if "%OS%" == "Windows_NT" setlocal
|
||||
rem ---------------------------------------------------------------------------
|
||||
rem Wrapper script for command line tools
|
||||
rem
|
||||
rem Environment Variable Prequisites
|
||||
rem
|
||||
rem CATALINA_HOME May point at your Catalina "build" directory.
|
||||
rem
|
||||
rem TOOL_OPTS (Optional) Java runtime options used when the "start",
|
||||
rem "stop", or "run" command is executed.
|
||||
rem
|
||||
rem JAVA_HOME Must point at your Java Development Kit installation.
|
||||
rem
|
||||
rem JAVA_OPTS (Optional) Java runtime options used when the "start",
|
||||
rem "stop", or "run" command is executed.
|
||||
rem
|
||||
rem $Id: tool-wrapper.bat,v 1.1 2005/02/21 06:54:23 amontano Exp $
|
||||
rem ---------------------------------------------------------------------------
|
||||
|
||||
rem Guess CATALINA_HOME if not defined
|
||||
if not "%CATALINA_HOME%" == "" goto gotHome
|
||||
set CATALINA_HOME=.
|
||||
if exist "%CATALINA_HOME%\bin\tool-wrapper.bat" goto okHome
|
||||
set CATALINA_HOME=..
|
||||
:gotHome
|
||||
if exist "%CATALINA_HOME%\bin\tool-wrapper.bat" goto okHome
|
||||
echo The CATALINA_HOME environment variable is not defined correctly
|
||||
echo This environment variable is needed to run this program
|
||||
goto end
|
||||
:okHome
|
||||
|
||||
rem Get standard environment variables
|
||||
if exist "%CATALINA_HOME%\bin\setenv.bat" call "%CATALINA_HOME%\bin\setenv.bat"
|
||||
|
||||
rem Get standard Java environment variables
|
||||
if exist "%CATALINA_HOME%\bin\setclasspath.bat" goto okSetclasspath
|
||||
echo Cannot find %CATALINA_HOME%\bin\setclasspath.bat
|
||||
echo This file is needed to run this program
|
||||
goto end
|
||||
:okSetclasspath
|
||||
set BASEDIR=%CATALINA_HOME%
|
||||
call "%CATALINA_HOME%\bin\setclasspath.bat"
|
||||
|
||||
rem Add on extra jar files to CLASSPATH
|
||||
set CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\bin\bootstrap.jar;"%BASEDIR%"\common\lib\jmx.jar
|
||||
|
||||
rem Get remaining unshifted command line arguments and save them in the
|
||||
set CMD_LINE_ARGS=
|
||||
:setArgs
|
||||
if ""%1""=="""" goto doneSetArgs
|
||||
set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
|
||||
shift
|
||||
goto setArgs
|
||||
:doneSetArgs
|
||||
|
||||
%_RUNJAVA% %JAVA_OPTS% %TOOL_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Dcatalina.home="%CATALINA_HOME%" org.apache.catalina.startup.Tool %CMD_LINE_ARGS%
|
||||
|
||||
:end
|
78
tomcat/bin/tool-wrapper.sh
Normal file
78
tomcat/bin/tool-wrapper.sh
Normal file
|
@ -0,0 +1,78 @@
|
|||
#!/bin/sh
|
||||
# -----------------------------------------------------------------------------
|
||||
# Wrapper script for command line tools
|
||||
#
|
||||
# Environment Variable Prequisites
|
||||
#
|
||||
# CATALINA_HOME May point at your Catalina "build" directory.
|
||||
#
|
||||
# TOOL_OPTS (Optional) Java runtime options used when the "start",
|
||||
# "stop", or "run" command is executed.
|
||||
#
|
||||
# JAVA_HOME Must point at your Java Development Kit installation.
|
||||
#
|
||||
# JAVA_OPTS (Optional) Java runtime options used when the "start",
|
||||
# "stop", or "run" command is executed.
|
||||
#
|
||||
# $Id: tool-wrapper.sh,v 1.1 2005/02/21 06:54:23 amontano Exp $
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
# OS specific support. $var _must_ be set to either true or false.
|
||||
cygwin=false
|
||||
case "`uname`" in
|
||||
CYGWIN*) cygwin=true;;
|
||||
esac
|
||||
|
||||
# resolve links - $0 may be a softlink
|
||||
PRG="$0"
|
||||
|
||||
while [ -h "$PRG" ]; do
|
||||
ls=`ls -ld "$PRG"`
|
||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||
if expr "$link" : '.*/.*' > /dev/null; then
|
||||
PRG="$link"
|
||||
else
|
||||
PRG=`dirname "$PRG"`/"$link"
|
||||
fi
|
||||
done
|
||||
|
||||
# Get standard environment variables
|
||||
PRGDIR=`dirname "$PRG"`
|
||||
CATALINA_HOME=`cd "$PRGDIR/.." ; pwd`
|
||||
if [ -r "$CATALINA_HOME"/bin/setenv.sh ]; then
|
||||
. "$CATALINA_HOME"/bin/setenv.sh
|
||||
fi
|
||||
|
||||
# For Cygwin, ensure paths are in UNIX format before anything is touched
|
||||
if $cygwin; then
|
||||
[ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
|
||||
[ -n "$CATALINA_HOME" ] && CATALINA_HOME=`cygpath --unix "$CATALINA_HOME"`
|
||||
[ -n "$CLASSPATH" ] && CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
|
||||
fi
|
||||
|
||||
# Get standard Java environment variables
|
||||
if [ -r "$CATALINA_HOME"/bin/setclasspath.sh ]; then
|
||||
BASEDIR="$CATALINA_HOME"
|
||||
. "$CATALINA_HOME"/bin/setclasspath.sh
|
||||
else
|
||||
echo "Cannot find $CATALINA_HOME/bin/setclasspath.sh"
|
||||
echo "This file is needed to run this program"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Add on extra jar files to CLASSPATH
|
||||
CLASSPATH="$CLASSPATH":"$CATALINA_HOME"/bin/bootstrap.jar:"$BASEDIR"/common/lib/jmx.jar
|
||||
|
||||
# For Cygwin, switch paths to Windows format before running java
|
||||
if $cygwin; then
|
||||
JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
|
||||
CATALINA_HOME=`cygpath --path --windows "$CATALINA_HOME"`
|
||||
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
|
||||
fi
|
||||
|
||||
# ----- Execute The Requested Command -----------------------------------------
|
||||
|
||||
exec "$_RUNJAVA" $JAVA_OPTS $TOOL_OPTS \
|
||||
-Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \
|
||||
-Dcatalina.home="$CATALINA_HOME" \
|
||||
org.apache.catalina.startup.Tool "$@"
|
44
tomcat/bin/version.bat
Normal file
44
tomcat/bin/version.bat
Normal file
|
@ -0,0 +1,44 @@
|
|||
@echo off
|
||||
if "%OS%" == "Windows_NT" setlocal
|
||||
rem ---------------------------------------------------------------------------
|
||||
rem Version script for the CATALINA Server
|
||||
rem
|
||||
rem $Id: version.bat,v 1.1 2005/02/21 06:54:23 amontano Exp $
|
||||
rem ---------------------------------------------------------------------------
|
||||
|
||||
rem Guess CATALINA_HOME if not defined
|
||||
set CURRENT_DIR=%cd%
|
||||
if not "%CATALINA_HOME%" == "" goto gotHome
|
||||
set CATALINA_HOME=%CURRENT_DIR%
|
||||
if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
|
||||
cd ..
|
||||
set CATALINA_HOME=%cd%
|
||||
cd %CURRENT_DIR%
|
||||
:gotHome
|
||||
if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
|
||||
echo The CATALINA_HOME environment variable is not defined correctly
|
||||
echo This environment variable is needed to run this program
|
||||
goto end
|
||||
:okHome
|
||||
|
||||
set EXECUTABLE=%CATALINA_HOME%\bin\catalina.bat
|
||||
|
||||
rem Check that target executable exists
|
||||
if exist "%EXECUTABLE%" goto okExec
|
||||
echo Cannot find %EXECUTABLE%
|
||||
echo This file is needed to run this program
|
||||
goto end
|
||||
:okExec
|
||||
|
||||
rem Get remaining unshifted command line arguments and save them in the
|
||||
set CMD_LINE_ARGS=
|
||||
:setArgs
|
||||
if ""%1""=="""" goto doneSetArgs
|
||||
set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
|
||||
shift
|
||||
goto setArgs
|
||||
:doneSetArgs
|
||||
|
||||
call "%EXECUTABLE%" version %CMD_LINE_ARGS%
|
||||
|
||||
:end
|
31
tomcat/bin/version.sh
Normal file
31
tomcat/bin/version.sh
Normal file
|
@ -0,0 +1,31 @@
|
|||
#!/bin/sh
|
||||
# -----------------------------------------------------------------------------
|
||||
# Version Script for the CATALINA Server
|
||||
#
|
||||
# $Id: version.sh,v 1.1 2005/02/21 06:54:23 amontano Exp $
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
# resolve links - $0 may be a softlink
|
||||
PRG="$0"
|
||||
|
||||
while [ -h "$PRG" ] ; do
|
||||
ls=`ls -ld "$PRG"`
|
||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||
if expr "$link" : '.*/.*' > /dev/null; then
|
||||
PRG="$link"
|
||||
else
|
||||
PRG=`dirname "$PRG"`/"$link"
|
||||
fi
|
||||
done
|
||||
|
||||
PRGDIR=`dirname "$PRG"`
|
||||
EXECUTABLE=catalina.sh
|
||||
|
||||
# Check that target executable exists
|
||||
if [ ! -x "$PRGDIR"/"$EXECUTABLE" ]; then
|
||||
echo "Cannot find $PRGDIR/$EXECUTABLE"
|
||||
echo "This file is needed to run this program"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exec "$PRGDIR"/"$EXECUTABLE" version "$@"
|
BIN
tomcat/common/endorsed/xercesImpl.jar
Normal file
BIN
tomcat/common/endorsed/xercesImpl.jar
Normal file
Binary file not shown.
BIN
tomcat/common/endorsed/xml-apis.jar
Normal file
BIN
tomcat/common/endorsed/xml-apis.jar
Normal file
Binary file not shown.
BIN
tomcat/common/lib/ant-launcher.jar
Normal file
BIN
tomcat/common/lib/ant-launcher.jar
Normal file
Binary file not shown.
BIN
tomcat/common/lib/ant.jar
Normal file
BIN
tomcat/common/lib/ant.jar
Normal file
Binary file not shown.
BIN
tomcat/common/lib/commons-collections-3.1.jar
Normal file
BIN
tomcat/common/lib/commons-collections-3.1.jar
Normal file
Binary file not shown.
BIN
tomcat/common/lib/commons-dbcp-1.2.1.jar
Normal file
BIN
tomcat/common/lib/commons-dbcp-1.2.1.jar
Normal file
Binary file not shown.
BIN
tomcat/common/lib/commons-el.jar
Normal file
BIN
tomcat/common/lib/commons-el.jar
Normal file
Binary file not shown.
BIN
tomcat/common/lib/commons-pool-1.2.jar
Normal file
BIN
tomcat/common/lib/commons-pool-1.2.jar
Normal file
Binary file not shown.
BIN
tomcat/common/lib/jasper-compiler.jar
Normal file
BIN
tomcat/common/lib/jasper-compiler.jar
Normal file
Binary file not shown.
BIN
tomcat/common/lib/jasper-runtime.jar
Normal file
BIN
tomcat/common/lib/jasper-runtime.jar
Normal file
Binary file not shown.
BIN
tomcat/common/lib/jsp-api.jar
Normal file
BIN
tomcat/common/lib/jsp-api.jar
Normal file
Binary file not shown.
BIN
tomcat/common/lib/mysql-connector-java-3.0.15-ga-bin.jar
Normal file
BIN
tomcat/common/lib/mysql-connector-java-3.0.15-ga-bin.jar
Normal file
Binary file not shown.
BIN
tomcat/common/lib/naming-common.jar
Normal file
BIN
tomcat/common/lib/naming-common.jar
Normal file
Binary file not shown.
BIN
tomcat/common/lib/naming-factory.jar
Normal file
BIN
tomcat/common/lib/naming-factory.jar
Normal file
Binary file not shown.
BIN
tomcat/common/lib/naming-java.jar
Normal file
BIN
tomcat/common/lib/naming-java.jar
Normal file
Binary file not shown.
BIN
tomcat/common/lib/naming-resources.jar
Normal file
BIN
tomcat/common/lib/naming-resources.jar
Normal file
Binary file not shown.
BIN
tomcat/common/lib/servlet-api.jar
Normal file
BIN
tomcat/common/lib/servlet-api.jar
Normal file
Binary file not shown.
24
tomcat/conf/Catalina/localhost/admin.xml
Normal file
24
tomcat/conf/Catalina/localhost/admin.xml
Normal file
|
@ -0,0 +1,24 @@
|
|||
<!--
|
||||
|
||||
Context configuration file for the Tomcat Administration Web App
|
||||
|
||||
$Id: admin.xml,v 1.1 2005/02/21 06:54:31 amontano Exp $
|
||||
|
||||
-->
|
||||
|
||||
|
||||
<Context path="/admin" docBase="${catalina.home}/server/webapps/admin"
|
||||
debug="0" privileged="true">
|
||||
|
||||
<!-- 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"/>
|
||||
-->
|
||||
|
||||
<Logger className="org.apache.catalina.logger.FileLogger"
|
||||
prefix="localhost_admin_log." suffix=".txt"
|
||||
timestamp="true"/>
|
||||
|
||||
</Context>
|
28
tomcat/conf/Catalina/localhost/lex.xml
Normal file
28
tomcat/conf/Catalina/localhost/lex.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<Context path="/lex" docBase="C:\Documents and Settings\Andres Montano\My Documents\docs-misc\java\DictionarySearch\src\Dictionary\webroot" workDir="C:\Documents and Settings\Andres Montano\My Documents\docs-misc\java\DictionarySearch\src\Dictionary\work" debug="0" reloadable="true" crossContext="true">
|
||||
|
||||
<Resource name="jdbc/lex-datasource" scope="Shareable" type="javax.sql.DataSource"
|
||||
factory="org.apache.commons.dbcp.BasicDataSourceFactory"
|
||||
url="jdbc:mysql://localhost:3306/Lex?useUnicode=true&characterEncoding=UTF-8"
|
||||
driverClassName="com.mysql.jdbc.Driver"
|
||||
username="javauser"
|
||||
password="javadude"
|
||||
maxWait="5000"
|
||||
maxIdle="7"
|
||||
maxActive="15"
|
||||
removeAbandoned="true"/>
|
||||
|
||||
<Resource name="jdbc/thdl-users-datasource" scope="Shareable" type="javax.sql.DataSource"
|
||||
factory="org.apache.commons.dbcp.BasicDataSourceFactory"
|
||||
url="jdbc:mysql://localhost:3306/ThdlUsers"
|
||||
driverClassName="com.mysql.jdbc.Driver"
|
||||
username="javauser"
|
||||
password="javadude"
|
||||
useUnicode="true"
|
||||
characterEncoding="utf-8"
|
||||
maxWait="5000"
|
||||
maxIdle="7"
|
||||
maxActive="15"
|
||||
removeAbandoned="true"/>
|
||||
|
||||
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs/access" prefix="lex_access_log." suffix=".txt" pattern="combined" resolveHosts="true"/>
|
||||
</Context>
|
17
tomcat/conf/Catalina/localhost/manager.xml
Normal file
17
tomcat/conf/Catalina/localhost/manager.xml
Normal file
|
@ -0,0 +1,17 @@
|
|||
<!--
|
||||
|
||||
Context configuration file for the Tomcat Manager Web App
|
||||
|
||||
$Id: manager.xml,v 1.1 2005/02/21 06:54:31 amontano Exp $
|
||||
|
||||
-->
|
||||
|
||||
|
||||
<Context path="/manager" docBase="${catalina.home}/server/webapps/manager"
|
||||
debug="0" privileged="true">
|
||||
|
||||
<!-- Link to the user database we will get roles from -->
|
||||
<ResourceLink name="users" global="UserDatabase"
|
||||
type="org.apache.catalina.UserDatabase"/>
|
||||
|
||||
</Context>
|
BIN
tomcat/server/lib/catalina-ant.jar
Normal file
BIN
tomcat/server/lib/catalina-ant.jar
Normal file
Binary file not shown.
BIN
tomcat/server/lib/catalina-cluster.jar
Normal file
BIN
tomcat/server/lib/catalina-cluster.jar
Normal file
Binary file not shown.
BIN
tomcat/server/lib/catalina-i18n-es.jar
Normal file
BIN
tomcat/server/lib/catalina-i18n-es.jar
Normal file
Binary file not shown.
BIN
tomcat/server/lib/catalina-i18n-fr.jar
Normal file
BIN
tomcat/server/lib/catalina-i18n-fr.jar
Normal file
Binary file not shown.
BIN
tomcat/server/lib/catalina-i18n-ja.jar
Normal file
BIN
tomcat/server/lib/catalina-i18n-ja.jar
Normal file
Binary file not shown.
BIN
tomcat/server/lib/catalina-optional.jar
Normal file
BIN
tomcat/server/lib/catalina-optional.jar
Normal file
Binary file not shown.
BIN
tomcat/server/lib/catalina.jar
Normal file
BIN
tomcat/server/lib/catalina.jar
Normal file
Binary file not shown.
BIN
tomcat/server/lib/commons-beanutils.jar
Normal file
BIN
tomcat/server/lib/commons-beanutils.jar
Normal file
Binary file not shown.
BIN
tomcat/server/lib/commons-digester.jar
Normal file
BIN
tomcat/server/lib/commons-digester.jar
Normal file
Binary file not shown.
BIN
tomcat/server/lib/commons-fileupload-1.0.jar
Normal file
BIN
tomcat/server/lib/commons-fileupload-1.0.jar
Normal file
Binary file not shown.
BIN
tomcat/server/lib/commons-modeler.jar
Normal file
BIN
tomcat/server/lib/commons-modeler.jar
Normal file
Binary file not shown.
BIN
tomcat/server/lib/jakarta-regexp-1.3.jar
Normal file
BIN
tomcat/server/lib/jakarta-regexp-1.3.jar
Normal file
Binary file not shown.
BIN
tomcat/server/lib/jkconfig.jar
Normal file
BIN
tomcat/server/lib/jkconfig.jar
Normal file
Binary file not shown.
BIN
tomcat/server/lib/jkshm.jar
Normal file
BIN
tomcat/server/lib/jkshm.jar
Normal file
Binary file not shown.
BIN
tomcat/server/lib/servlets-cgi.renametojar
Normal file
BIN
tomcat/server/lib/servlets-cgi.renametojar
Normal file
Binary file not shown.
BIN
tomcat/server/lib/servlets-common.jar
Normal file
BIN
tomcat/server/lib/servlets-common.jar
Normal file
Binary file not shown.
BIN
tomcat/server/lib/servlets-default.jar
Normal file
BIN
tomcat/server/lib/servlets-default.jar
Normal file
Binary file not shown.
BIN
tomcat/server/lib/servlets-invoker.jar
Normal file
BIN
tomcat/server/lib/servlets-invoker.jar
Normal file
Binary file not shown.
BIN
tomcat/server/lib/servlets-ssi.renametojar
Normal file
BIN
tomcat/server/lib/servlets-ssi.renametojar
Normal file
Binary file not shown.
BIN
tomcat/server/lib/servlets-webdav.jar
Normal file
BIN
tomcat/server/lib/servlets-webdav.jar
Normal file
Binary file not shown.
BIN
tomcat/server/lib/tomcat-coyote.jar
Normal file
BIN
tomcat/server/lib/tomcat-coyote.jar
Normal file
Binary file not shown.
BIN
tomcat/server/lib/tomcat-http11.jar
Normal file
BIN
tomcat/server/lib/tomcat-http11.jar
Normal file
Binary file not shown.
BIN
tomcat/server/lib/tomcat-jk.jar
Normal file
BIN
tomcat/server/lib/tomcat-jk.jar
Normal file
Binary file not shown.
BIN
tomcat/server/lib/tomcat-jk2.jar
Normal file
BIN
tomcat/server/lib/tomcat-jk2.jar
Normal file
Binary file not shown.
BIN
tomcat/server/lib/tomcat-jni.jar
Normal file
BIN
tomcat/server/lib/tomcat-jni.jar
Normal file
Binary file not shown.
BIN
tomcat/server/lib/tomcat-util.jar
Normal file
BIN
tomcat/server/lib/tomcat-util.jar
Normal file
Binary file not shown.
419
tomcat/server/webapps/admin/WEB-INF/controls.tld
Normal file
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/catalina-admin.jar
Normal file
Binary file not shown.
BIN
tomcat/server/webapps/admin/WEB-INF/lib/struts.jar
Normal file
BIN
tomcat/server/webapps/admin/WEB-INF/lib/struts.jar
Normal file
Binary file not shown.
382
tomcat/server/webapps/admin/WEB-INF/struts-bean.tld
Normal file
382
tomcat/server/webapps/admin/WEB-INF/struts-bean.tld
Normal file
|
@ -0,0 +1,382 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
|
||||
<taglib>
|
||||
<tlibversion>1.0</tlibversion>
|
||||
<jspversion>1.1</jspversion>
|
||||
<shortname>bean</shortname>
|
||||
<uri>http://jakarta.apache.org/struts/tags-bean</uri>
|
||||
<tag>
|
||||
<name>cookie</name>
|
||||
<tagclass>org.apache.struts.taglib.bean.CookieTag</tagclass>
|
||||
<teiclass>org.apache.struts.taglib.bean.CookieTei</teiclass>
|
||||
<bodycontent>empty</bodycontent>
|
||||
<attribute>
|
||||
<name>id</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>multiple</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>define</name>
|
||||
<tagclass>org.apache.struts.taglib.bean.DefineTag</tagclass>
|
||||
<teiclass>org.apache.struts.taglib.bean.DefineTei</teiclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>id</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>property</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>scope</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>toScope</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>type</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>header</name>
|
||||
<tagclass>org.apache.struts.taglib.bean.HeaderTag</tagclass>
|
||||
<teiclass>org.apache.struts.taglib.bean.HeaderTei</teiclass>
|
||||
<bodycontent>empty</bodycontent>
|
||||
<attribute>
|
||||
<name>id</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>multiple</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>include</name>
|
||||
<tagclass>org.apache.struts.taglib.bean.IncludeTag</tagclass>
|
||||
<teiclass>org.apache.struts.taglib.bean.IncludeTei</teiclass>
|
||||
<bodycontent>empty</bodycontent>
|
||||
<attribute>
|
||||
<name>anchor</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>forward</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>href</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>id</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>page</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>transaction</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>message</name>
|
||||
<tagclass>org.apache.struts.taglib.bean.MessageTag</tagclass>
|
||||
<bodycontent>empty</bodycontent>
|
||||
<attribute>
|
||||
<name>arg0</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>arg1</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>arg2</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>arg3</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>arg4</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>bundle</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>key</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>locale</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>property</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>scope</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>page</name>
|
||||
<tagclass>org.apache.struts.taglib.bean.PageTag</tagclass>
|
||||
<teiclass>org.apache.struts.taglib.bean.PageTei</teiclass>
|
||||
<bodycontent>empty</bodycontent>
|
||||
<attribute>
|
||||
<name>id</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>property</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>parameter</name>
|
||||
<tagclass>org.apache.struts.taglib.bean.ParameterTag</tagclass>
|
||||
<teiclass>org.apache.struts.taglib.bean.ParameterTei</teiclass>
|
||||
<bodycontent>empty</bodycontent>
|
||||
<attribute>
|
||||
<name>id</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>multiple</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>resource</name>
|
||||
<tagclass>org.apache.struts.taglib.bean.ResourceTag</tagclass>
|
||||
<teiclass>org.apache.struts.taglib.bean.ResourceTei</teiclass>
|
||||
<bodycontent>empty</bodycontent>
|
||||
<attribute>
|
||||
<name>id</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>input</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>size</name>
|
||||
<tagclass>org.apache.struts.taglib.bean.SizeTag</tagclass>
|
||||
<teiclass>org.apache.struts.taglib.bean.SizeTei</teiclass>
|
||||
<bodycontent>empty</bodycontent>
|
||||
<attribute>
|
||||
<name>collection</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>id</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>property</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>scope</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>struts</name>
|
||||
<tagclass>org.apache.struts.taglib.bean.StrutsTag</tagclass>
|
||||
<teiclass>org.apache.struts.taglib.bean.StrutsTei</teiclass>
|
||||
<bodycontent>empty</bodycontent>
|
||||
<attribute>
|
||||
<name>id</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>formBean</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>forward</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>mapping</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>write</name>
|
||||
<tagclass>org.apache.struts.taglib.bean.WriteTag</tagclass>
|
||||
<bodycontent>empty</bodycontent>
|
||||
<attribute>
|
||||
<name>bundle</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>filter</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>format</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>formatKey</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>ignore</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>locale</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>property</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>scope</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
</taglib>
|
||||
|
||||
|
||||
|
1062
tomcat/server/webapps/admin/WEB-INF/struts-config.xml
Normal file
1062
tomcat/server/webapps/admin/WEB-INF/struts-config.xml
Normal file
File diff suppressed because it is too large
Load diff
2972
tomcat/server/webapps/admin/WEB-INF/struts-html.tld
Normal file
2972
tomcat/server/webapps/admin/WEB-INF/struts-html.tld
Normal file
File diff suppressed because it is too large
Load diff
642
tomcat/server/webapps/admin/WEB-INF/struts-logic.tld
Normal file
642
tomcat/server/webapps/admin/WEB-INF/struts-logic.tld
Normal file
|
@ -0,0 +1,642 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
|
||||
<taglib>
|
||||
<tlibversion>1.0</tlibversion>
|
||||
<jspversion>1.1</jspversion>
|
||||
<shortname>logic</shortname>
|
||||
<uri>http://jakarta.apache.org/struts/tags-logic</uri>
|
||||
<tag>
|
||||
<name>empty</name>
|
||||
<tagclass>org.apache.struts.taglib.logic.EmptyTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>property</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>scope</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>equal</name>
|
||||
<tagclass>org.apache.struts.taglib.logic.EqualTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>cookie</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>header</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>parameter</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>property</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>scope</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>forward</name>
|
||||
<tagclass>org.apache.struts.taglib.logic.ForwardTag</tagclass>
|
||||
<bodycontent>empty</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>greaterEqual</name>
|
||||
<tagclass>org.apache.struts.taglib.logic.GreaterEqualTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>cookie</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>header</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>parameter</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>property</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>scope</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>greaterThan</name>
|
||||
<tagclass>org.apache.struts.taglib.logic.GreaterThanTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>cookie</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>header</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>parameter</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>property</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>scope</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>iterate</name>
|
||||
<tagclass>org.apache.struts.taglib.logic.IterateTag</tagclass>
|
||||
<teiclass>org.apache.struts.taglib.logic.IterateTei</teiclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>collection</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>id</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>indexId</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>false</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>length</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>offset</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>property</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>scope</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>type</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>lessEqual</name>
|
||||
<tagclass>org.apache.struts.taglib.logic.LessEqualTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>cookie</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>header</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>parameter</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>property</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>scope</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>lessThan</name>
|
||||
<tagclass>org.apache.struts.taglib.logic.LessThanTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>cookie</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>header</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>parameter</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>property</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>scope</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>match</name>
|
||||
<tagclass>org.apache.struts.taglib.logic.MatchTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>cookie</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>header</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>location</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>parameter</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>property</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>scope</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>messagesNotPresent</name>
|
||||
<tagclass>org.apache.struts.taglib.logic.MessagesNotPresentTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>property</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>message</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>messagesPresent</name>
|
||||
<tagclass>org.apache.struts.taglib.logic.MessagesPresentTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>property</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>message</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>notEmpty</name>
|
||||
<tagclass>org.apache.struts.taglib.logic.NotEmptyTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>property</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>scope</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>notEqual</name>
|
||||
<tagclass>org.apache.struts.taglib.logic.NotEqualTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>cookie</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>header</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>parameter</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>property</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>scope</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>notMatch</name>
|
||||
<tagclass>org.apache.struts.taglib.logic.NotMatchTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>cookie</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>header</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>location</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>parameter</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>property</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>scope</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>value</name>
|
||||
<required>true</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>notPresent</name>
|
||||
<tagclass>org.apache.struts.taglib.logic.NotPresentTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>cookie</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>header</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>parameter</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>property</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>role</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>scope</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>user</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>present</name>
|
||||
<tagclass>org.apache.struts.taglib.logic.PresentTag</tagclass>
|
||||
<bodycontent>JSP</bodycontent>
|
||||
<attribute>
|
||||
<name>cookie</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>header</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>parameter</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>property</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>role</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>scope</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>user</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
<tag>
|
||||
<name>redirect</name>
|
||||
<tagclass>org.apache.struts.taglib.logic.RedirectTag</tagclass>
|
||||
<attribute>
|
||||
<name>anchor</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>forward</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>href</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>name</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>page</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>paramId</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>paramName</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>paramProperty</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>paramScope</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>property</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>scope</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
<attribute>
|
||||
<name>transaction</name>
|
||||
<required>false</required>
|
||||
<rtexprvalue>true</rtexprvalue>
|
||||
</attribute>
|
||||
</tag>
|
||||
</taglib>
|
||||
|
||||
|
||||
|
819
tomcat/server/webapps/admin/WEB-INF/web.xml
Normal file
819
tomcat/server/webapps/admin/WEB-INF/web.xml
Normal file
|
@ -0,0 +1,819 @@
|
|||
<?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 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>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>
|
||||
<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>
|
||||
<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>
|
||||
<init-param>
|
||||
<param-name>locale</param-name>
|
||||
<param-value>true</param-value>
|
||||
</init-param>
|
||||
<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>
|
||||
|
||||
<load-on-startup>2</load-on-startup>
|
||||
</servlet>
|
||||
|
||||
<!-- Action Servlet Mapping -->
|
||||
|
||||
<!-- JSPC servlet mappings start -->
|
||||
|
||||
<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.saved_jsp</servlet-name>
|
||||
<servlet-class>admin.saved_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.error_jsp</servlet-name>
|
||||
<servlet-class>admin.error_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.banner_jsp</servlet-name>
|
||||
<servlet-class>admin.banner_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.savefail_jsp</servlet-name>
|
||||
<servlet-class>admin.savefail_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.blank_jsp</servlet-name>
|
||||
<servlet-class>admin.blank_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.footer_jsp</servlet-name>
|
||||
<servlet-class>admin.footer_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.dumpServer_jsp</servlet-name>
|
||||
<servlet-class>admin.dumpServer_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.dumpRegistry_jsp</servlet-name>
|
||||
<servlet-class>admin.dumpRegistry_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.buttons_jsp</servlet-name>
|
||||
<servlet-class>admin.buttons_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.frameset_jsp</servlet-name>
|
||||
<servlet-class>admin.frameset_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.login_jsp</servlet-name>
|
||||
<servlet-class>admin.login_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.connector.connectors_jsp</servlet-name>
|
||||
<servlet-class>admin.connector.connectors_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.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.defaultcontext.defaultcontext_jsp</servlet-name>
|
||||
<servlet-class>admin.defaultcontext.defaultcontext_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.logger.logger_jsp</servlet-name>
|
||||
<servlet-class>admin.logger.logger_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.logger.loggers_jsp</servlet-name>
|
||||
<servlet-class>admin.logger.loggers_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.service.services_jsp</servlet-name>
|
||||
<servlet-class>admin.service.services_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.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.host.aliases_jsp</servlet-name>
|
||||
<servlet-class>admin.host.aliases_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.users.footer_jsp</servlet-name>
|
||||
<servlet-class>admin.users.footer_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.users.listUsers_jsp</servlet-name>
|
||||
<servlet-class>admin.users.listUsers_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.deleteUsers_jsp</servlet-name>
|
||||
<servlet-class>admin.users.deleteUsers_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.listGroups_jsp</servlet-name>
|
||||
<servlet-class>admin.users.listGroups_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.header_jsp</servlet-name>
|
||||
<servlet-class>admin.users.header_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.role_jsp</servlet-name>
|
||||
<servlet-class>admin.users.role_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.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.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.jndiRealm_jsp</servlet-name>
|
||||
<servlet-class>admin.realm.jndiRealm_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.listResourceLinks_jsp</servlet-name>
|
||||
<servlet-class>admin.resources.listResourceLinks_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.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.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.envEntry_jsp</servlet-name>
|
||||
<servlet-class>admin.resources.envEntry_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.resources.dataSource_jsp</servlet-name>
|
||||
<servlet-class>admin.resources.dataSource_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.deleteUserDatabases_jsp</servlet-name>
|
||||
<servlet-class>admin.resources.deleteUserDatabases_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.deleteMailSessions_jsp</servlet-name>
|
||||
<servlet-class>admin.resources.deleteMailSessions_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.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.singleSignOnValve_jsp</servlet-name>
|
||||
<servlet-class>admin.valve.singleSignOnValve_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.valves_jsp</servlet-name>
|
||||
<servlet-class>admin.valve.valves_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>admin.valve.requestDumperValve_jsp</servlet-name>
|
||||
<servlet-class>admin.valve.requestDumperValve_jsp</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<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.saved_jsp</servlet-name>
|
||||
<url-pattern>/saved.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.banner_jsp</servlet-name>
|
||||
<url-pattern>/banner.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.blank_jsp</servlet-name>
|
||||
<url-pattern>/blank.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.tree_002dcontrol_002dtest_jsp</servlet-name>
|
||||
<url-pattern>/tree-control-test.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.dumpRegistry_jsp</servlet-name>
|
||||
<url-pattern>/dumpRegistry.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.frameset_jsp</servlet-name>
|
||||
<url-pattern>/frameset.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.connector.connectors_jsp</servlet-name>
|
||||
<url-pattern>/connector/connectors.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.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.defaultcontext.defaultcontext_jsp</servlet-name>
|
||||
<url-pattern>/defaultcontext/defaultcontext.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.logger.logger_jsp</servlet-name>
|
||||
<url-pattern>/logger/logger.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.logger.loggers_jsp</servlet-name>
|
||||
<url-pattern>/logger/loggers.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.service.services_jsp</servlet-name>
|
||||
<url-pattern>/service/services.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.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.host.aliases_jsp</servlet-name>
|
||||
<url-pattern>/host/aliases.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.users.footer_jsp</servlet-name>
|
||||
<url-pattern>/users/footer.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.users.listUsers_jsp</servlet-name>
|
||||
<url-pattern>/users/listUsers.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.deleteUsers_jsp</servlet-name>
|
||||
<url-pattern>/users/deleteUsers.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.listGroups_jsp</servlet-name>
|
||||
<url-pattern>/users/listGroups.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.header_jsp</servlet-name>
|
||||
<url-pattern>/users/header.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.role_jsp</servlet-name>
|
||||
<url-pattern>/users/role.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.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.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.jndiRealm_jsp</servlet-name>
|
||||
<url-pattern>/realm/jndiRealm.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.listResourceLinks_jsp</servlet-name>
|
||||
<url-pattern>/resources/listResourceLinks.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.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.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.envEntry_jsp</servlet-name>
|
||||
<url-pattern>/resources/envEntry.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.resources.dataSource_jsp</servlet-name>
|
||||
<url-pattern>/resources/dataSource.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.deleteUserDatabases_jsp</servlet-name>
|
||||
<url-pattern>/resources/deleteUserDatabases.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.deleteMailSessions_jsp</servlet-name>
|
||||
<url-pattern>/resources/deleteMailSessions.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.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.singleSignOnValve_jsp</servlet-name>
|
||||
<url-pattern>/valve/singleSignOnValve.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.valves_jsp</servlet-name>
|
||||
<url-pattern>/valve/valves.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>admin.valve.requestDumperValve_jsp</servlet-name>
|
||||
<url-pattern>/valve/requestDumperValve.jsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<!-- JSPC servlet mappings end -->
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>action</servlet-name>
|
||||
<url-pattern>*.do</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<!-- Struts Tag Library Descriptors -->
|
||||
<taglib>
|
||||
<taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
|
||||
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
|
||||
</taglib>
|
||||
|
||||
<taglib>
|
||||
<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
|
||||
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
|
||||
</taglib>
|
||||
|
||||
<taglib>
|
||||
<taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
|
||||
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
|
||||
</taglib>
|
||||
|
||||
<!-- 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
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;
|
||||
}
|
24
tomcat/server/webapps/admin/admin.xml
Normal file
24
tomcat/server/webapps/admin/admin.xml
Normal file
|
@ -0,0 +1,24 @@
|
|||
<!--
|
||||
|
||||
Context configuration file for the Tomcat Administration Web App
|
||||
|
||||
$Id: admin.xml,v 1.1 2005/02/21 06:54:34 amontano Exp $
|
||||
|
||||
-->
|
||||
|
||||
|
||||
<Context path="/admin" docBase="${catalina.home}/server/webapps/admin"
|
||||
debug="0" privileged="true">
|
||||
|
||||
<!-- 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"/>
|
||||
-->
|
||||
|
||||
<Logger className="org.apache.catalina.logger.FileLogger"
|
||||
prefix="localhost_admin_log." suffix=".txt"
|
||||
timestamp="true"/>
|
||||
|
||||
</Context>
|
BIN
tomcat/server/webapps/admin/images/BlueTile.gif
Normal file
BIN
tomcat/server/webapps/admin/images/BlueTile.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
BIN
tomcat/server/webapps/admin/images/Connector.gif
Normal file
BIN
tomcat/server/webapps/admin/images/Connector.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 366 B |
BIN
tomcat/server/webapps/admin/images/Context.gif
Normal file
BIN
tomcat/server/webapps/admin/images/Context.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 654 B |
BIN
tomcat/server/webapps/admin/images/Datasource.gif
Normal file
BIN
tomcat/server/webapps/admin/images/Datasource.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 1 KiB |
BIN
tomcat/server/webapps/admin/images/DefaultContext.gif
Normal file
BIN
tomcat/server/webapps/admin/images/DefaultContext.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 372 B |
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue