Hai Nguyen created GTNPORTAL-2790:
-------------------------------------
Summary: Potential NPE with Tomcat 7 in developing mode
Key: GTNPORTAL-2790
URL:
https://issues.jboss.org/browse/GTNPORTAL-2790
Project: GateIn Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 3.5.0.Final
Reporter: Hai Nguyen
In tomcat 7, the wars does not locate at "appBase" which is not unpacked.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51294
But in ServletResourceResolver.isModified, we used ServletContext.getRealPath to get
absolute path's file resource which will return NULL. Due to the WAR was not upacked.
We should use URLConnection.getLastModified instead of use getRealPath and File api
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira