How about a closing filter tag?
change this:
<filter-mapping>
<filter-name>SearchEngineFriendlyURLFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- End add-->
to this:
<filter-mapping>
<filter-name>SearchEngineFriendlyURLFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</filter>
<!-- End add-->
Then a restart. Let us know how it works out...
Hope this helps!
Warm regards,
Jordan Michaels
Vivio Technologies
http://www.viviotech.net/
Open BlueDragon Steering Committee
Adobe Solution Provider
Pierre-Olivier Chassay wrote:
> Hi Jordan
>
> What I copy into /opt/openbd/tomcat/conf/web.xml
> it's that
> I put it on starting at the line 267
> <!-- Add PO -->
> <filter>
> <filter-name>SearchEngineFriendlyURLFilter</filter-name>
> <display-name>SearchEngineFriendlyURLFilter</display-name>
> <description>SearchEngineFriendlyURLFilter</description>
>
> <filter-class>com.newatlanta.filters.SearchEngineFriendlyURLFilter</filter-class>
> <init-param>
> <param-name>extensions</param-name>
> <param-value>cfm,cfml</param-value>
> </init-param>
> </filter>
> <filter-mapping>
> <filter-name>SearchEngineFriendlyURLFilter</filter-name>
> <url-pattern>/*</url-pattern>
> </filter-mapping>
> <!-- End add-->
>
> I took that code from the post of Matt.
>
> Jordan Michaels wrote:
>> Pierre-Olivier,
>>
>> It looks like the XML that MrToad posted is word-wrapped a bit. Could
>> you make sure that this didn't translate over to return characters when
>> copied and pasted into the web.xml file?
>>
>> Let us know the result.
>>
>> HTH
>>
>> Warm regards,
>> Jordan Michaels
>> Vivio Technologies
>> http://www.viviotech.net/
>> Open BlueDragon Steering Committee
>> Adobe Solution Provider
>>
>>
>> Pierre-Olivier Chassay wrote:
>>
>>> Thanks Mr Toad,
>>>
>>> It works on my dev environment Vista/Tomcat where I deploy directly the
>>> war file of openBD
>>> But it doesn't work on my production environment Linux CentOS / Apache /
>>> Tomcat with the installer of Jordan.
>>>
>>> In the production envrionment we don't have a real web.xml Since the
>>> installer's instance of OpenBD is not installed as a WAR file,
>>> it doesn't have it's own web.xml file, it uses tomcat's default
>>> web.xml file.
>>>
>>> I copy the missing part into it and restart the server to be sure
>>> everything will be clean but it doesn't work.
>>>
>>> Regards,
>>> PO
>>>
>>> On Fri, Mar 6, 2009 at 3:39 AM, MrToad <[email protected]
>>> <mailto:[email protected]>> wrote:
>>>
>>>
>>>
>>>
>>> On Mar 3, 10:28 am, "[email protected]
>>> <mailto:[email protected]>" <[email protected]
>>> <mailto:[email protected]>>
>>> wrote:
>>> > Hi I'm trying to install Blog CFC on OpenBD.
>>> >
>>> > So far I figure out I was having to comment some part where Ray was
>>> > making the verification of the version of CF or BlueDragon.
>>> > And also where he uses the application.isColdFusionMX7 to comment it
>>> >
>>> > The big issue I have right now it's with the tag cfloginuser looks
>>> > like it doesn't return something properly because in the blog.cfc all
>>> > the function with the roles="admin" aren't executed. I always
>>> have the
>>> > error user not defined.
>>> >
>>> > If I remove the roles="admin" of all the cffunction I can go a bit
>>> > further except when they use the function getAuthUser() it return an
>>> > empty string.
>>> >
>>> > After it will I think to find the good RewriteRule for it to display
>>> > the post with the comments.
>>> >
>>> > I'm using OpenBD 1.0.1
>>> > BlogCFC 5.9.2
>>> > Linux/CentOS
>>> > Apache/Tomcat
>>> >
>>> > Thanks for any guidance to install it.
>>> >
>>> > PO
>>>
>>> About the rewrite rule - if you're dealing with the issue I think you
>>> are, you don't need a rewrite rule, just need to enable the
>>> SearchEngineFriendlyURLFilter in OpenBD as Matt discusses here:
>>>
>>>
>>> http://groups.google.com/group/openbd/browse_thread/thread/30068477da8d22ae/533d1c1bc2028a8e#533d1c1bc2028a8e
>>>
>>> For folks running the OpenBD+Jetty "Ready2Run" version who don't
>>> *have* a web.xml, trying adding this to your /jettyhome/etc/
>>> webdefault.xml file:
>>>
>>> <filter>
>>> <filter-name>SearchEngineFriendlyURLFilter</filter-name>
>>> <display-name>SearchEngineFriendlyURLFilter</display-name>
>>> <description>SearchEngineFriendlyURLFilter</description>
>>> <filter-
>>> class>com.newatlanta.filters.SearchEngineFriendlyURLFilter</filter-
>>> class>
>>> <init-param>
>>> <param-name>extensions</param-name>
>>> <param-value>cfm,cfml</param-value>
>>> </init-param>
>>> </filter>
>>> <filter-mapping>
>>> <filter-name>SearchEngineFriendlyURLFilter</filter-name>
>>> <url-pattern>/*</url-pattern>
>>> </filter-mapping>
>>>
>>> Props to Matt for helping me find this by pointing me to a post by
>>> "TheDudeAbides" for a longer, slightly different version that led me
>>> to this short fix.
>>>
>>> --
>>> MrToad, a.k.a. Scott Schug
>>>
>>>
>>>
>>>
>>>
>>
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
Open BlueDragon Public Mailing List
http://groups.google.com/group/openbd?hl=en
official site @ http://www.openbluedragon.org/
!! save a network - trim replies before posting !!
-~----------~----~----~----~------~----~------~--~---