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?