You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Richard Wallace <rw...@thewallacepack.net> on 2006/01/27 18:46:08 UTC

[shale] Images and css being rejected

I'm having a problem with pages loading images and css files.  I turned 
up the debugging on log4j and when the css files and images are 
requested by the browser nothing is returned.  I checked the logs and 
they're saying:

 2006-01-27 10:31:20,241 54531 DEBUG [http-8080-Processor24] 
org.apache.shale.application.AbstractRegExpFilter  
(AbstractRegExpFilter.java:171) - execute(/styles/mpl.css)
2006-01-27 10:31:20,242 54532 DEBUG [http-8080-Processor24] 
org.apache.shale.application.AbstractRegExpFilter  
(AbstractRegExpFilter.java:203) -   reject(not include)
2006-01-27 10:31:20,292 54582 DEBUG [http-8080-Processor24] 
org.apache.shale.application.AbstractRegExpFilter  
(AbstractRegExpFilter.java:171) - execute(/images/mpl_logo_large.gif)
2006-01-27 10:31:20,293 54583 DEBUG [http-8080-Processor24] 
org.apache.shale.application.AbstractRegExpFilter  
(AbstractRegExpFilter.java:203) -   reject(not include)
2006-01-27 10:31:20,381 54671 DEBUG [http-8080-Processor25] 
org.apache.shale.application.AbstractRegExpFilter  
(AbstractRegExpFilter.java:171) - execute(/images/cc_logo.gif)
2006-01-27 10:31:20,381 54671 DEBUG [http-8080-Processor25] 
org.apache.shale.application.AbstractRegExpFilter  
(AbstractRegExpFilter.java:203) -   reject(not include)

I looked through all the configuration files and found in the 
chain-config.xml:

      <command 
className="org.apache.shale.application.ContextRelativePathFilter"
               
includes="\S*\.xml,\S*\.faces,\S*\.html,\S*\.gif,\S*\.jpg,/index\.jsp"
               excludes="\S*\.jsp,\S*\.jspf"/>


I added \S*\.css to the includes with no change.  I tried to comment 
this out as well, so nothing would get filtered, with no luck.  Any 
ideas what I'm missing this time?

Thanks,
Rich

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [shale] Images and css being rejected

Posted by Alexandre Poitras <al...@gmail.com>.
I had the same problem, the easy solution is to apply the shale filter
only on "*.jsf" url. I taugh it was resolved. Don't know why it
happens thought.

On 1/27/06, Richard Wallace <rw...@thewallacepack.net> wrote:
> I'm having a problem with pages loading images and css files.  I turned
> up the debugging on log4j and when the css files and images are
> requested by the browser nothing is returned.  I checked the logs and
> they're saying:
>
>  2006-01-27 10:31:20,241 54531 DEBUG [http-8080-Processor24]
> org.apache.shale.application.AbstractRegExpFilter
> (AbstractRegExpFilter.java:171) - execute(/styles/mpl.css)
> 2006-01-27 10:31:20,242 54532 DEBUG [http-8080-Processor24]
> org.apache.shale.application.AbstractRegExpFilter
> (AbstractRegExpFilter.java:203) -   reject(not include)
> 2006-01-27 10:31:20,292 54582 DEBUG [http-8080-Processor24]
> org.apache.shale.application.AbstractRegExpFilter
> (AbstractRegExpFilter.java:171) - execute(/images/mpl_logo_large.gif)
> 2006-01-27 10:31:20,293 54583 DEBUG [http-8080-Processor24]
> org.apache.shale.application.AbstractRegExpFilter
> (AbstractRegExpFilter.java:203) -   reject(not include)
> 2006-01-27 10:31:20,381 54671 DEBUG [http-8080-Processor25]
> org.apache.shale.application.AbstractRegExpFilter
> (AbstractRegExpFilter.java:171) - execute(/images/cc_logo.gif)
> 2006-01-27 10:31:20,381 54671 DEBUG [http-8080-Processor25]
> org.apache.shale.application.AbstractRegExpFilter
> (AbstractRegExpFilter.java:203) -   reject(not include)
>
> I looked through all the configuration files and found in the
> chain-config.xml:
>
>       <command
> className="org.apache.shale.application.ContextRelativePathFilter"
>
> includes="\S*\.xml,\S*\.faces,\S*\.html,\S*\.gif,\S*\.jpg,/index\.jsp"
>                excludes="\S*\.jsp,\S*\.jspf"/>
>
>
> I added \S*\.css to the includes with no change.  I tried to comment
> this out as well, so nothing would get filtered, with no luck.  Any
> ideas what I'm missing this time?
>
> Thanks,
> Rich
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


--
Alexandre Poitras
Québec, Canada

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org