This sounds like an obvious question but it's not. I've been through a bunch of answers and none ask or say what the URL is to the file.
I want to be able to host a .dtd file so my xml can reference it like this:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE Somexml SYSTEM "http//:example.com/my.dtd">
<Somexml>
</Somexml>
I've tried putting my file in /static/ but there's no evidence that Tomcat is hosting this file.
These are some of the questions I've already looked at. None of them ask or state the URL of the file, so this question is not a duplicate: How to serve static content from tomcat https://serverfault.com/questions/143667/how-to-access-a-simple-file-or-folder-from-tomcat-webapps-folder How to serve static files in my web application on Tomcat Simplest way to serve static data from outside the application server in a Java web application https://www.moreofless.co.uk/static-content-web-pages-images-tomcat-outside-war/