Hello!
I spent several hours debuging the Tomahawk
file-upload component
(
http://myfaces.apache.org/tomahawk/)
to in a Glassfish v2ur1 webapp, and finally
figured realized that the <description> filter-parameter
element was preventing Glassfish from properly
loading a required Tomahawk filter
(NetBeans flagged the problem - finally noticed
the red X. Ugh!).
Anyway - in other word - Tomahawk recommends that
something like the following be added to web.xml
to register the MyFacesExtentionParameter
(
http://myfaces.apache.org/tomahawk/extensionsFilter.html):
<filter>
<filter-name>MyFacesExtensionsFilter</filter-name>
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
<init-param>
<param-name>maxFileSize</param-name>
<param-value>20m</param-value>
<description>Set the size limit for uploaded files.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB
</description>
</init-param>
</filter>
Glassfish fails to load the filter, because it
does not like that <description> element, but the following works:
<filter>
<filter-name>MyFacesExtensionsFilter</filter-name>
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
<init-param>
<param-name>maxFileSize</param-name>
<param-value>20m</param-value>
</init-param>
</filter>
Is this a bug in Glassfish, or am I doing something wrong ?
Who should I report the bug to ?
Thanks for the help!
Cheers,
Reuben
[Message sent by forum member 'catdogboy' (catdogboy)]
http://forums.java.net/jive/thread.jspa?messageID=260909