Follow these steps to handle NullPointerException in web application while executing
ServletContext.getRealPath();
1. Login to weblogic console
2. Select Domain
3. Web Application Tab
4. Enable Archived Real Path
You can also apply fix in application level by adding the following entry to weblogic.xml file:
<container-descriptor>
<show-archived-real-path-enabled>true</show-archived-real-path-enabled>
</container-descriptor>
No comments:
Post a Comment