<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Failed to connect to remote VM. Connection refused in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/failed-to-connect-to-remote-vm-connection-refused/m-p/25664#M12702</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Buongiorno,quando tento di effettuare il debug ricevo il seguente errore &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Failed to connect to remote VM. Connection refused.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;java.net.ConnectException: Connection refused: connect&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at java.net.PlainSocketImpl.socketConnect(Native Method)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at java.net.PlainSocketImpl.doConnect(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at java.net.PlainSocketImpl.connectToAddress(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at java.net.PlainSocketImpl.connect(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at java.net.SocksSocketImpl.connect(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at java.net.Socket.connect(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at java.net.Socket.connect(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at java.net.Socket.&amp;lt;init&amp;gt;(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at java.net.Socket.&amp;lt;init&amp;gt;(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.eclipse.jdi.internal.connect.SocketTransportService$2.run(SocketTransportService.java:136)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at java.lang.Thread.run(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;eclipse.buildId=I20090611-1540&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;java.version=1.6.0_16&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;java.vendor=Sun Microsystems Inc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=it_IT&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Framework arguments:&amp;nbsp; -product org.eclipse.epp.package.jee.product&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Command-line arguments:&amp;nbsp; -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Questi sono gli steps che ho fatto per configurare Eclipse e Tomcat &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1)In the eclipse window, click on the debug icon, select "Remote Java Application" from the list of configurations. Right click on the "Remote Java Application" and create a new configuration for your application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the right hand side, there will be three tabs, namely "Connect" ,"Source" and "Common". Click on the "Connect" tab and set the connection properties, host as "localhost" and port as "8000".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) In the enviornment variables, add an entry jpda_address=8000;This is the default connection port used by eclipse when you try to connect to a remote VM for debug.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3)Open catalina.bat (inside the bin folder of tomcat) and search for "set JPDA_TRANSPORT". Set the value to dt_socket.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;4)Open startup.bat(inside the bin folder of tomcat) and search for call "%EXECUTABLE%" start %CMD_LINE_ARGS%. Its at the end of the file. Replace this with call "%EXECUTABLE%" jpda start %CMD_LINE_ARGS% (mind the spaces, better copy and paste).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;5)Save the changes and start the tomcat server using its startup.bat file. The first line appearing on the server window should be "Listening for transport dt_socket at address: 8000. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;le versioni sono&lt;BR /&gt;Alfresco 3.2&lt;BR /&gt;alfresco-labs-sdk-3a.1032&lt;BR /&gt;Eclipse Java EE IDE for Web Developers. Build id: 20090621-0832&lt;BR /&gt;&lt;BR /&gt;Il firewall non è attivo&lt;BR /&gt;Il tutto gira su una Virtal machine con Windows XP installato&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Poteste cortesemente aiutarmi&amp;nbsp; :idea:&amp;nbsp; :!:&amp;nbsp; :?: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;grazie1000 &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Oct 2009 09:48:37 GMT</pubDate>
    <dc:creator>cristina</dc:creator>
    <dc:date>2009-10-08T09:48:37Z</dc:date>
    <item>
      <title>Failed to connect to remote VM. Connection refused</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/failed-to-connect-to-remote-vm-connection-refused/m-p/25664#M12702</link>
      <description>Buongiorno,quando tento di effettuare il debug ricevo il seguente errore Failed to connect to remote VM. Connection refused.java.net.ConnectException: Connection refused: connectat java.net.PlainSocketImpl.socketConnect(Native Method)at java.net.PlainSocketImpl.doConnect(Unknown Source)at java.net.P</description>
      <pubDate>Thu, 08 Oct 2009 09:48:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/failed-to-connect-to-remote-vm-connection-refused/m-p/25664#M12702</guid>
      <dc:creator>cristina</dc:creator>
      <dc:date>2009-10-08T09:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to connect to remote VM. Connection refused</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/failed-to-connect-to-remote-vm-connection-refused/m-p/25665#M12703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Devi far partire Alfresco aggiungendo i seguenti parametri alla JVM (JAVA_OPTS) all'interno del file alfresco.bat:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=PORTA&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Sostituisci PORTA con la porta di ascolto che vuoi utilizzare.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In Eclipse poi devi configurare la stessa porta dal pannello "Remote Java Application".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Apr 2010 10:36:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/failed-to-connect-to-remote-vm-connection-refused/m-p/25665#M12703</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2010-04-30T10:36:59Z</dc:date>
    </item>
  </channel>
</rss>

