Change eclipse's built in tomcat context.xml file using WTP?
Is it possible somehow to modify the contents of the context.xml that eclipse uses when you are doing "Run as" -> "On server"... and "Debug as" -> "on server"
We have some settings that are in our production environments context.xml file and we need them to be available to eclipse built in tomcat as well.
I know we could use e开发者_如何学Cclipse to run run on an external server, but thats not as convenient.
Have a look at the automatically created project "Servers". There should be a folder for each configured Server. There, open the context.xml and add anything you like to be in the "default" context (Parameter-Tags for example).
Anything that's inside there will be used to populate the context.xml WTP automatically creates on publishing for each project on that Server.
Or use the project specific way: put a context.xml with your contents inside META-INF in your project (have a look here: http://wiki.eclipse.org/WTP_Tomcat_FAQ#How_do_I_specify_the_Tomcat_context_configuration_for_my_Web_Application.3F)
精彩评论