Re: Housing and reading internal resources using Tomcat 8.5.4 and JDK 1.8

2016-08-30 Thread Doug Gschwind
Hi Chris, Thank you for the responses, yes those both help. I did a lot of reading yesterday and was unable to get a clear answer at how this should be done with JEE, where internal resource files are expected to reside (besides just generally being under WEB-INF) within the deployment, and the St

Re: Housing and reading internal resources using Tomcat 8.5.4 and JDK 1.8

2016-08-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Doug, On 8/29/16 6:29 PM, Doug Gschwind wrote: > Hello everyone, > > I have a file xyz.txt that is specific to my web application which > needs to be located by my web application, and I wish to find that > resource via getClass().ClassLoader().get

Re: Housing and reading internal resources using Tomcat 8.5.4 and JDK 1.8

2016-08-30 Thread Christoph Nenning
> Hello everyone, > > I have a file xyz.txt that is specific to my web application which needs to > be located by my web application, and I wish to find that resource via > getClass().ClassLoader().getResource("xyz.txt") at runtime. The xyz.txt > file has no relation to any particular Java class

Housing and reading internal resources using Tomcat 8.5.4 and JDK 1.8

2016-08-29 Thread Doug Gschwind
Hello everyone, I have a file xyz.txt that is specific to my web application which needs to be located by my web application, and I wish to find that resource via getClass().ClassLoader().getResource("xyz.txt") at runtime. The xyz.txt file has no relation to any particular Java class in our applic