Monday, April 5, 2010

Tapestry 5 won't find or use my AppModule.java class

This one was dumb. It took me a more time than I'll ever admit to find that I mistyped the source package name for "services". You must place AppModule.java in the services package and the package name must be the main "tapestry.app-package" name (see web.xml) plus the word "services" (e.g. test.services).

I suppose if I had used Maven to set this up, it'd been done right already.

In case you didn't find the documentation, the class "AppModule" is just the filter name (capitalized) plus the word "Module". If you setup something else for your filter in web.xml then you need to use a different name for that class.

No comments:

Post a Comment