I have the following code line:
servletContext.getRealPath("resources/images/video_icon.png")
Wen I run application using jetty(using maven plugin) this code line return corect value.
When I run application using tomcat 8(on tomcat 7 it works) - application returns null.
application structure:
1.How to fix it?
2.Why does it happen?
after adding /
in the path beginning it works for both: jetty and tomcat 8
servletContext.getRealPath("/resources/images/video_icon.png")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With