Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-10) was last changed on 08-Sep-2008 17:45 by 213.171.250.126  

This page was created on 19-Feb-2005 04:29 by Jawe

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 13 changed one line
Find the "filters.xml" file in your {{webapps/''your wiki name''/WEB-INF/lib}} -directory. If you don't have one, create a new one as per the example below.
Find the "filters.xml" file in your {{webapps/''your wiki name''/WEB-INF}} -directory. If you don't have one, create a new one as per the example below.
At line 57 added 38 lines
----
There's a bit of confustion about the proper location for {{filters.xml}}.
* The PageFilterConfiguration from the JSPWiki distribution states it should be in {{WEB-INF/lib}}
* The {{jspwiki.properties}} states (in the comment to {{jspwiki.filterConfig}} it should be in WEB-INF
* {{com.ecyrd.jspwiki.filters.~FilterManager}} looks it up in the classpath, which tells me it should be in {{WEB-INF/classes}}.
Now what's the correct location? --[Jawe]
----
I ended up configuring __jspwiki.filterConfig__ to specify an absolute path into the filters.xml.
{{{
jspwiki.filterConfig = /usr/local/jspwiki/etc/filters.xml
}}}
++[NiiloNeuvo]
----
There seems to be some confusion about the location of the __jar file__ versus the __filters.xml__ file.
Jar files ''always'' go in {{WEB-INF/lib}}.
The location for {{filters.xml}} used by the FilterManager is the one set by the value of {{jspwiki.filterConfig}} in jspwiki.properties. If this hasn't been set the default value (the value of {{DEFAULT_XMLFILE}} as defined in FilterManager) is {{/WEB-INF/filters.xml}}.
This being open source one can always look at the code for the final answer.
-- MurrayAltheim
----
I just reviewed the code of FilterManager, and thought I would share my findings here. The process it follows to find the filters.xml file is:
# Looks for /WEB-INF/filters.xml. If not found goes no the next step.
# Looks in the classpath for a file named filters.xml. If not found goes no the next step.
# If a property named jspwiki.filterConfig has been set in the configuration file it interprets it as an absolute path in the file system and looks for the file there.
# If none of the methods above work it ignores the configuration and prints a trace of INFO level informing about it.
--JorgeFerrer, 22-Jan-2008
Version Date Modified Size Author Changes ... Change note
10 08-Sep-2008 17:45 4.075 kB 213.171.250.126 to previous
9 08-Sep-2008 17:43 4.079 kB 213.171.250.126 to previous | to last
8 22-Jan-2008 12:17 4.075 kB JorgeFerrer to previous | to last Comment by JorgeFerrer
7 10-Dec-2007 22:08 3.438 kB Stephen Black to previous | to last
6 10-Dec-2007 22:07 3.569 kB Stephen Black to previous | to last Comment by Stephen Black
5 19-Jul-2007 05:46 3.438 kB MurrayAltheim to previous | to last answer on location of filters.xml
4 03-Mar-2006 22:47 2.894 kB Niilo Neuvo to previous | to last
3 19-Feb-2005 15:58 2.702 kB Jawe to previous | to last
2 19-Feb-2005 14:05 2.24 kB Jawe to previous | to last
1 19-Feb-2005 04:29 2.244 kB Jawe to last
« This page (revision-10) was last changed on 08-Sep-2008 17:45 by 213.171.250.126