I have a third party library that works with jUnit, but does not once deployed to tomcat. Digging into the code, I can see it fails here:
final String path = "/api-version.dat";
final InputStream stream = ClassLoader.class.getResourceAsStream(path);
The api-version.dat is located on jUnit test, but doing the same on Tomcat results in NullPointerException
due to Tomcat unable to get the api-version file. This file exist and it is located inside the third party jar. What I have tried so far:
- Check jar is imported into Tomcat: It is inside WEB-INF/lib, so I would say yes
- Create an api-version.dat file and place it on my resources folder (I use maven). Does not work.
Any thoughts?