I am trying to run a java based application using Tomcat 7 and IntelliJ IDEA 11 and it just does not not start. Under the deployment tab in IDEA I have tried with both exploded and unexploded war for deployment.
There is a code written as "getServletContext().getRealPath("/");" which returns null and prevents application from starting. I have seen many discussion on web suggesting alternatives for this. But those solution does not fit my code.
But the same works just fine, if I put war inside Tomcat's webapp folder. So, running it from Tomcat 7 is no issue, but running it from IDEA 11 is problematic.
I was successfully running the application using Tomcat 5.5.33 and IntelliJ IDEA 10.5. But now after upgarding, it does not work. :O
Thanks & Regards,