If you're using the Jetty bundle (JBossWeb), open the jetty-plugin.sar file (server/default/deploy dir) and edit the port number in jboss-service.xml (HTTP Socket listener port).
actually it seems Jetty is deployed unpacked so just change the file server/default/deploy/jbossweb.sar/META-INF/jboss-service.xml
I've changed the port number to 8090 in jboss-service.xml, where you told me:
Now, when I start JBoss, the Bind Exception disappear. But when I shut down the server, it seems to be using port 8080. The console window says the same:
Shutting down server http://localhost:8080
Although the server says shutdown complete nothing is done in the console window where JBoss is running (it doesn't stop).
I have tried to start the server in minimal configuration with run.bat -c minimal, and the same occurs. It says Shutting down server http://localhost:8080, and I think this configuration doesn't use the Jetty server.
I need more help
Thank you very much.