{"action":"created","issue":{"url":"https://api.github.com/repos/pivotalsoftware/session-managers/issues/10","repository_url":"https://api.github.com/repos/pivotalsoftware/session-managers","labels_url":"https://api.github.com/repos/pivotalsoftware/session-managers/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/pivotalsoftware/session-managers/issues/10/comments","events_url":"https://api.github.com/repos/pivotalsoftware/session-managers/issues/10/events","html_url":"https://github.com/pivotalsoftware/session-managers/issues/10","id":185218091,"number":10,"title":"tomcat 8 redis session store","user":{"login":"bkpraveen","id":23062719,"avatar_url":"https://avatars.githubusercontent.com/u/23062719?v=3","gravatar_id":"","url":"https://api.github.com/users/bkpraveen","html_url":"https://github.com/bkpraveen","followers_url":"https://api.github.com/users/bkpraveen/followers","following_url":"https://api.github.com/users/bkpraveen/following{/other_user}","gists_url":"https://api.github.com/users/bkpraveen/gists{/gist_id}","starred_url":"https://api.github.com/users/bkpraveen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkpraveen/subscriptions","organizations_url":"https://api.github.com/users/bkpraveen/orgs","repos_url":"https://api.github.com/users/bkpraveen/repos","events_url":"https://api.github.com/users/bkpraveen/events{/privacy}","received_events_url":"https://api.github.com/users/bkpraveen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-25T19:58:01Z","updated_at":"2016-10-26T16:34:02Z","closed_at":null,"body":"I am trying to use this plugin in tomcat 8. Downloaded the latest code and did maven build add Valve and manager in context.xml, but when I bring up tomcat I am getting the following error\r\n\r\n    <Valve className=\"com.gopivotal.manager.PivotalSessionFlushValve\" />\r\n     <Manager className=\"org.apache.catalina.session.PersistentManager\">\r\n     <Store className=\"com.gopivotal.manager.redis.RedisStore\"  host=\"localhost\" port=\"6379\"/>\r\n    </Manager>\r\n\r\n\r\n\r\n25-Oct-2016 15:36:45.145 SEVERE [localhost-startStop-1] com.gopivotal.manager.LockTemplate.withReadLock Error while invoking read-locked operation\r\n java.lang.IllegalArgumentException: javax.management.InstanceAlreadyExistsException: Catalina:type=Valve,context=/,host=st-portal-app01.cgieva.net,name=PivotalSessionFlushValve\r\n        at com.gopivotal.manager.StandardJmxSupport.register(StandardJmxSupport.java:47)\r\n        at com.gopivotal.manager.PivotalSessionFlushValve$8.invoke(PivotalSessionFlushValve.java:177)\r\n        at com.gopivotal.manager.PivotalSessionFlushValve$8.invoke(PivotalSessionFlushValve.java:173)\r\n        at com.gopivotal.manager.LockTemplate.withReadLock(LockTemplate.java:59)\r\n        at com.gopivotal.manager.PivotalSessionFlushValve.startInternal(PivotalSessionFlushValve.java:173)\r\n        at com.gopivotal.manager.AbstractLifecycle.start(AbstractLifecycle.java:122)\r\n        at org.apache.catalina.core.StandardPipeline.startInternal(StandardPipeline.java:170)\r\n        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)\r\n        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5214)\r\n        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)\r\n        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)\r\n        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)\r\n        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)\r\n        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1092)\r\n        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1834)\r\n        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\r\n        at java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n        at java.lang.Thread.run(Thread.java:745)\r\nCaused by: javax.management.InstanceAlreadyExistsException: Catalina:type=Valve,context=/,host=localhost,name=PivotalSessionFlushValve\r\n        at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437)\r\n        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1898)\r\n        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:966)\r\n        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900)\r\n        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324)\r\n        at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522)\r\n        at com.gopivotal.manager.StandardJmxSupport.register(StandardJmxSupport.java:45)\r\n        ... 19 more\r\n\r\nI tried changing the name of the Valve class to PivotalSessionFlushValve, still gave the same error instancealreadyexists.\r\n\r\n\r\n\r\nPlease let me know If I am missing anything."},"comment":{"url":"https://api.github.com/repos/pivotalsoftware/session-managers/issues/comments/256405167","html_url":"https://github.com/pivotalsoftware/session-managers/issues/10#issuecomment-256405167","issue_url":"https://api.github.com/repos/pivotalsoftware/session-managers/issues/10","id":256405167,"user":{"login":"bkpraveen","id":23062719,"avatar_url":"https://avatars.githubusercontent.com/u/23062719?v=3","gravatar_id":"","url":"https://api.github.com/users/bkpraveen","html_url":"https://github.com/bkpraveen","followers_url":"https://api.github.com/users/bkpraveen/followers","following_url":"https://api.github.com/users/bkpraveen/following{/other_user}","gists_url":"https://api.github.com/users/bkpraveen/gists{/gist_id}","starred_url":"https://api.github.com/users/bkpraveen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkpraveen/subscriptions","organizations_url":"https://api.github.com/users/bkpraveen/orgs","repos_url":"https://api.github.com/users/bkpraveen/repos","events_url":"https://api.github.com/users/bkpraveen/events{/privacy}","received_events_url":"https://api.github.com/users/bkpraveen/received_events","type":"User","site_admin":false},"created_at":"2016-10-26T16:34:02Z","updated_at":"2016-10-26T16:34:02Z","body":"thanks for responding back so quickly I tried 1.3.1 and still seeing the same error\r\n\r\n\r\nCaused by: java.lang.IllegalArgumentException: javax.management.InstanceAlreadyExistsException: Catalina:type=Valve,context=/,host=localhost,name=SessionFlushValve\r\n        at com.gopivotal.manager.StandardJmxSupport.register(StandardJmxSupport.java:47)\r\n        at com.gopivotal.manager.SessionFlushValve$8.invoke(SessionFlushValve.java:177)\r\n        at com.gopivotal.manager.SessionFlushValve$8.invoke(SessionFlushValve.java:173)\r\n        at com.gopivotal.manager.LockTemplate.withReadLock(LockTemplate.java:59)\r\n        ... 16 more\r\nCaused by: javax.management.InstanceAlreadyExistsException: Catalina:type=Valve,context=/,host=localhost,name=SessionFlushValve\r\n        at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437)\r\n        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1898)\r\n        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:966)\r\n        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900)\r\n        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324)\r\n        at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522)\r\n        at com.gopivotal.manager.StandardJmxSupport.register(StandardJmxSupport.java:45)\r\n        ... 19 more\r\n"}}
{"actor":{"display_login":"bkpraveen"}}