0
我有一點用碼頭7. JDBCSessionManager
出於某種原因,它試圖持久化SessionManager持續的SessionAuthentication當一個問題:碼頭JDBCSessionManager不能序列
16:46:02,455 WARN org.eclipse.jetty.util.log - Problem persisting changed session data id=b75j2q0lak5s1o2zuryj05h9y
java.io.NotSerializableException: org.eclipse.jetty.server.session.JDBCSessionManager
設置代碼:
server.setSessionIdManager(getSessionIdManager());
final SessionManager jdbcSessionManager = new JDBCSessionManager();
jdbcSessionManager.setIdManager(server.getSessionIdManager());
context.setSessionHandler(new SessionHandler(jdbcSessionManager));
server.setHandler(context);
private SessionIdManager getSessionIdManager() {
JDBCSessionIdManager idMan = new JDBCSessionIdManager(server);
idMan.setDriverInfo("com.mysql.jdbc.Driver", "jdbc:mysql://localhost/monty?user=xxxx&password=Xxxx");
idMan.setWorkerName("monty");
return idMan;
}
有沒有人經歷過類似的事情?
我並沒有試圖建議JDBCSessionManager應該是可序列化的,而只是試圖找出JDBCSessionManager是否在Jetty 7中被破壞。 – Jesper 2010-07-11 15:30:06
我只是迴應您發佈的錯誤消息,其中抱怨「java。 io.NotSerializableException:org.eclipse.jetty.server.session.JDBCSessionManager「。這暗示了序列化涉及到了。 – duffymo 2010-07-11 15:38:05