简体   繁体   English

外部Apache tomcat服务器

[英]External Apache tomcat Server

Why do we use external tomcat server while working in the industry though there is support for the server in the Eclipse? 尽管在Eclipse中支持服务器,但为什么在行业中工作时仍使用外部tomcat服务器?

Previously I was using the server integrated with the eclipse itself. 以前,我使用的是与eclipse本身集成的服务器。 But now as a part of the industry I've started using the external tomcat server. 但是现在作为行业的一部分,我开始使用外部tomcat服务器。

The reason we use external server during development is that the server integrated with Eclipse works most of the time but not all of the time. 我们在开发过程中使用外部服务器的原因是,与Eclipse集成的服务器大部分时间都可以工作,但并非所有时间都可以工作。 This you will notice when there are multiple number of web application being deployed as part of the development in your Eclipse and you start and stop Tomcat a number of times to refresh web applications in rapid succession. 您会注意到,当Eclipse开发中部署了多个Web应用程序时,您多次启动和停止Tomcat来快速连续刷新Web应用程序,您会注意到这一点。 The problems that can happen are: 可能发生的问题是:

1) Source/WAR files updated but deployed application does not update 2) Tomcat throws exception during start within Eclipse 3) A web context becomes unavailable from within eclipse 1)源/ WAR文件已更新,但已部署的应用程序未更新2)Tomcat在Eclipse中启动时引发异常3)Web上下文在Eclipse中不可用

all the above are not limitations of either eclipse or tomcat, since we change the deployables in rapid succession, sometimes the WAR files get corrupted while exporting or old remnants of previously deployed files remain within tomcat work/localhost directory. 以上所有都不是eclipse或tomcat的限制,因为我们快速连续地更改可部署对象,有时WAR文件在导出时被破坏,或者以前部署的文件的旧残余保留在tomcat work / localhost目录中。

In general this kind of errors become difficult to determine. 通常,这种错误很难确定。 the best way to avoid them is to have a separate tomcat and export the WAR to the webapp directory, even then it is good to clear the work/localhost directory from time to time. 避免它们的最好方法是拥有一个单独的tomcat并将WAR导出到webapp目录,即使那样,也要不时清除work / localhost目录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM