Re: Tynamo Tapestry-Security - Multiple Realms - How to Change Authentication Strategy

2014-12-21 Thread Charles Karow
Thanks Kalle -- you've made it easy for me!!! I added this to my AppModule and it works perfectly: @Startup public static void specifyAuthenticationStrategy(@InjectService("ModularRealmAuthenticator") ModularRealmAuthenticator mra) { mra.setAuthenticationStrategy(new F

Re: Far Future Expiration Headers of Assets

2014-12-21 Thread Harry Zhou
Hi Bob and Thiago, thank you for pointing me to the right direction! Problem solved. It is NOT Tapestry related: Chrome's PageSpeed audit tool chooses to ignore Tapestry's 10-year-in-the-future "Expires" response header. But during actual browsing the assets are actually cached (seeing "200 from c

Re: Tapestry and Clojure

2014-12-21 Thread Thiago H de Paula Figueiredo
On Thu, 18 Dec 2014 20:01:11 -0200, Ilya Obshadko wrote: One more question regarding ObjectLocator. Turns out it cannot resolve services like Logger, complaining that no service implements its interface. Could you suggest how to solve it? Have you tried getObject() instead of getService()?

Re: Tynamo Tapestry-Security - Multiple Realms - How to Change Authentication Strategy

2014-12-21 Thread Kalle Korhonen
On Sun, Dec 21, 2014 at 8:55 AM, Charles Karow wrote: > I'm using Tynamo Tapestry-Security 0.6.0 with Tapestry 5.4, and finding it > a very useful tool!! > I am implementing two realms for two different classes of users that are > stored in different tables in the database; both will use username

strange issue with Eclipse + Tomcat (solved)

2014-12-21 Thread Ivano Luberti
Today I got lost for a few hours trying to solve the following issue. Since I couldn't find anything googling I thought it worth to spend a few minutes to write it on the list. I use Tomcat+Eclipse on a Windows box to develop To achieve auto-reloading I set the "Serve modules without publishing" o

Re: Far Future Expiration Headers of Assets

2014-12-21 Thread Thiago H de Paula Figueiredo
Another thing to check: production mode is off? On Sun, 21 Dec 2014 17:34:39 -0200, Bob Harner wrote: Be sure production mode is on and that your links to the asset are using the asset: or context: binding prefix. Can you give us a typical asset URL (as seen by the browser)? That might give u

Re: Far Future Expiration Headers of Assets

2014-12-21 Thread Bob Harner
Be sure production mode is on and that your links to the asset are using the asset: or context: binding prefix. Can you give us a typical asset URL (as seen by the browser)? That might give us some hints. Also be sure the expires headers aren't being removed by a proxy or CDN. Hint: doest the iss

Tynamo Tapestry-Security - Multiple Realms - How to Change Authentication Strategy

2014-12-21 Thread Charles Karow
I'm using Tynamo Tapestry-Security 0.6.0 with Tapestry 5.4, and finding it a very useful tool!! I am implementing two realms for two different classes of users that are stored in different tables in the database; both will use username/password authentication, and thus the same authentication

Far Future Expiration Headers of Assets

2014-12-21 Thread Harry Zhou
Hi! About my T5.4 site, Google is complaining that "resources are missing a cache expiration. Resources that do not specify an expiration may not be cached by browsers . . . " I read that "assets get a far-future expires header" and will be "client browsers will aggressively cache downloaded asse