SmartTomcat icon indicating copy to clipboard operation
SmartTomcat copied to clipboard

Custom context.xml

Open Isukthar opened this issue 1 year ago • 4 comments

Hello, I installed SmartTomcat plugin, but I don't find how I can customize Tomcat files for the instance I create with the plugin. I'd like to modify context.xml file, without changing it in tomcat binaries folder. Is there a way to do it or it's a new feature request ?

Thx

Isukthar avatar Nov 03 '23 17:11 Isukthar

@Isukthar You can add a custom context by following https://github.com/zengkid/SmartTomcat#:~:text=to%20deployment%20directory.-,Custom%20Context,-opional%2C%20if. If that is not your need, then I'm afraid it could be a feature request.

yuezk avatar Nov 06 '23 01:11 yuezk

My problem is that the feature in your link use a context.xml embedded in the application. Usually, with a dedicated tomcat, we use a separate context.xml copied in tomcat config. So yes, feature request.

Thanks for your answer

Isukthar avatar Nov 06 '23 08:11 Isukthar

Currently, the context.xml for SmartTomcat is copied from the location of the Tomcat you selected. But you need a way to modify or specify the context.xml for SmartTomcat. Right?

yuezk avatar Nov 07 '23 05:11 yuezk

Yes, i need to make per application changes on context.xml, without modifying original context.xml.

thx

Isukthar avatar Nov 07 '23 08:11 Isukthar