I am using rewrite 1.0.3.Final in my pom. I have a src/main/java/com/example/rewrite/RewriteConfiguration.java which compiles fine and is in target/classes/
I have created src/main/resources/META-INF/services/org.ocpsoft.rewrite.config.ConfigurationProvider which has a single line with “com.example.rewrite.RewriteConfiguration”
I see the META-INF/services/org.ocpsoft.rewrite… in target/project folder as well as the WAR. Yet when I run the server, I find no messages in the console about “RewriteFilter” or ocpsoft.* Needless to say rewrite doesn’t work.
I did see a forum post about the name of the file being META-INF/services/com.ocpsoft.rewrite… tried it but that didn’t work either.
Also tried to deploy it on Tomcat 7.0.3 installed from distro packages with the same result. /var/log/tomcat7/catalina.out or any other log file there doesn’t contain any reference to RewriteFilter or ocpsoft.
Christian, Yes changing version to 3.0 helped. But ultimately it turned out that the target environment was WL 10.3.6 which only supports 2.5. So we’ve switched to a combination of Apache Shiro + Prettyfaces for auth/url-rewrite. Something I was hoping to handle using Rewrite.