I’m facing an issue with the basic setup on Rewrite for my project. I am using 2.0.12.Final.
I added the dependencies, and followed the manual to create the configuration and activate it (by using @RewriteConfiguration) annotation. Everything copied from the manual to not miss anything.
My issue is that I don’i see any logs in my JBoss 5.1.2 at startup of the style
INFO [org.ocpsoft.rewrite.servlet.RewriteFilter] RewriteFilter starting up…
There is something confusing to me in the manual. It says that if we are using Servlet 2.5 we should add those entries to the web.xml, but the ‘async-supported’ properties for the filter belongs to Servlet 3.0 so I had to remove it from my web.xml as I am actually using Servlet 2.5. Is this related to my issue? I don’t get any deployment error but it seems like the filter is never registered.
Any help would be much appreciated.
Thanks in advance
Configure Rewrite for Servlet 2.5 or EAR deployments by adding the following to WEB-INF/web.xml
that’s weird. You should actually either see the startup log message or some kind of deployment error. Perhaps you could use your debugger to check if the filter’s init method is actually called? Perhaps the logging configuration doesn’t work as expected and that’s the reason you don’t see the startup message?
I checked whether init() and doFilter() were actually being called, and they were. This made me think that the issue could be the logging and it came to my mind that I was using slf4j. I saw one comment from you to another member to use and adapter you provide:
I added it and now it shows my configuration. Now it’s time to play with it.
Thanks for your help
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
Comments are closed.
Do you play Magic?
Get TopDecked MTG, the essential all-in-one Magic App, built by players, for players. Free to use, forever.
Deck Simulator (3d)
Cards & Prices
Top 8 Decks & Metagame
Get updates from OCPSoft
If you find our tools useful, please consider making a donation to help us stay online and building software!