{"action":"created","issue":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1958","labels_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1958/labels{/name}","comments_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1958/comments","events_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1958/events","html_url":"https://github.com/jhipster/generator-jhipster/issues/1958","id":104145346,"number":1958,"title":"Jhipster / Hazelcast project fails to start when packaged as WAR ","user":{"login":"NickGDev","id":11686889,"avatar_url":"https://avatars.githubusercontent.com/u/11686889?v=3","gravatar_id":"","url":"https://api.github.com/users/NickGDev","html_url":"https://github.com/NickGDev","followers_url":"https://api.github.com/users/NickGDev/followers","following_url":"https://api.github.com/users/NickGDev/following{/other_user}","gists_url":"https://api.github.com/users/NickGDev/gists{/gist_id}","starred_url":"https://api.github.com/users/NickGDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickGDev/subscriptions","organizations_url":"https://api.github.com/users/NickGDev/orgs","repos_url":"https://api.github.com/users/NickGDev/repos","events_url":"https://api.github.com/users/NickGDev/events{/privacy}","received_events_url":"https://api.github.com/users/NickGDev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-31T22:18:46Z","updated_at":"2015-09-24T02:57:21Z","closed_at":null,"body":"Error on Tomcat startup:\r\n Failed to instantiate [com.hazelcast.core.HazelcastInstance]: Factory method 'hazelcastInstance' threw exception; nested exception is java.lang.IllegalArgumentException: PortableFactory[-23] is already registered! com.hazelcast.mapreduce.impl.MapReducePortableHook$1@66d83be5 ->\r\n\r\nThis issue has been previously reported and determined to be a dependency version conflict, i have checked my the generated maven configuration and lib folder in my WAR and cannot see mixed versions of hazelcast / spring / hibernate jars. \r\n\r\nI have also tried troubleshooting this issue by placing an thread-safe check during the instantiation of  the Hazelcast instance in the CacheConfiguration class but this doesn't fix the error or just causes a null pointer. Ehcache is not experiencing the same issue and switching to hazelcast 3.2.5 does not resolve the issue.\r\n\r\nI have created a project from the latest jhipster generator and uploaded my error log\r\n\r\nsteps to reproduce:\r\nMac OS X / JDK 8_51 (x64) / Maven 3.3.3\r\n\r\nmvn clean package\r\njava -jar target/jhipster-0.0.1-SNAPSHOT.war\r\n\r\nsource project:\r\nhttps://github.com/NickGDev/jhipster-hazelcast-websockets\r\n\r\nerror:\r\nhttp://pastebin.com/3J2x8dg4\r\n\r\nprevious reports:\r\nhttp://stackoverflow.com/questions/28028637/upgrading-hazelcast-to-3-2-5-results-in-portablefactory-19-is-already-regis"},"comment":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/comments/142789358","html_url":"https://github.com/jhipster/generator-jhipster/issues/1958#issuecomment-142789358","issue_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1958","id":142789358,"user":{"login":"deepu105","id":1107223,"avatar_url":"https://avatars.githubusercontent.com/u/1107223?v=3","gravatar_id":"","url":"https://api.github.com/users/deepu105","html_url":"https://github.com/deepu105","followers_url":"https://api.github.com/users/deepu105/followers","following_url":"https://api.github.com/users/deepu105/following{/other_user}","gists_url":"https://api.github.com/users/deepu105/gists{/gist_id}","starred_url":"https://api.github.com/users/deepu105/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepu105/subscriptions","organizations_url":"https://api.github.com/users/deepu105/orgs","repos_url":"https://api.github.com/users/deepu105/repos","events_url":"https://api.github.com/users/deepu105/events{/privacy}","received_events_url":"https://api.github.com/users/deepu105/received_events","type":"User","site_admin":false},"created_at":"2015-09-24T02:57:21Z","updated_at":"2015-09-24T02:57:21Z","body":"@NickGDev can you try to reproduce this with a fresh app using latest JH version, as Im unable to reproduce on new app"}}