0 Replies Latest reply on Jan 9, 2006 4:23 AM by Pieter-Jan Malfait

    Connection refused when service starts

    Pieter-Jan Malfait Newbie


      i'm deploying my application to a server that is behind an gateway in the dmz (so server only has ip on inner network). it's set up that all ports on the gateway are forwarded to my server. the operating system is Debian Sarge and jboss version : 4.0.3RC2.
      i have adjusted the /etc/hosts file and set up the $JAVA_OPTS to use the external IP as rmi address as stated on the jboss wiki.

      now my problem:
      when my services start i get a java.rmi.ConnectException saying the connection is refused.

      09:10:43,301 WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB3,name=be.profitplus.logging.ArticleManagerBean
      javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 81.***.***.***; nested exception is:
      java.net.ConnectException: Connection refused]

      the 81.***.***.*** is the external ip. i checked the extended logs but still couldn't find anything why this is happening or what i can do to prevent it.

      anyone has any idea about this ? thanks a lot in advance