Not able to set context init parameter
'org.apache.myfaces.CONFIG_REFRESH_PERIOD'
----------------------------------------------------------------------------------
Key: MYFACES-2203
URL: https://issues.apache.org/jira/browse/MYFACES-2203
Project: MyFaces Core
Issue Type: Bug
Affects Versions: 1.2.6
Environment: Any
Reporter: Radhesh Radhakrishnan
To reproduce the problem, try setting the following in web.xml
<context-param>
<param-name>org.apache.myfaces.CONFIG_REFRESH_PERIOD</param-name>
<param-value>2</param-value>
</context-param>
The code that reads the xml parameter seems to have an obvious typo error
See org.apache.myfaces.shared_impl.config.MyfacesConfig.java -> line # 299
Offending line:
return Long.parseLong(paramName);
Param Name will always be a String :-)
Please change to the following to fix the problem
return Long.parseLong(strValue);
Thank you,
Radhesh
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.