Hi Team,
Using this method
getServletContext().getRealPath("/")
returns '\' at the end when I run my project in Tomcat 7 whereas it is not
working as such in Tomcat 8.
For example,
In Tomcat 7 it returns as "D:\Tomcat\webapps\project\"
In Tomcat 8 it returns as "D:\Tomcat\webapps\project"
At present the project is in production so, I am unable to change the code
in every part(where i use getRealPath("/")). Is there a way/setting in
tomcat level configuration to make it resolved.
Additional information,
Tomcat version : 8.0.14
OS : Windows server 2008 R2 standard
System Type: 64 bit operating system
Thanks,
Sasi Kumar M.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]