0 Replies Latest reply on Oct 4, 2005 9:29 PM by N Sharma

    HotSwapper connection problem

    N Sharma Newbie

      Hi,

      I am using HotSwapper to reload a class i changed at runtime. I am not able to make it work. I am using Jboss 4.0.3RC2, and Javassist 3.1RC2. When I create HotSwapper object with

      HotSwapper hs = new HotSwapper(8000);

      I am getting the following exception:

      java.net.ConnectException: Connection refused: connect
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
      at java.net.Socket.connect(Socket.java:452)
      at java.net.Socket.connect(Socket.java:402)
      at java.net.Socket.(Socket.java:309)
      at java.net.Socket.(Socket.java:124)
      at com.sun.tools.jdi.SocketTransport.attach(SocketTransport.java:46)
      at com.sun.tools.jdi.SocketAttachingConnector.attach(SocketAttachingConnector.java:65)
      at javassist.tool.HotSwapper.(HotSwapper.java:115)
      at javassist.tool.HotSwapper.(HotSwapper.java:94)


      Can somebody please help??? I have modified run.bat for JBoss to add the foolowing line to it:

      set JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n


      Any thoughts???

      thanx,

      NS