You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shale.apache.org by AM101 <An...@fatwire.com> on 2007/05/21 12:54:18 UTC
problem using t:inputHtml
When I use t:inputHtml, I get following error:
EVERE: Servlet.service() for servlet faces threw exception
java.lang.IllegalStateException: ExtensionsFilter not correctly configured.
Resource mapping missing. Resources cant be delivered. Please see:
http://myfaces.apache.org/tomahawk/extensionsFilter.html
at
org.apache.myfaces.renderkit.html.util.AddResourceFactory.throwExtensionsFilterMissing(AddResourceFactory.java:371)
at
org.apache.myfaces.renderkit.html.util.AddResourceFactory.checkEnvironment(AddResourceFactory.java:352)
at
org.apache.myfaces.renderkit.html.util.AddResourceFactory.getInstance(AddResourceFactory.java:288)
I already configured extension filter in my xml to use with file upload and
file upload works fine.
my web.xml looks like this:
<!-- File Upload Start-->
<filter>
<filter-name>ExtensionsFilter</filter-name>
<!--filter-class>
org.apache.myfaces.component.html.util.ExtensionsFilter
</filter-class-->
<filter-class>
org.apache.myfaces.webapp.filter.ExtensionsFilter
</filter-class>
<init-param>
<param-name>uploadMaxFileSize</param-name>
<param-value>500k</param-value>
</init-param>
<init-param>
<param-name>uploadThresholdSize</param-name>
<param-value>10k</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>ExtensionsFilter</filter-name>
<servlet-name>faces</servlet-name>
</filter-mapping>
<filter-mapping>
<filter-name>ExtensionsFilter</filter-name>
<url-pattern>/forsalebyowner/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>ExtensionsFilter</filter-name>
<url-pattern>*.xml</url-pattern>
</filter-mapping>
<!-- File Upload End -->
--
View this message in context: http://www.nabble.com/problem-using-t%3AinputHtml-tf3789498.html#a10716626
Sent from the Shale - User mailing list archive at Nabble.com.
Re: problem using t:inputHtml
Posted by AM101 <An...@fatwire.com>.
Thanks, This mapping did the trick.
Lionel Port-2 wrote:
>
> I have this additional mapping
>
> <!-- extension mapping for serving page-independent resources
> (javascript, stylesheets, images, etc.) -->
> <filter-mapping>
> <filter-name>ExtensionsFilter</filter-name>
> <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
> </filter-mapping>
>
>
> Otherwise you maybe experiencing this issue.
> http://issues.apache.org/struts/browse/SHALE-409
>
> In desperation I had to build a custom version of shale with this fix
> applied.
>
>
> On 5/21/07, AM101 <An...@fatwire.com> wrote:
>>
>> When I use t:inputHtml, I get following error:
>>
>> EVERE: Servlet.service() for servlet faces threw exception
>> java.lang.IllegalStateException: ExtensionsFilter not correctly
>> configured.
>> Resource mapping missing. Resources cant be delivered. Please see:
>> http://myfaces.apache.org/tomahawk/extensionsFilter.html
>> at
>> org.apache.myfaces.renderkit.html.util.AddResourceFactory.throwExtensionsFilterMissing(AddResourceFactory.java:371)
>> at
>> org.apache.myfaces.renderkit.html.util.AddResourceFactory.checkEnvironment(AddResourceFactory.java:352)
>> at
>> org.apache.myfaces.renderkit.html.util.AddResourceFactory.getInstance(AddResourceFactory.java:288)
>>
>> I already configured extension filter in my xml to use with file upload
>> and
>> file upload works fine.
>>
>> my web.xml looks like this:
>>
>> <!-- File Upload Start-->
>> <filter>
>> <filter-name>ExtensionsFilter</filter-name>
>> <!--filter-class>
>> org.apache.myfaces.component.html.util.ExtensionsFilter
>> </filter-class-->
>> <filter-class>
>> org.apache.myfaces.webapp.filter.ExtensionsFilter
>> </filter-class>
>> <init-param>
>> <param-name>uploadMaxFileSize</param-name>
>> <param-value>500k</param-value>
>> </init-param>
>> <init-param>
>> <param-name>uploadThresholdSize</param-name>
>> <param-value>10k</param-value>
>> </init-param>
>> </filter>
>>
>> <filter-mapping>
>> <filter-name>ExtensionsFilter</filter-name>
>> <servlet-name>faces</servlet-name>
>> </filter-mapping>
>> <filter-mapping>
>> <filter-name>ExtensionsFilter</filter-name>
>> <url-pattern>/forsalebyowner/*</url-pattern>
>> </filter-mapping>
>> <filter-mapping>
>> <filter-name>ExtensionsFilter</filter-name>
>> <url-pattern>*.xml</url-pattern>
>> </filter-mapping>
>> <!-- File Upload End -->
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/problem-using-t%3AinputHtml-tf3789498.html#a10716626
>> Sent from the Shale - User mailing list archive at Nabble.com.
>>
>>
>
>
--
View this message in context: http://www.nabble.com/problem-using-t%3AinputHtml-tf3789498.html#a10800735
Sent from the Shale - User mailing list archive at Nabble.com.
Re: problem using t:inputHtml
Posted by Lionel Port <li...@portconnection.com>.
I have this additional mapping
<!-- extension mapping for serving page-independent resources
(javascript, stylesheets, images, etc.) -->
<filter-mapping>
<filter-name>ExtensionsFilter</filter-name>
<url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
</filter-mapping>
Otherwise you maybe experiencing this issue.
http://issues.apache.org/struts/browse/SHALE-409
In desperation I had to build a custom version of shale with this fix applied.
On 5/21/07, AM101 <An...@fatwire.com> wrote:
>
> When I use t:inputHtml, I get following error:
>
> EVERE: Servlet.service() for servlet faces threw exception
> java.lang.IllegalStateException: ExtensionsFilter not correctly configured.
> Resource mapping missing. Resources cant be delivered. Please see:
> http://myfaces.apache.org/tomahawk/extensionsFilter.html
> at
> org.apache.myfaces.renderkit.html.util.AddResourceFactory.throwExtensionsFilterMissing(AddResourceFactory.java:371)
> at
> org.apache.myfaces.renderkit.html.util.AddResourceFactory.checkEnvironment(AddResourceFactory.java:352)
> at
> org.apache.myfaces.renderkit.html.util.AddResourceFactory.getInstance(AddResourceFactory.java:288)
>
> I already configured extension filter in my xml to use with file upload and
> file upload works fine.
>
> my web.xml looks like this:
>
> <!-- File Upload Start-->
> <filter>
> <filter-name>ExtensionsFilter</filter-name>
> <!--filter-class>
> org.apache.myfaces.component.html.util.ExtensionsFilter
> </filter-class-->
> <filter-class>
> org.apache.myfaces.webapp.filter.ExtensionsFilter
> </filter-class>
> <init-param>
> <param-name>uploadMaxFileSize</param-name>
> <param-value>500k</param-value>
> </init-param>
> <init-param>
> <param-name>uploadThresholdSize</param-name>
> <param-value>10k</param-value>
> </init-param>
> </filter>
>
> <filter-mapping>
> <filter-name>ExtensionsFilter</filter-name>
> <servlet-name>faces</servlet-name>
> </filter-mapping>
> <filter-mapping>
> <filter-name>ExtensionsFilter</filter-name>
> <url-pattern>/forsalebyowner/*</url-pattern>
> </filter-mapping>
> <filter-mapping>
> <filter-name>ExtensionsFilter</filter-name>
> <url-pattern>*.xml</url-pattern>
> </filter-mapping>
> <!-- File Upload End -->
>
>
> --
> View this message in context: http://www.nabble.com/problem-using-t%3AinputHtml-tf3789498.html#a10716626
> Sent from the Shale - User mailing list archive at Nabble.com.
>
>