Glad it works now! Better move Injector.get().inject(application); to the constructor of YourWicketApplication: Injector.get().inject(this);
Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Jan 26, 2016 at 3:00 PM, MM_at_ANO <marina_mach...@ano.pt> wrote: > Hi. > > Thank you a lot for answering. > Your suggestion helped me in solving the problem . > I also had to add an injection call in the WicketApplication getter, as > follows: > > public static WicketApplication get() { > Application application = Application.get(); > Injector.get().inject(application); > return (WicketApplication) application; > } > > Without it, the getter kept on returning null. > Now I can easily access Session and Session factories without problem. > Once again thank you for your quick answer. > You help is much appreciated. > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Issue-with-REST-Sessions-in-Wicket-Shiro-Hibernate-tp4673417p4673439.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 > >