-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doubled rewrite rules #217
Comments
There are multiple possible causes for this.
Could you post the full log output please? And which container are you deploying to? If you are using the new |
thanks @chkal, (possibly only end of this post is important) I'm using glassfish 4.1, here is whole log, and filtered output to phrase "ocp":
After some debugging i found there a 2 registered AnnotationConfigProvider's, digging deeper ServiceLoader:loadServiceFiles is finding 3 files:
I follow your advice to replace dependency to When i build application i was using After some googling i found that |
The Rewrite PrettyFaces module basically provides a way to use the old PrettyFaces configuration style with Rewrite. So if you prefer to use XML for rule configuration, you can use this module. However, the new Rewrite configuration API is much more flexible. Your original problem seems to be caused by the fact that there is rewrite-annotations-impl on your classpath. I'll leave this issue open so we can have a deeper look at what is causing this later. |
Note to myself: Looks like the prettyfaces module declares a compile time dependency on rewrite-annotations-impl. Do we really need this? Shouldn't this be provided instead? |
Hi, i'm learning javaee7 and i have a problem with rewrite library. Rules defined by
@RewriteConfiguration
class are loaded twice in the chain of rules. To demonstrate i create a demo-minimal project:my ConfigurationProvider class:
And link in jsf:
The output link is then
/faces/index-rewrite-rewrite.xhtml
and expected result should be/faces/index-rewrite.xhtml
pom.xml:
Maybe i doing some wrong with configuration. Please help :)
The text was updated successfully, but these errors were encountered: