5 Replies Latest reply on Jul 17, 2003 4:48 AM by kar2000

    Connection refused:

    minu

      I have installed JBoss-2.4.3_Tomcat-3.2.3 with Mysql, created a datasource in the jcml file. I am able to deploy, when i run the client i get the following error

      javax.naming.ServiceUnavailableException: Connection refused: no further information. Root exception is java.net.ConnectException: Connection refused: no further information
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:312)
      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125)
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112)
      at java.net.Socket.(Socket.java:273)
      at java.net.Socket.(Socket.java:100)
      at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:102)
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:776)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:340)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333)
      at javax.naming.InitialContext.lookup(InitialContext.java:350)

        • 1. Re: Connection refused:

          Your jndi.properties for the client needs to specify
          the host running JBoss, otherwise it will try to connect
          to your local machine.
          JBoss isn't on that machine => Connection Refused.

          Regards,
          Adrian

          • 2. Re: Connection refused:
            sachin

            Hello warjort,
            I sometimes used to receive messages as i/o error occured while trying to read from socked and socketexception.
            What could be the reason for that.
            Is it because of some db problem or some properties or parameter setting in jboss.

            Sachin

            • 3. Re: Connection refused:

              Which operating system are you using.

              I've seen connection refused on Win2K and XP when
              you try to make too many connections too quickly.

              The windows ip stack thinks you are doing a denial
              of service attack.

              This is very annoying when trying to stress test an
              application.

              Regards,
              Adrian

              • 4. Re: Connection refused:
                minu

                I have an Win NT workstation, on which i have installed Jboss2.4.3 and tomcat3.2.3. Once in a while i get this problem. If i give a gap of sometime and start the server it works fine. There are times when it never gets connected, even after idle time.

                • 5. Re: Connection refused:
                  kar2000

                  Well, I have a doubt in this regard - is there any means of finding in the jboss 3.0.7 server side and not in the Oracle 8 database server side,

                  how many connections are there in the pool,

                  how many connections are in use and

                  how many connections are being returned at a given point of time?