I am working with Tapestry 5.2.0. Some classpath assets are denied access.
In the document
http://tapestry.apache.org/tapestry5.2-dev/guide/assets.html
under "Securing Assets" it is said that I can contribute in my AppModule
like this:
public void contributeRegexAuthorizer(final Configuration<String>
configuration)
{
String pattern =
"([^/.]+/)*[^/.]+\\.((css)|(js)|(jpg)|(jpeg)|(png)|(gif))$";
configuration.add("^org/resources/" + pattern);
}
I simply copied that from the docs but then my application won't start anymore.
The error message is:
java.lang.IllegalArgumentException: Contribution
xxx.web.services.AppModule.contributeRegexAuthorizer(Configurati
on) (at AppModule.java:30) is for service 'RegexAuthorizer', which does not
exist.
at
org.apache.tapestry5.ioc.internal.RegistryImpl.validateContributeDefs(RegistryImpl.java:225)
at
org.apache.tapestry5.ioc.internal.RegistryImpl.<init>(RegistryImpl.java:201)
at
org.apache.tapestry5.ioc.RegistryBuilder.build(RegistryBuilder.java:170)
at
org.apache.tapestry5.internal.TapestryAppInitializer.createRegistry(TapestryAppInitializer.java:214)
at org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java:95)
at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
Am I missing something or is the documentation outdated?
Andy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org