简体   繁体   English

部署到Tomcat

[英]Deploy to Tomcat

How can I deploy a war file to Tomcat in exactly the same way Eclipse deploys to Tomcat, if I configured Tomcat in Eclipse? 如果我在Eclipse中配置Tomcat,我如何以与Eclipse部署到Tomcat完全相同的方式将war文件部署到Tomcat?

Reason for asking is that when I deploy with Eclipse everything works fine (databse connection, log4j ect). 问的原因是,当我使用Eclipse部署时,一切正常(数据库连接,log4j等)。 But when I manually deploy the corresponding war file to the same Tomcat installation, none of my external resources like database connection, logging to files work! 但是当我手动将相应的war文件部署到同一个Tomcat安装时,我的外部资源如数据库连接,记录到文件都不起作用!

You can add the external jars to $CATALINA_BASE/lib Read here 您可以将外部jar添加到$CATALINA_BASE/lib 在此处阅读

Common — This class loader contains additional classes that are made visible to both Tomcat internal classes and to all web applications Common - 此类加载器包含对Tomcat内部类和所有Web应用程序都可见的其他类

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

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