Eclipse修改server.xml每次运行项目(运行 - >运行在服务器上) [英] Eclipse modify server.xml each time run the project (Run-->Run on Server)
问题描述
此外,在eclipse中还有一个服务器项目,请单独使用服务器。 xml和其他配置文件。
通常它工作正常。在更改了SSL配置的server.xml(在eclipse项目中)之后,出现了这个问题。
配置正常。但是每次运行该项目(Run - > Run on Server)时,server.xml将被修改为默认版本。我的自定义SSL更改丢失。
此外,我还尝试在tomcat安装位置(C:\apache-tomcat-7.0.35\conf)中更改server.xml ,但它没有从日食中挑选。
任何人都可以帮助我吗?
谢谢
我发现了一个适用的解决方案,但并不完美。
我所做的是;
1.在安装位置更改server.xml文件(在我的情况下为C:\apache-tomcat-7.0.35\conf)
2.从eclipse服务器面板中删除tomcat服务器(请参阅下面的图片)
3.在eclipse服务器面板中创建一个新的服务器。 >
4.Then Server项目将通过我的自定义更改生成新的server.xml。
5.技巧是,在面板中创建新服务器时,最初eclipse从安装位置选择server.xml。
感谢
I'm using Tomcat 7 on Eclipse Juno. I use workspace metadata as server location (Please see my tomcat configurations below).
Also I got a Server project in eclipse [please see the image below] with separate server.xml and other configuration files.
Normally it works fine. The issue came across after I changed the server.xml (in eclipse project) for SSL configurations.
Configurations are working fine. But each time I run the project (Run-->Run on Server) server.xml get modified to the default version. My customized SSL changes are missing.
Also I tried to change server.xml in tomcat installation location (C:\apache-tomcat-7.0.35\conf), but it didn't pick from eclipse.
Can anyone please help me on this?
Thanks
I found an applicable solution but not a perfect one.
What I have done is;
1.Changed server.xml file in installation location (In my case C:\apache-tomcat-7.0.35\conf)
2.Remove tomcat server from eclipse server panel (please see the image below)
3.Create a new server in eclipse server panel.
4.Then Server project will be generated new server.xml with my customized changes.
5.The trick is, initially eclipse picks server.xml from installation location when create a new server in panel.
Thanks
这篇关于Eclipse修改server.xml每次运行项目(运行 - >运行在服务器上)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!