Hi, It looks like you've missed to register MyAuthenticatedWebSession in the application: https://github.com/apache/wicket/blob/master/wicket-examples/src/main/java/org/apache/wicket/examples/authentication3/MyAuthenticatedWebApplication.java#L45
Martin Grigorov Freelancer. Available for hire! Wicket Training and Consulting https://twitter.com/mtgrigorov On Sun, Aug 2, 2015 at 11:52 PM, alexpa <birm...@yandex.ru> wrote: > I am learning wicket and trying to implement Authentication based on the > flowing strategy > > Example > < > http://www.wicket-library.com/wicket-examples-6.0.x/authentication3/wicket/bookmarkable/org.apache.wicket.examples.source.SourcesPage?0&SourcesPage_class=org.apache.wicket.examples.authentication3.HomePage > > > > I created *MyAuthenticatedWebApplication * class and also > *MyAuthenticatedWebSession* with all other component but, as soon as i am > trying to go to *MySignInPage *i get this error > > *Last cause: org.apache.wicket.protocol.http.WebSession cannot be cast to > org.apache.wicket.authroles.authentication.AuthenticatedWebSession > WicketMessage: Error attaching this container for rendering: [Page class = > com.myapp.wicket.SignInPage, id = 3, render count = 1]* > > Can someone please help. > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Wicket-authentication-error-following-example-tp4671722.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >