JDeveloper 12.2.1.4 full stack
I'm trying to use a classloader in a bean to load a file.
The bean is in a request scope and the method used to load the file is called when a button is clicked.
When the application is deployed locally the file can be found under
o.j2ee.12.2.1.4.42.230103.1834\drs\myApp\ViewControllerWebApp.war\scripts
I've tried the following code but the file is not found
ClassLoader classLoader = myBean.class.getClassLoader();
URL myUrl = classLoader.getResource("scripts/myFile.txt");
I've tried various paths but to no avail.
What am I missing ?
Thanks
Paul