{"action":"opened","issue":{"url":"https://api.github.com/repos/magro/memcached-session-manager/issues/266","labels_url":"https://api.github.com/repos/magro/memcached-session-manager/issues/266/labels{/name}","comments_url":"https://api.github.com/repos/magro/memcached-session-manager/issues/266/comments","events_url":"https://api.github.com/repos/magro/memcached-session-manager/issues/266/events","html_url":"https://github.com/magro/memcached-session-manager/issues/266","id":102732875,"number":266,"title":"Serializing principals no longer work in Tomcat 8","user":{"login":"google-code-exporter","id":13935235,"avatar_url":"https://avatars.githubusercontent.com/u/13935235?v=3","gravatar_id":"","url":"https://api.github.com/users/google-code-exporter","html_url":"https://github.com/google-code-exporter","followers_url":"https://api.github.com/users/google-code-exporter/followers","following_url":"https://api.github.com/users/google-code-exporter/following{/other_user}","gists_url":"https://api.github.com/users/google-code-exporter/gists{/gist_id}","starred_url":"https://api.github.com/users/google-code-exporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google-code-exporter/subscriptions","organizations_url":"https://api.github.com/users/google-code-exporter/orgs","repos_url":"https://api.github.com/users/google-code-exporter/repos","events_url":"https://api.github.com/users/google-code-exporter/events{/privacy}","received_events_url":"https://api.github.com/users/google-code-exporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/magro/memcached-session-manager/labels/bug","name":"bug","color":"FFFFFF"},{"url":"https://api.github.com/repos/magro/memcached-session-manager/labels/imported","name":"imported","color":"FFFFFF"},{"url":"https://api.github.com/repos/magro/memcached-session-manager/labels/Priority-Medium","name":"Priority-Medium","color":"FFFFFF"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-24T08:05:01Z","updated_at":"2015-08-24T08:05:01Z","closed_at":null,"body":"_From [schy...@ctrlprint.se](https://code.google.com/u/105503648307618593963/) on April 28, 2015 00:56:11_\n\nSerialization does not work when deploying to Tomcat 8.0.21.\r\n\r\nTomcat has removed org.apache.catalina.ha.session.SerializablePrincipal, which MSM uses. Serialization fails with the following stack trace:\r\n\r\nSEVERE [http-nio-8080-exec-5] org.apache.coyote.http11.AbstractHttp11Processor.process Error processing request\r\n java.lang.NoClassDefFoundError: org/apache/catalina/ha/session/SerializablePrincipal\r\n\tat de.javakaffee.web.msm.TranscoderService.serializePrincipal(TranscoderService.java:352)\r\n\tat de.javakaffee.web.msm.TranscoderService.serializeSessionFields(TranscoderService.java:207)\r\n\tat de.javakaffee.web.msm.TranscoderService.serializeSessionFields(TranscoderService.java:194)\r\n\tat de.javakaffee.web.msm.TranscoderService.serialize(TranscoderService.java:184)\r\n\tat de.javakaffee.web.msm.BackupSessionTask.call(BackupSessionTask.java:118)\r\n\tat de.javakaffee.web.msm.BackupSessionTask.call(BackupSessionTask.java:51)\r\n\tat de.javakaffee.web.msm.BackupSessionService$SynchronousExecutorService.submit(BackupSessionService.java:346)\r\n\tat de.javakaffee.web.msm.BackupSessionService.backupSession(BackupSessionService.java:205)\r\n\tat de.javakaffee.web.msm.MemcachedSessionService.backupSession(MemcachedSessionService.java:1040)\r\n\tat de.javakaffee.web.msm.RequestTrackingHostValve.backupSession(RequestTrackingHostValve.java:230)\r\n\tat de.javakaffee.web.msm.RequestTrackingHostValve.invoke(RequestTrackingHostValve.java:159)\r\n\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)\r\n\tat org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)\r\n\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)\r\n\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)\r\n\tat org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)\r\n\tat org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)\r\n\tat org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:223)\r\n\tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1517)\r\n\tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1474)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\tat org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: java.lang.ClassNotFoundException: org.apache.catalina.ha.session.SerializablePrincipal\r\n\tat java.net.URLClassLoader$1.run(URLClassLoader.java:372)\r\n\tat java.net.URLClassLoader$1.run(URLClassLoader.java:361)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.net.URLClassLoader.findClass(URLClassLoader.java:360)\r\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:424)\r\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:357)\r\n\t... 24 more\r\n\r\nThe class was deleted on the 16:th of December 2014 according to this mailing list message: <a href=\"http://svn.apache.org/viewvc?view=revision&amp;revision=1645955\" rel=\"nofollow\">http://svn.apache.org/viewvc?view=revision&amp;revision=1645955</a>. It is likely that earlier versions of Tomcat also are affected, but I haven't tested that. According to the patch, it is no longer needed since \"GenericPrincipal now implements Serializable\".&#13;\n&#13;\nThis has been tested with on:&#13;\nMac OS X 10.10.3&#13;\nOracle Java 1.8.0_11&#13;\nApache Tomcat 8.0.21&#13;\nmemcached-session-manager 1.8.3&#13;\nmemcached-session-manager-tc8 1.8.3\n\n_Original issue: http://code.google.com/p/memcached-session-manager/issues/detail?id=227_"}}