1 Reply Latest reply on Dec 20, 2005 9:00 AM by abrhaao

    How to change rmiPort in JBoss 4.0

    yulinxp

      I'm using JBoss- 4.0.3SP1. I have the error when starting JBoss:
      java.rmi.server.ExportException: Port already in use: 1098; nested exception is:

      I want to change rmiPort. I found two xml containing "rmiPort":
      naming-service.xml in server/default/deploy
      NamingService-xmbean.xml in server/default/conf/xmdesc

      Then I change RmiPort in naming-service.xml to a different port other than 1098. But when I start the JBoss, it gives me:

      12:58:20,839 INFO [NamingService] Started jndi bootstrap jnpPort=1099, rmiPort=1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, Ser
      ver SocketFactory=org.jboss.net.sockets.DefaultSocketFactory@ad093076
      12:58:21,026 INFO [WebService] Using RMI server codebase: http://CFEngineer31:8083/
      12:58:22,776 INFO [MailService] Mail Service bound to java:/Mail
      12:58:22,839 ERROR [MainDeployer] Could not create deployment: file:/E:/Applications/jboss-4.0.3SP1/server/default/deploy/naming-service.xml
      org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss:service=Naming

      As you can see, the rmiPort is set to 1098 before processing naming-service.xml.
      Where is it set? How can I change the port?

        • 1. Re: How to change rmiPort in JBoss 4.0
          abrhaao

          Make a serach for "1098" above directory server/default/conf. Its an xml, I'm not sure about the correct name. jboss-service.xml, or something like that.

          I also was with this problem. The MSN Messenger was using the port 1098. I changed Jboss Rmi port to 1122, and no more problems about it has occured.