I am using heroku server to host my java spring based application. The application uses servletContext.getRealPath(""); which returns a null value. This error has been posted before Here, but those causes couldnt help me out.
I am using a free account on heroku server and i have deployed the application both, by maven commit and through the entire war file deploy, but nothing could help.
I have also written to heroku and they suggested to launch the application as an exploded war file or use AWS S3.
The reason is that i need the actual file path to write some content to the file. I wanted to know, is this common with Heroku ?? if yes how to overcome ??
Thanks in Advance