================================================================================
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You 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.
================================================================================
====================================================
Building The Apache Tomcat 9.0 Servlet/JSP Container
====================================================
This subproject contains the source code for Tomcat 9.0, a container that
implements the Servlet 4.0, JSP 2.3, EL 3.0, WebSocket 1.1 and JASPIC 1.1
specifications from the Java Community Process <https://www.jcp.org/>.
Note: If you just need to run Apache Tomcat, it is not necessary to build
it. You may simply download a binary distribution. It is cross-platform.
Read RUNNING.txt for the instruction on how to run it.
In order to build a binary distribution version of Apache Tomcat from a
source distribution, do the following:
(1) Download and Install a Java Development Kit
1. If the JDK is already installed, skip to (2).
2. Download a version 8 of Java Development Kit (JDK) release (use the
latest update available for your chosen version) from one of:
http://www.oracle.com/technetwork/java/javase/downloads/index.html
http://openjdk.java.net/install/index.html
or another JDK vendor.
Note regarding later versions of Java:
As documented elsewhere, one of components in Apache Tomcat includes
a private copy of the Apache Commons DBCP 2 library.
The JDBC interfaces implemented by DBCP frequently change in non-backwards
compatible ways between versions of the Java SE specification. Therefore,
it is likely that DBCP 2 will only compile with the specific version of Java
listed above and that compilation will fail if a later version of Java is
used.
See Apache Commons DBCP 2 project web site for more details on
available versions of the library and its requirements,
https://commons.apache.org/dbcp/
3. Install the JDK according to the instructions included with the release.
4. Set an environment variable JAVA_HOME to the pathname of the directory
into which you installed the JDK release.
(2) Install Apache Ant version 1.9.8 or later on your computer.
1. If Apache Ant version 1.9.8 or later is already installed on your
computer, skip to (3).
2. Download a binary distribution of Ant from:
https://ant.apache.org/bindownload.cgi
3. Unpack the binary distribution into a convenient location so that the
Ant release resides in its own directory (conventionally named
"apache-ant-[version]").
For the purposes of the remainder of this document, the symbolic name
"${ant.home}" is used to refer to the full pathname of the release
directory.
4. Create an ANT_HOME environment variable to point the directory
${ant.home}.
5. Modify the PATH environment variable to include the directory
${ant.home}/bin in its list. This makes the "ant" command line script
available, which will be used to actually perform the build.
(3) Building Tomcat 9.0
(3.1) Checkout or obtain the source code for Tomcat 9.0
Checkout the source using SVN, selecting a tag for released version or
trunk for the current development code, or download and unpack a source
package.
* Tomcat SVN repository URL:
https://svn.apache.org/repos/asf/tomcat/tc9.0.x/trunk/
* Source packages can be downloaded from:
https://tomcat.apache.org/download-90.cgi
The location where the source has been placed will be further referred as
${tomcat.source}.
The Tomcat local build process does not modify line-endings. The svn repository
is configured so that all files will be checked out with the line-ending
appropriate for the current platform. When using a source package you should
ensure that you use the source package that has the appropriate line-ending
for your platform:
zip -> CRLF
tar.gz -> LF
Note that the release build process does modify line-endings to ensure that
each release package has the appropriate line-endings.
(3.2) Building
1. The build is controlled by creating a ${tomcat.source}/build.properties
file.
It is recommended to always create the file, because of unfortunate
default value of base.path property. You may start with the following
content for the file:
# ----- Default Base Path for Dependent Packages -----
# Replace this path with the directory path where dependencies binaries
# should be downloaded
base.path=/home/me/some-place-to-download-to
2. Configure base.path property by adding it to the
${tomcat.source}/build.properties file.
The base.path property specifies the place where Tomcat dependencies
required by the build are downloaded. It is recommended to place this
directory outside of the source tree, so that you do not waste your
time re-downloading the libraries.
* NOTE: The default value of the base.path property configures the build script
to download the libraries required to build Tomcat to the
${user.home}/tomcat-build-libs directory.
* NOTE: Users accessing the Internet through a proxy must use the properties
file to indicate to Ant the proxy configuration.
The following properties should be added to the ${tomcat.source}/build.properties
file.
proxy.use=true
proxy.host=proxy.domain
proxy.port=8080
proxy.user=username
proxy.password=password
See Apache Ant documentation for the <setproxy> task for details.
3. Go to the sources directory and run Ant:
cd ${tomcat.source}
ant
This will execute the "deploy" target in build.xml.
Once the build has completed successfully, a usable Tomcat installation
will have been produced in the ${tomcat.source}/output/build directory,
and can be started and stopped with the usual scripts.
Note that the build includes Tomcat documentation, which can be found
in the output/build/webapps/docs directory.
The path of the output directory can be controlled by specifying the
"tomcat.output" property in the build.properties file.
* NOTE: Do not run the build as the root user. Building and running Tomcat
does not require root privileges.
(4) Updating sources and rebuilding
It is recommended that you regularly update the downloaded Tomcat 9.0
sources using your SVN client.
For a quick rebuild of only modified code you can use:
cd ${tomcat.source}
ant
(5) Special builds
There are several targets in Tomcat build files that are useful to be
called separately. They build components that you may want to build
quickly, or ones that are included in the full release and are not built
during the default "deploy" build.
(5.1) Building documentation
The documentation web application is built during the default "deploy"
build.
It can be built quickly by using the following commands:
cd ${tomcat.source}
ant build-docs
The output of this command will be found in the following directory:
output/build/webapps/docs
The API documentation (Javadoc) is built during a "release" build. It is
easy to build it separately by using the following commands
没有合适的资源?快使用搜索试试~ 我知道了~
tomcat,很好的java资源,不对吗?
需积分: 0 0 下载量 195 浏览量
2023-11-13
07:17:32
上传
评论
收藏 119.3MB TGZ 举报
温馨提示
共622个文件
java:193个
class:193个
log:94个
tomcat,很好的java资源,不对吗?
资源推荐
资源详情
资源评论
收起资源包目录
tomcat,很好的java资源,不对吗? (622个子文件)
catalina.bat 16KB
tool-wrapper.bat 4KB
makebase.bat 4KB
setclasspath.bat 3KB
ciphers.bat 2KB
digest.bat 2KB
configtest.bat 2KB
version.bat 2KB
startup.bat 2KB
shutdown.bat 2KB
imageDetailRotate_jsp.class 154KB
weOrderList_jsp.class 92KB
nailProductList_jsp.class 84KB
weOrderListDone_jsp.class 77KB
weOrderListVeri_jsp.class 73KB
weOrderListTodo_jsp.class 73KB
shoeProductList_jsp.class 71KB
productDetail_jsp.class 70KB
weOrderForm_jsp.class 64KB
zwfwMatterList_jsp.class 64KB
shoeOrderListWarning_jsp.class 63KB
beautyNailList_jsp.class 62KB
sysIndex_002djp_jsp.class 61KB
shoeOrderList_jsp.class 60KB
sysIndex_002djp_jsp.class 59KB
sysIndex_002djp_jsp.class 59KB
zbContentList_jsp.class 56KB
userForm_jsp.class 56KB
nailTrainingContentList_jsp.class 53KB
nailCustomerForm_jsp.class 53KB
sysIndex_jsp.class 53KB
sysIndex_jsp.class 53KB
newsList_jsp.class 52KB
nlpQaContentList_jsp.class 52KB
nailMaterialLibList_jsp.class 52KB
sysIndex_jsp.class 52KB
sysIndex_jsp.class 52KB
nailCustomerList_jsp.class 50KB
manicuristList_jsp.class 49KB
tupleProgramList_jsp.class 48KB
index_jsp.class 48KB
shoeVendorList_jsp.class 47KB
zwfwMatterRegisterList_jsp.class 46KB
chineselineImageList_jsp.class 46KB
chineselineProgramList_jsp.class 46KB
shoeCustomerList_jsp.class 46KB
sysIndex_002djp_jsp.class 46KB
weOrderListExport_jsp.class 46KB
shoeSalesList_jsp.class 46KB
nailProductListFilter_jsp.class 45KB
roleList_jsp.class 44KB
roleList_jsp.class 44KB
zWFW_005fZXInfoList_jsp.class 44KB
labelSampleImageList_jsp.class 44KB
beautyNailForm_jsp.class 44KB
tupleImageList_jsp.class 43KB
shoeProductForm_jsp.class 43KB
article_jsp.class 43KB
menuList_jsp.class 43KB
menuList_jsp.class 43KB
menuList_jsp.class 42KB
testNoteList_jsp.class 40KB
imageDetailRect_jsp.class 38KB
tupleImageListE_jsp.class 37KB
userForm_jsp.class 37KB
imageDetailSegment_jsp.class 36KB
scheduleJobList_jsp.class 36KB
scheduleJobList_jsp.class 36KB
nailTrainingVideo_jsp.class 35KB
modelList_jsp.class 35KB
dictList_jsp.class 35KB
dictList_jsp.class 35KB
dictList_jsp.class 35KB
userIndex_jsp.class 34KB
userIndex_jsp.class 34KB
shoeOrderForm_jsp.class 34KB
userIndex_jsp.class 34KB
userIndex_jsp.class 33KB
roleForm_jsp.class 33KB
imageDetailPoint_jsp.class 33KB
tupleProgramForm_jsp.class 33KB
zwfwAuditFlowAudit_jsp.class 33KB
chineselineImageListE_jsp.class 31KB
taskTodoList_jsp.class 30KB
nailProductForm_jsp.class 30KB
shoeCustomerForm_jsp.class 29KB
mailBoxList_jsp.class 29KB
mailBoxList_jsp.class 29KB
logList_jsp.class 28KB
logList_jsp.class 28KB
chineselineImage_jsp.class 27KB
nailMaterialLibForm_jsp.class 27KB
treeselect_tag.class 26KB
nailLabelMaterialList_jsp.class 26KB
treeselect_tag.class 26KB
treeselect_tag.class 26KB
treeselect_tag.class 26KB
treeselect_tag.class 26KB
nailLabelEffectList_jsp.class 26KB
nailLabelThemeList_jsp.class 26KB
共 622 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7
资源评论
wuxianghui2041
- 粉丝: 0
- 资源: 25
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功