{"action":"created","issue":{"url":"https://api.github.com/repos/vahidhedayati/RemoteSSH/issues/5","repository_url":"https://api.github.com/repos/vahidhedayati/RemoteSSH","labels_url":"https://api.github.com/repos/vahidhedayati/RemoteSSH/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/vahidhedayati/RemoteSSH/issues/5/comments","events_url":"https://api.github.com/repos/vahidhedayati/RemoteSSH/issues/5/events","html_url":"https://github.com/vahidhedayati/RemoteSSH/issues/5","id":147442631,"number":5,"title":"ssh plugin war file not working","user":{"login":"Nagaraj-Vyoog","id":18399734,"avatar_url":"https://avatars.githubusercontent.com/u/18399734?v=3","gravatar_id":"","url":"https://api.github.com/users/Nagaraj-Vyoog","html_url":"https://github.com/Nagaraj-Vyoog","followers_url":"https://api.github.com/users/Nagaraj-Vyoog/followers","following_url":"https://api.github.com/users/Nagaraj-Vyoog/following{/other_user}","gists_url":"https://api.github.com/users/Nagaraj-Vyoog/gists{/gist_id}","starred_url":"https://api.github.com/users/Nagaraj-Vyoog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nagaraj-Vyoog/subscriptions","organizations_url":"https://api.github.com/users/Nagaraj-Vyoog/orgs","repos_url":"https://api.github.com/users/Nagaraj-Vyoog/repos","events_url":"https://api.github.com/users/Nagaraj-Vyoog/events{/privacy}","received_events_url":"https://api.github.com/users/Nagaraj-Vyoog/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-04-11T14:10:50Z","updated_at":"2016-04-12T15:56:06Z","closed_at":null,"body":"i am try to use your ssh plugin its working but war can't deployed.error occured.\r\n>\r\n> SEVERE: Exception sending context initialized event to listener instance of class org.codehaus.groovy.grails.web.context.GrailsContextLoaderListener\r\n> org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsApplication' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.VerifyError: (class: grails/plugin/remotessh/RsshService, method: executeCommand signature: (Lch/ethz/ssh2/Session;Lch/ethz/ssh2/Connection;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/StringBuilder;) Expecting to find integer on stack\r\n> at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)\r\n> at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)\r\n> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\r\n> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\r\n> at java.lang.Thread.run(Thread.java:745)\r\n> Caused by: java.lang.VerifyError: (class: grails/plugin/remotessh/RsshService, method: executeCommand signature: (Lch/ethz/ssh2/Session;Lch/ethz/ssh2/Connection;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/StringBuilder;) Expecting to find integer on stack\r\n> at java.lang.Class.forName(Class.java:278)\r\n> ... 5 more"},"comment":{"url":"https://api.github.com/repos/vahidhedayati/RemoteSSH/issues/comments/208978155","html_url":"https://github.com/vahidhedayati/RemoteSSH/issues/5#issuecomment-208978155","issue_url":"https://api.github.com/repos/vahidhedayati/RemoteSSH/issues/5","id":208978155,"user":{"login":"vahidhedayati","id":2270966,"avatar_url":"https://avatars.githubusercontent.com/u/2270966?v=3","gravatar_id":"","url":"https://api.github.com/users/vahidhedayati","html_url":"https://github.com/vahidhedayati","followers_url":"https://api.github.com/users/vahidhedayati/followers","following_url":"https://api.github.com/users/vahidhedayati/following{/other_user}","gists_url":"https://api.github.com/users/vahidhedayati/gists{/gist_id}","starred_url":"https://api.github.com/users/vahidhedayati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vahidhedayati/subscriptions","organizations_url":"https://api.github.com/users/vahidhedayati/orgs","repos_url":"https://api.github.com/users/vahidhedayati/repos","events_url":"https://api.github.com/users/vahidhedayati/events{/privacy}","received_events_url":"https://api.github.com/users/vahidhedayati/received_events","type":"User","site_admin":false},"created_at":"2016-04-12T15:56:06Z","updated_at":"2016-04-12T15:56:06Z","body":":) when you run in development mode I presume you are on a Linux machine \r\n\r\n\r\nso you are \r\n\r\n> usera> grails run-app\r\n\r\n\r\nThis then triggers\r\n\r\n> usera>.ssh/id_???\r\n\r\netc so in that user's folder exists the .ssh folder that has relevant access rights / keys etc \r\n\r\nWhen running in production the user that is running tomcat also needs to have the relevant .ssh folders access.\r\n\r\nSo if tomcat is running as tomcat  then try \r\n\r\n> sudo su - tomcat \r\n\r\n\r\nthen try ssh to what ever host you are trying ensure that is working first of all\r\n\r\n\r\n\r\n\r\n"}}