After upgrading to jetty 9.4 I notice a ClassNotFoundException for org.eclipse.jetty.server.session.HashSessionManager
.
I think I need to use a FileSessionDataStore
but I don't see how that is suppose to be set on a SessionHandler
.
The configuration I currently have is:
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
...
<Set name="sessionHandler">
<New class="org.eclipse.jetty.server.session.SessionHandler">
<Arg>
<New class="org.eclipse.jetty.server.session.HashSessionManager">
<Set name="storeDirectory">my/store/path</Set>
</New>
</Arg>
</New>
</Set>
</Configure>
I don't see what I need to do, SessionHandler
doesn't take a SessionDataStore
, but a SessionCache
can be set on it but it looks like the implementations of SessionCache
want a SessionHandler
in the constructor, I don't see how to do that in XML.