简体   繁体   English

Eclipse + Tomcat如何让服务器保持运行

[英]Eclipse + Tomcat how to keep the server running

I'm developing a SOAP client and server and I was trying to use the same eclipse instance for both sides. 我正在开发一个SOAP客户端和服务器,我试图为双方使用相同的eclipse实例。 The two projects are on separate workspaces so I need to switch between them often. 这两个项目位于不同的工作区,因此我需要经常在它们之间切换。 Can I deploy the server side to my Tomcat THEN switch to the client side workspace without Eclipse stopping Tomcat? 我是否可以将服务器端部署到我的Tomcat THEN切换到客户端工作区而无需Eclipse停止Tomcat? Or do I need to start Tomcat manually and deploy a war? 还是我需要手动启动Tomcat并部署战争?

Obviously you can start Tomcat manually and deploy the war. 显然你可以手动启动Tomcat并部署战争。 The other way try to import the client application project to your other workspace. 另一种方法是尝试将客户端应用程序项目导入到其他工作区。 File->Import->General->Existing project into workspace 文件 - >导入 - >常规 - >将现有项目导入工作区

Option 1:- Create tomcat instance in your server/ local machine and deploy war file in tomcat instance and start the tomcat. 选项1: - 在服务器/本地计算机中创建tomcat实例,并在tomcat实例中部署war文件并启动tomcat。

Option 2:- Import both project in same workspace , and run in two instances of tomcat by creating 2 instance of tomcat in eclipse, make sure to change the port configuration in each instance 选项2: - 在同一个工作区中导入两个项目,并在eclipse中创建2个tomcat实例,在两个tomcat实例中运行,确保在每个实例中更改端口配置

http://www.codejava.net/servers/tomcat/how-to-change-port-numbers-for-tomcat-in-eclipse http://www.codejava.net/servers/tomcat/how-to-change-port-numbers-for-tomcat-in-eclipse

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

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