title: Tomcat Intellij Idea: Remote deploy
body: <p><em>RackSpace Cloud Server Ubuntu-12.04, Intellij Idea-11.1.2, Windows-8, Tomcat-7.0.26, JDK-6.</em></p>
  
  <p>On Intellij Idea when i try to run jsf project on my remote Tomcat 7 server it says: </p>
  
  <blockquote>
    <p>Error running <em>servername</em>: Unable to connect to the <em>ip-address</em>:1099</p>
  </blockquote>
  
  <p>It seems problem is about JNDI port which is 1099 but I couldn't activate it I guess. Tomcat config is sth. like that:</p>
  
  <p><img src="https://i.stack.imgur.com/51A0l.png" alt="enter image description here"></p>
  
  <p><strong>What I've tried?</strong></p>
  
  <p>Setting CATALINA_OPTS or JAVA_OPTS on the server side with:</p>
  
  <pre><code> CATALINA_OPTS=-Dcom.sun.management.jmxremote 
  -Dcom.sun.management.jmxremote.port=1099 
  -Dcom.sun.management.jmxremote.ssl=false 
  -Dcom.sun.management.jmxremote.authenticate=false
  </code></pre>
  
  <p>and</p>
  
  <pre><code>JAVA_OPTS=-Dcom.sun.management.jmxremote 
  -Dcom.sun.management.jmxremote.port=1099 
  -Dcom.sun.management.jmxremote.ssl=false 
  -Dcom.sun.management.jmxremote.authenticate=false
  </code></pre>
  
  <p>But this one did not work, any ideas?</p>