gradle-tomcat-plugin icon indicating copy to clipboard operation
gradle-tomcat-plugin copied to clipboard

getServletContext().getRealPath("/") returns null?

Open yushulx opened this issue 10 years ago • 1 comments

If I deploy the generated war file to Tomcat directly, the code can work. But with the Tomcat plugin, it returns null. Why?

yushulx avatar Apr 09 '15 03:04 yushulx

Not sure. Might be a different in the implementation of embedded Tomcat vs. the full container setup.

bmuschko avatar Apr 12 '15 13:04 bmuschko