Tapestry does some byte code manipulation on component classes. Net result is that the Login page instance is loaded by a different classloader than the Login class that is referenced by your AuthenticationFilter. This means that the two classes are not equal which causes the ClassCastException.
One option is for your Login page to implement an interface (interface must not be in the pages/components packages) and cast to the interface instead of Login. Another option is to use a different mechanism to store the lastPage. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Component-cannot-be-cast-to-Page-tp5713408p5713409.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org