Any changes made to the jboss-service.xml file will take effect only at the startup. And by default, the shutdown program will look only at the default jnp port 1099. It does not reference the jboss-service.xml file. The best way to force a non-default jnp port number is to specify it as a command-line argument, as shown below:
# ./shutdown.sh -s jnp://localhost:10999 -S
This assumes that your jboss-service.xml file contained something like what is shown below:
<!-- jnp port specification -->
(i.e. JBoss was started with jnp port number 10999).
ViSolve Consulting Group