Liferay Symposium 2016 | Reserve your seat today.
(Opens New Window)
Mark as an Answer
How to set context attributes for tomcat from portlet WAR
March 30, 2013 1:57 PM
Rank: Junior Member
Join Date: April 14, 2012
I was struggling while trying to define some context attributes for tomcat. I know I need to create a context.xml file on the meta-inf folder of the portlet, as the liferay IDE doesn't pre-generate anything there. However, I don't seem to figure out what to put in it, everywhere I look they appear to consider it a given. The best I found is:
<Context antiJARLocking="false" antiResourceLocking="false" />
but when I deployed the WAR file I didn't see the expected change. Is there something I'm missing?
BTW, all this is in an attempt to fix the getRealPath issue with tomcat 7, where getRealPath returns me a temporary directory instead of the actual one.
Sign in to vote.
Please sign in to flag this as inappropriate.