How can I get tomcat CATALINA_BASE path programmatically ?
Answered
I need to get the tomcat catalina.base path to access my compiled JSP files. Generally Catalina Base path should be like "C:\Users\username\AppData\Local\JetBrains\IntelliJIdea2021.1\tomcat\Project_Name".
But with some tomcat versions it's appear as "C:\Users\username\AppData\Local\JetBrains\IntelliJIdea2021.1\tomcat\0b2697dc-4ae6-447e-af7d-5a73b1f8854e"
Is there any possible way to locate the Catalina base path with this unknown folder(0b2697dc-4ae6-447e-af7d-5a73b1f8854e) programmatically ?
Thanks,
Anuja
Please sign in to leave a comment.
Use org.jetbrains.idea.tomcat.server.TomcatLocalModel to access all properties