想知道Tomcat 个版本有什么差异,下载Tomcat的文挡changelog.html就知道了。那tomcat5.5来说下载apache-tomcat-5.5.25-fulldocs,解压后查看apache-tomcat-5.5.25-fulldocs\tomcat-5.5-doc\changelog.html 就一清二楚了。
跟版本的区别主要反映在两个方面:
1。Tomcat本身的技术演进,包括性能的不断提高,功能的增加增强,甚至于重构
2。因为Tomcat本身是块Servlet容器的试验田,所以他的版本是跟Servlet和JSP的规范一起发展的。
下面粗略介绍一下:
Tomcat 3.x
tomcat 的初始正式版本是3.x,(v3.1.1、v3.2.4、v3.3),完全遵循ASF(Apache Software Foundation)规范,支持Servlet2.2和JSP1.1
该版本已经能能够连接IIS、Netscape Web Server,并支持war包形式发布应用。他最大的问题就是存在安全问题,并因此停止发布。
Tomcat 4.x
鉴于Tomcat 3.x的种种不足和致命的安全问题,Tomcat 4.x 对整个项目进行了重新架构,并且遵循新的servlet2.3、jsp1.2规范的支持并同时向下兼容Servlet2.2和JSP1.1 。重新架构的组件使用ant来设置任务来构建;开始支持与IDE的集成;连接器使用新的Cycote Connector连接器;基于管理的JMX;支持struts;还有就是一大堆的性能和内存使用效率的提高,几乎每版都声明有这样的好处……
Tomcat 5.x
Tomcat 5.x 基于Tomcat 3.x,Tomcat 4.x,遵循新的servlet2.4、jsp2.0规范。他最大的特点就是支持JDK5.0。Tomcat 5.x 是个总结、改进版本,因为有了3.x,4.x作基础,加上使用JDK5.0,使Tomcat在性能上有了突飞猛进的发展,备受大家欢迎。
Tomcat 6.x
Tomcat 6.x是目前的最新版本了。遵循新的servlet2.5、jsp2.1。该版本增加了很多新特性。主要有:
高级的IO功能:采用APR或NIO HTTP连接进行异步IO操作
组件功能:可以使用ant -f extras.xml的方式为tomcat添加新的组件。
另外一个我感觉变化很大的是Tomcat 6.x目录发生了很的变化,lib 目录都集中到一起放在跟目录下,jar包也简洁多了(从数量上^_^)
总结:Tomcat 各版本之间,一方面版本号是跟着servlet、jsp规范同步演进的(请容许我怎么说),另一方面,软件在架构设计和功能、性能方面都是与时俱进,不断丰富和提高(先前的版本不好就大胆的重新架构,大胆尝试新技术,因为他本身是用来做实验的^_^)。
Tomcat6.x在目录上最大的区别就是将 lib 包直接置于 CATALINA_HOME/lib 下,而tomcat 5.x 系列版本是分common/share/server 三个包存放的。再具体解释一下:
CATALINA_HOME/common
在这个目录下的lib目录,存放Tomcat 服务器和所有Web应用都能访问的JAR.
CATALINA_HOME/share
在这个目录下的lib目录,存放所有Web应用都能访问的,但Tomcat 不能访问的JAR。
CATALINA_HOME/server
在这个目录下的lib目录,存放Tomcat 服务器需要的但Web应用不能访问的JAR。
另外该目录下webapps 存放Tomcat 自带的APP-admin和manager两个应用。
common/share/server 三个包中的classes是用来存放class的,就是说你的类库不打成JAR包,而是class文件就直接放在这里。
Tomcat 6.x 在目录结构上就是针对lib包的存放位置做了调整,使应用部署更加方便。另外:
Tomcat 6.x中endorsed 从CATALINA_HOME/common移到根目录下了CATALINA_HOME\endorsed 至于其它没有太大的变化。
另外需要说明的是tomcat 5.x有目录CATALINA_HOME\conf\Catalina\localhost
在Tomcat 6.x中该目录是空的就没给你建,你可以自己建。有好几个朋友问我这个问题了,这里给你提醒一下。
至于xml文件我还没有注意到有什么变化,以后发现了大家在讨论。
相关推荐
tomcat-5.5.23
============================================<br><br>Out of the box, Tomcat 5.5 requires the Java 2 Standard Edition Runtime<br>Environment (JRE) version 5.0 or later. However, you can also run Tomcat<br>5.5 on earlier versions of the JRE, as detailed below.<br><br>=============================<br>Running With JRE 5.0 Or Later<br>=============================<br><br>(1) Download and Install the J2SE Runtime Environment (JRE)<br><br>(1.1) Download the Java 2 Standard Edition Runtime Environment (JRE),<br> release version 5.0 or later, from http://java.sun.com/j2se.<br><br>(1.2) Install the JRE according to the instructions included with the<br> release.<br><br>(1.3) Set an environment variable named JAVA_HOME to the pathname of<br> the directory into which you installed the JRE, e.g. c:\j2sdk5.0<br> or /usr/local/java/j2sdk5.0.<br><br><br>(2) Download and Install the Tomcat Binary Distribution<br><br>NOTE: As an alternative to downloading a binary distribution, you can create<br>your own from the Tomcat source repository, as described in "BUILDING.txt".<br>If you do this, the value to use for "${catalina.home}" will be the "dist"<br>subdirectory of your source distribution.<br><br>(2.1) Download a binary distribution of Tomcat from:<br><br> http://tomcat.apache.org<br><br>(2.2) Unpack the binary distribution into a convenient location so that the<br> distribution resides in its own directory (conventionally named<br> "apache-tomcat-[version]"). For the purposes of the remainder of this document,<br> the symbolic name "$CATALINA_HOME" is used to refer to the full<br> pathname of the release directory.<br><br><br>(3) Start Up Tomcat<br><br>(3.1) Tomcat can be started by executing the following commands:<br><br> $CATALINA_HOME\bin\startup.bat (Windows)<br><br> $CATALINA_HOME/bin/startup.sh (Unix)<br><br>(3.2) After startup, the default web applications included with Tomcat will be<br> available by visiting:<br><br> http://localhost:8080/<br><br>(3.3) Further information about configuring and running Tomcat can be found in<br> the documentation included here, as well as on the Tomcat web site:<br><br> http://tomcat.apache.org<br><br><br>(4) Shut Down Tomcat<br><br>(4.1) Tomcat can be shut down by executing the following command:<br><br> $CATALINA_HOME\bin\shutdown (Windows)<br><br> $CATALINA_HOME/bin/shutdown.sh (Unix)<br><br><br><br>====================================<br>Running Tomcat With J2SE Version 1.4<br>====================================<br><br>(1) Obtain the compat package:<br><br>(1.1) Download the compat package from the binary download site:<br> http://tomcat.apache.org<br><br> * Or build this package yourself from the source code: see <br> "BUILDING.txt" in this directory.<br><br>(2) Unzip the package in $CATALINA_HOME. It will place the XML<br> parser APIs and Xerces implementation in the common/endorsed<br> directory, and the JMX API jar (jmx.jar from Sun) in the bin<br> directory.<br><br>(3) Follow the same directions for starting and stopping the<br> server as if you were using J2SE 5.0.<br><br><br>==================================================<br>Advanced Configuration - Multiple Tomcat Instances<br>==================================================<br><br>In many circumstances, it is desirable to have a single copy of a Tomcat<br>binary distribution shared among multiple users on the same server. To make<br>this possible, you can pass a "-Dcatalina.base=$CATALINA_BASE" argument when<br>executing the startup command (see (2)). In this<br>"-Dcatalina.base=$CATALINA_BASE" argument, replace $CATALINA_BASE with the<br>directory that contains the files for your 'personal' Tomcat instance.<br><br>When you use this "-Dcatalina.base=$CATALINA_BASE" argument, Tomcat will<br>calculate all relative references for files in the following directories based<br>on the value of $CATALINA_BASE instead of $CATALINA_HOME:<br><br>* conf - Server configuration files (including server.xml)<br><br>* logs - Log and output files<br><br>* shared - For classes and resources that must be shared across all web<br> applications<br><br>* webapps - Automatically loaded web applications<br><br>* work - Temporary working directories for web applications<br><br>* temp - Directory used by the JVM for temporary files (java.io.tmpdir)<br><br>If you do not pass the "-Dcatalina.base=$CATALINA_BASE" argument to the<br>startup command, $CATALINA_BASE will default to the same value as $CATALINA_HOME,<br> which means that the same directory is used for all relative path resolutions.<br><br>The administration and manager web applications, which are defined in the<br>$CATALINA_BASE/conf/Catalina/localhost/admin.xml<br>and <br>$CATALINA_BASE/conf/Catalina/localhost/manager.xml files, will<br>not run in that configuration, unless either:<br>- The path specified in the docBase attribute of the Context element is made<br> absolute, and replaced respectively by $CATALINA_HOME/server/webapps/admin<br> and $CATALINA_HOME/server/webapps/manager<br>- Both web applications are copied or moved to $CATALINA_BASE, <br> and the path specified in the docBase attribute of the Context<br> element is modified appropriately.<br>- Both web applications are disabled by removing<br> $CATALINA_BASE/conf/Catalina/localhost/admin.xml<br> and<br> $CATALINA_BASE/conf/Catalina/localhost/manager.xml.<br><br><br>================<br>Troubleshooting<br>================<br><br>There are only really 3 things likely to go wrong during the stand-alone<br>Tomcat install:<br><br>(1) The most common hiccup is when another web server (or any process for that<br> matter) has laid claim to port 8080. This is the default HTTP port that<br> Tomcat attempts to bind to at startup. To change this, open the file:<br><br> $CATALINA_HOME/conf/server.xml<br><br> and search for '8080'. Change it to a port that isn't in use, and is<br> greater than 1024, as ports less than or equal to 1024 require superuser<br> access to bind under UNIX.<br><br> Restart Tomcat and you're in business. Be sure that you replace the "8080"<br> in the URL you're using to access Tomcat. For example, if you change the<br> port to 1977, you would request the URL http://localhost:1977/ in your browser.<br><br>(2) An "out of environment space" error when running the batch files in<br> Windows 95, 98, or ME operating systems.<br><br> Right-click on the STARTUP.BAT and SHUTDOWN.BAT files. Click on<br> "Properties", then on the "Memory" tab. For the "Initial environment" field,<br> enter in something like 4096.<br><br> After you click apply, Windows will create shortcuts which you can use<br> to start and stop the container.<br><br>(3) The 'localhost' machine isn't found. This could happen if you're behind a<br> proxy. If that's the case, make sure the proxy configuration for your<br> browser knows that you shouldn't be going through the proxy to access the<br> "localhost".<br><br> In Netscape, this is under Edit/Preferences -> Advanced/Proxies, and in<br> Internet Explorer, Tools -> Internet Options -> Connections -> LAN Settings.<br>
myecplise 完全开发
一、开发环境配置第一步:下载j2sdk和tomcat:到sun官方站(http://java.sun.com/j2se/1.5.0/download.jsp)下载j2sdk,注意下载版本为Windows Offline Installation的SDK,同时最好下载J2SE 1.5.0 Documentation,然后到tomcat官方站点(http://jakarta.a...
tomcat5.5解压版
Tomcat是Apache 软件基金会(Apache Software Foundation)的Jakarta 项目中的一个核心项目,由Apache、Sun 和其他一些公司及个人共同开发而成。由于有了Sun 的参与和支持,最新的Servlet 和JSP 规范总是能在Tomcat 中得到体现,Tomcat 5 支持最新的Servlet 2.4 和JSP 2.0 规范。因为Tomcat 技术先进、性能稳定,而且免费,因而深受Java 爱好者的喜爱并得到了部分软件开发商的认可,成为目前比较流行的Web 应用服务器。目前最新版本是6.0。
Apache Tomcat 5.5 常见问题解决方案
Apache Tomcat 5.5 常见问题解决方案 项目基础介绍 Apache Tomcat 5.5 是一个开源的 Java Servlet 容器,由 Apache 软件基金会维护。它是 Java EE(Java Platform, Enterprise Edition)的一部分,主要用于运行基于 Java 的 Web 应用程序。Tomcat 5.5 支持 Servlet 2.4 和 JSP 2...
MySQL 4.1/5.0/5.1/5.5/5.6各版本的主要区别整理
各版本的一些命令差异: show innodb status\G mysql-5.1 show engines innodb status\G mysql-5.5 关于grant授权 mysql-5.5 的 user@’%’ 不包含localhost ———————————————————————– MySQL 4.1/5.0/5.1/5.5/5.6各版本的主要区别 1、4.1 增加了子查询的支持,字符集增加UTF-8,GROUP BY语句增加了ROLLUP,mysql.user表采用了更好的加密算法。 2、5.0 增加了Stored procedures、Views、Cursors、T
【SAP PO】SAP PO 接口配置完整教程之一RFC服务发布
SAP RFC开发,PO接口配置
Tomcat 5.5 基本详细配置(5)
9.2 分配角色名迄今为止,讨论已经集中到完全由容器(服务器)处理的安全问题之上了。但servlet以及JSP页面也能够处理它们自己的安全问题。例如,容器可能允许用户从bigwig或bigcheese角色访问一个显示主管人员额外紧贴的页面,但只允许bigwig用户修改此页面的参数。完成这种更细致的控制的一种常见方法是调用HttpServletRequset的isUserInRole方法
电商数据分析18——电商广告投放的数据分析与优化
在当今的电商行业中,广告投放是提高品牌知名度、吸引潜在客户和增加销售额的关键策略之一。随着市场竞争的加剧,仅仅依靠直观判断和传统方法已经无法满足广告投放的需求。数据分析在这里扮演了至关重要的角色,它可以帮助企业更准确地定位目标受众,评估广告效果,优化广告内容,从而提高广告效率和投资回报率(ROI)。
Tomcat5.5的安装与配置
安装Tomcat之前要先安装JDK,可从http://java.sun.com上下载最新版本的JDK。Tomcat可从Apache Jakarta Project站点(http://jakarta.apache.org/site/binindex.cgi)上下载,本书使用的Tomcat版本是5.5.7,它需要安装J2SE 5.0(JDK 1.5)以上的版本才能运行。对于Window
量化投资进阶:Fama-French三因子模型实战解析与Python实现
本文深入解析了Fama-French三因子模型,并提供了完整的Python实战指南。文章阐述了该模型如何通过引入市值因子(SMB)和价值因子(HML),对传统CAPM模型进行重要扩展,以更精准地解释股票收益来源。详细演示了使用Python获取数据、执行回归分析并解读结果(包括关键的阿尔法α)的全过程,并探讨了该模型在量化策略构建、风格诊断和业绩归因中的核心应用。
图像质量评估:使用 SSIM 计算图像相似性
在图像处理领域,衡量两幅图像之间相似性的一种常见方法是使用结构相似性指数(SSIM)。SSIM 是一种全参考的图像质量评估指标,它不仅考虑了图像的亮度、对比度,还考虑了结构信息。在本文中,我们将介绍一个使用 Python 和 OpenCV 实现的 SSIM 计算脚本,并使用该脚本评估两幅图像的相似性。
tomcat5.0与tomcat6.0的区别
1、tomcat5.0与tomcat6.0的区别:a、 首先是目录的不同:以前的common文件夹变成了lib文件夹,也就是放数据库驱动的文件的地方。 b、 最主要的是在conf文件夹下,多添了一个context.xml的文件,这个文件和server.xml文件的作用类似,就是配置数据源的文件,在这个两个文件中的哪个文件配置都可以,也就是这两个文件,是在tomca
从CCD数据上报看wxHOOK的封号风险与规避
本文深入分析了微信CCD数据上报机制对wxHOOK的检测逻辑与封号风险,揭示了调试器路径暴露、非白名单DLL加载和内存校验失败等关键风险点。通过实战案例和规避方案,帮助开发者理解如何安全使用wxHOOK技术,避免封号风险,包括内存镜像欺骗、内核级隐蔽和硬件辅助方案等高级技巧。
tomcat5.0和tomcat6.0区别
1、tomcat5.0与tomcat6.0的区别: a、 首先是目录的不同:以前的common文件夹变成了lib文件夹,也就是放数据库驱动的文件的地方。 b、 最主要的是在conf文件夹下,多添了一个context.xml的文件,这个文件和server.xml文件的作用类似,就是配置数据源的文件,在这个两个文件中的哪个文件配置都可以,也就是这两个文件,是在tomcat启动时...
【四足机器人项目实战】MIT四足机器人力控电机优劣分析及解决办法
系列文章目录 提示:这里可以添加系列文章的所有文章的目录,目录需要自己手动添加 TODO:写完再整理 文章目录系列文章目录前言一、mit力控电机方案二、弊端三、优点四、解决办法设计相关看专栏其他博客 前言 认知有限,望大家多多包涵,有什么问题也希望能够与大家多交流,共同成长! 本文先对XXX做个简单的介绍,具体内容后续再更,其他模块可以参考去我其他文章 提示:以下是本篇文章正文内容 一、mit力控电机方案 MITCheetahMini驱动器采用的电机是类似于公版电机T-MotorU8的型号
PCL RANSAC拟合直线并插值
空间直线线性插值的原理与实现方法。
tomcat5.0和6.0区别
1.tomcat5.0里common包在tomcat6.0是lib包。 2.tomcat6.0config文件下添加了context.xml文件,类似server.xml文件。 配置数据源,tomcat启动时,自动加载。俩个文件同事配置可俩个项目同时运行。 ...
YOLO11改进|注意力机制篇|引入MLCA轻量级注意力机制
YOLO11中添加MLCA轻量级注意力机制
tomcat5.5下el表达式失效
jstl1.1版本由2个必要包构成:standard-1.1.jar和JSTL1.1.jar;而jstl1.1版本只有一个必要包JSTL1.2.jar。(一开始在替换的过程中想当然的用JSTL1.1.jar换JSTL1.2.jar,然后遗漏了standard-1.1.jar,耽搁了不少时间。) 经测试,tomcat6.0支持JSTL1.2版本,也支持JSTL1.1版本;tomcat5.5...
LinePhone3.2.7(android端最新版本) sip客户端
SIP客户端For android:LinePhone3.2.7(最新版本),官网地址:http://www.linphone.org/
温度PID控制PLC程序
温度PID稳定控制程序,适用于欧姆龙PLC,对其他PLC也具有很大参考价值
tomcat配置JNDI数据源例子
说明:tomcat5.5与6.0的配置略有不同,即:tomcat的lib位置不同(其他完全一致), 6.0位置是:D:\我的工具\apache-tomcat-6.0.10\lib下 5.5位置是:D:\我的工具\apache-tomcat-5.5.17\common\lib 局部数据源步骤: 一、拷贝数据库驱动到:D:\我的工具\apache-tomcat-6.0.10
STM32F407中文手册
STM32f407中文手册 本参考手册面向应用开发人员,提供有关使用 STM32F405xx/07xx、STM32F415xx/17xx、 STM32F42xxx 和 STM32F43xxx 微控制器存储器与外设的完整信息。STM32F405xx/07xx、STM32F415xx/17xx、STM32F42xxx 和 STM32F43xxx 构成一个微 控制器系列,各产品具有不同的存储器大小、封装和外设。有关订购信息以及器件的机械与电气特性,请参见数据手册。有关 ARM Cortex™-M4F 内核的信息,请参见《Cortex™-M4F 技术参考手册》。
tomcat5.5与6.0数据源配置差别
tomcat5.5以及以下版本使用下面的: url jdbc:oracle:thin:@10.0.0.1:1521:test username test password test maxActive 10 maxWait 20 driverClassName oracle.jdbc.driver.OracleDriv
jstl标签库------引用标签库
jstl标签库——引用标签库环境:jdk1.6,java EE 5,MyEclipse8.5,tomcat6.0.41,jstl1.2jstl标签库包括核心标签库、格式化标签库、sql标签库、XML标签库、函数标签库等,这里主要是介绍核心标签库,其他标签库没用过不发表意见。要使用标签库,首先要引用库。在jsp页面顶部添加以下语句: 核心标签库:<%@taglib uri=”http://java.
tomcat6.0与tomcat5.5 的区别
[size=medium][size=medium]Tomcat6.x在目录上最大的区别就是将 lib 包直接置于 CATALINA_HOME/lib 下,而tomcat 5.x 系列版本是分common/share/server 三个包存放的。再具体解释一下: CATALINA_HOME/common 在这个目录下的lib目录,存放Tomcat 服务器和所有Web应用都能访问的JAR. ...
总结下tomcat5.0和tomcat6.0与jdk1.6与MyEclipse6.0:
总结下tomcat5.0和tomcat6.0与jdk1.6与MyEclipse6.0: 首先讲下它们的安装:先装jdk,装完jdk后装Tomcat,在装Tomcat时会提示要引入jdk的bin路径。 Tomcat5.0与Tomcat6.0相差比较大,从它们的安装文件中就可以看出来,tomcat5.0的conf文件下无context.xml,而Tomcat6.0则有。Tomcat6.0文件目录下...
199



被折叠的 条评论
为什么被折叠?



