user2266159
user2266159

Reputation: 21

ocpsoft rewrite ConfigurationProvider Registration fails

I want to use ocpsoft rewrite in order to overcome proxy issues with Richfaces. Since the JavaScript files could not be found through a proxy configuration (similar to the problem described in JSF. URL rewriting solution needed). Somehow I do not manage to register the ConfigurationProvider correctly. Here is the warning message I receive:

WARNING: No ConfigurationProviders were registered: Rewrite will not be enabled on this application. Did you forget to create a '/META-INF/services/org.ocpsoft.rewrite.config.ConfigurationProvider file containing the fully qualified name of your provider implementation?

The Project layout is as follows:

My project is Maven based using JSF2 with Richfaces 4.3.0.Final and opcsoft rewrite 1.1.0.Final. Any ideas?

Upvotes: 1

Views: 410

Answers (1)

chkal
chkal

Reputation: 5668

The location of your SPI file is incorrect. It should be:

src/main/resources/META-INF/services/org.ocpsoft.rewrite.config.ConfigurationProvider

Upvotes: 1

Related Questions