📄 building.txt
字号:
(12) Steps (13)-(25) are optional, but are necessary to build a complete binary
distribution of Tomcat 4.0. Set the "full.dist" property to "on" in the
build.properties file (see step (26)) to build a complete distribution.
Regular contributors to Tomcat are encouraged to use the complete build
option.
(13) Download and Install JDBC Optional Package API Binary Distribution
* Download the JDBC Optional Pacakge API package (version 2.0) from:
http://java.sun.com/products/jdbc/download.html
* Place the jar in a convenient location.
(14) Download and Install an implementation of the JMX 1.0 specification. This
can be either MX4J (http://mx4j.sourceforge.net) or Sun JMX 1.0 Reference
Implementation.
NOTE: This step is only required if you wish to build the Config/Admin
web application.
NOTE: The Tomcat binaries are distrbuted with MX4J.
* Download MX4J (version 1.0 or later) from
http://sourceforge.net/project/showfiles.php?group_id=47745
* Alternately, download the JMX Instrumentation and Agent Reference
Implementation (version 1.0 or later) from
http://java.sun.com/products/JavaManagement/download.html
* Unpack MX4J or the reference implementation into a convenient location
so that it resides in its own subdirectory.
(15) Download and Install the Java Activation Framework 1.0.1
* Download the Java Activation Framework package (version 1.0.1 or later) from
http://java.sun.com/products/javabeans/glasgow/jaf.html
* Unpack the package into a convenient location so that it
resides in its own subdirectory.
(16) Download and Install JavaMail 1.2
* Download the JavaMail package (version 1.2 or later) from
http://java.sun.com/products/javamail/index.html
* Unpack the package into a convenient location so that
it resides in its own subdirectory.
(17) Download and Install the JSSE 1.0.2 Reference Implementation
* Download the Java Secure Sockets Extension (JSSE) package,
(version 1.0.2 or later) from
http://java.sun.com/products/jsse/
* Unpack the reference implementation into a convenient location so that
it resides in its own subdirectory.
(18) Download and Install the Java Transaction APIs
* Download the Java Transaction API (JTA) package (version 1.0.1) from:
http://java.sun.com/products/jta/
* Unpack the package into a convenient location so that it resides in its
own subdirectory.
(19) Download and Install the Struts Binary Distribution
* Download a binary distribution of Struts 1.0.1 from:
http://jakarta.apache.org/builds/jakarta-struts/release/v1.0.1/
On a Windows platform, you will need:
jakarta-struts-1.0.1.zip
On a Unix platform, you will need:
jakarta-struts-1.0.1.tar.gz
* Unpack the binary distribution into a convenient location so that the
distribution resides in its own directory.
(20) Download and Install the Tyrex Data Source Package
NOTE: This step is only required if you wish to build the Tyrex connection
pool implementation for JNDI-accessed data sources.
* Download the Tyrex JAR or release (version 1.0) from:
http://tyrex.exolab.org/download.html
* Unpack the package into a convenient location so that it resides in its
own subdirectory.
(21) Download and Install the JUnit Testing Package (OPTIONAL)
NOTE: This step is only required if you wish to build and execute the unit
tests that are part of the Tomcat 4.0 source base.
* Download the JUnit unit test package (version 3.7 or later) from:
http://www.junit.org/
* Unpack the package into a convenient location so that it resides in its
own subdirectory.
(22) Download and Install the Commons Modeler Binary Distribution
NOTE: This step is only required if you wish to build the Config/Admin
web application.
* Download a binary distribution of version 20020117 or later from:
http://jakarta.apache.org/builds/jakarta-commons/nightly/commons-modeler
On a Windows platform, you will need:
commons-modeler-YYYYMMDD.zip
On a Unix platform, you will need:
commons-modeler-YYYYMMDD.tar.gz
* Unpack the binary distribution into a convenient location so that the
distribution resides in its own directory.
(23) Download and Install the Commons DBCP Binary Distribution
NOTE: This step is only required if you wish to use the database JDBC data
source factory.
* Download a binary distribution of version 20011030 or later from:
http://jakarta.apache.org/builds/jakarta-commons/nightly/commons-dbcp
On a Windows platform, you will need:
commons-dbcp-YYYYMMDD.zip
On a Unix platform, you will need:
commons-dbcp-YYYYMMDD.tar.gz
* Unpack the binary distribution into a convenient location so that the
distribution resides in its own directory.
(24) Download and Install the Commons Pool Binary Distribution
NOTE: This step is only required if you wish to use the database JDBC data
source factory.
* Download a binary distribution of version 1.0 or later from:
http://jakarta.apache.org/builds/jakarta-commons/release/commons-pool/v1.0/
On a Windows platform, you will need:
commons-pool-1.0.zip
On a Unix platform, you will need:
commons-pool-1.0.tar.gz
* Unpack the binary distribution into a convenient location so that the
distribution resides in its own directory.
(25) Download and Install the Commons Daemon Binary Distribution
NOTE: This step is only required if you wish to build the classes needed to
run Tomcat as a native operating system daemon using commons-daemon.
* Download a binary distribution of version 20020730 or later from:
http://jakarta.apache.org/builds/jakarta-commons/nightly/commons-daemon
On a Windows platform, you will need:
commons-daemon-YYYYMMDD.zip
On a Unix platform, you will need:
commons-daemon-YYYYMMDD.tar.gz
* Unpack the binary distribution into a convenient location so that the
distribution resides in its own directory.
(26) Customize Build Properties For This Subproject
Most Jakarta subprojects allow you to customize Ant properties (with default
values defined in the "build.xml" file. This is done by creating a text file
named "build.properties" in the source distribution directory (for property
definitions local to this subproject) and/or your user home directory (for
property definitions shared across subprojects). You can use the included
"build.properties.sample" file as a starting point for this.
Tomcat has many external dependencies that are satisfied by configuring
appropriate values in your build.properties file. The easiest
way to satisfy these dependencies is to copy the "build.properties.sample"
file (in the top-level Tomcat source directory) to "build.properties", and
then edit it to suit your environment. On Unix, this would be done as:
cd ${tomcat.source}
cp build.properties.sample build.properties
emacs build.properties
NOTE: Be *sure* that you do not check "build.properties" in to the CVS
repository. This file is local to your own development environment, and
each developer will have their own version.
(27) Build A Binary Distribution
Open a command line shell, and issue the following commands:
cd ${tomcat.source}
ant -projecthelp
If everything is installed correctly, you should see a list of the Ant
"targets" that represent different commands you might wish to build.
You can check that all dependencies are correctly installed by using
the following commands:
cd ${tomcat.source}
ant detect
By convention, the "dist" target creates a complete binary distribution. To
execute it, type the following commands:
cd ${tomcat.source}
ant dist
This will create a complete binary distribution of the subproject (equivalent
in structure to the corresponding binary distribution downloadable from the
Jakarta web site), in the "${tomcat.source}/dist" directory. It will have
the contents described in the corresponding "README.txt" file.
See the document RUNNING.txt for instructions on how to start up and shut down
the servlet/JSP container.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -