Hi Ryan, This is great! The wicket-jsecurity google code project was just a placeholder/sandbox to try out integration. I am actually using it in one of my apps at work and it is working pretty well, but I would definitely call it 'beta'.
I'm happy to see it moving into wicket-stuff proper. That was sort of our intention really - to try it out on google code, and once we were happy, to move it to wicket-stuff at a later date. It's nice to see you taking that on :) The exception message you're seen is related to Ki's session management. It currently has two modes: 'http' (default) and 'ki' **, which is used for Enterprise Sessions. 'http' just uses the Servlet container's HttpSession for session operations. 'ki' ** is used when you want to use Ki's Enterprise Session Management which is a ground-up implementation of a Session Manager that will work both in and outside of a web container. When using this mode, The HttpServletRequest and HttpSession are just thin wrappers around Ki's session management mechanisms, bypassing the servlet container entirely. This allows Ki to sit on top of a distributed enterprise cache for session clustering instead of using container-specific clustering configuration. Note that all of the PageStore and PageCache stuff is really only necessary when using distributed sessions that might live in a distributed cache: The existing implementations used by Wicket at runtime expect an HttpServletRequest to be bound to the thread at runtime when acquiring Serialized Page instances. Because Ki sessions can reside outside the webcontainer, the PageStore/PageCache implementations cannot expect a ServletRequest to be present, and so the implementations take the appropriate steps to make sure that they are 1) very performant and 2) do not require a web environment. Regards, Les ** The existing released project .jars (0.9.0 final), the enterprise session mode is 'jsecurity'. Current project SVN has that as 'ki'. On Tue, Mar 24, 2009 at 6:17 PM, Ryan McKinley <[email protected]> wrote: > Hi- > I'm trying to put together a working example or Wicket + Ki working > together. (and learning Ki along the way). I started with: > http://code.google.com/p/wicket-jsecurity/ and am trying to get something > running. I hope to have a few examples that "just works" when you type: > mvn jetty:run > > I went ahead and added this to wicketstuff, but will happily > move/rename/whatever depending on what other folks think is appropriate. > Check: > > https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/ki-security > > This has a core reusable module, and then some example projects: > > https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/ki-security/ki-security-examples/ > > When I run the example, I get: > > "If you're seeing this exception, ensure you have configured JSecurity to > use Enterprise Sessions and not..." > > Any pointers on what that means? How would I do that? > > thanks for any pointers! > > ryan >
