Details
-
Bug
-
Resolution: Done
-
Major
-
7.1.1.Final
Description
You cannot ask for ports to be offset in the negative direction. For example, I can't run AS7 with jboss.socket.binding.port-offset set to "-10".
How to replicate:
1) download and unzip JBossAS 7.1.1.Final
2) cd to the bin/ directory
3) run this: ./standalone.sh -Djboss.socket.binding.port-offset=10
4) notice this runs fine - I can go to http://localhost:8090 successfully
5) shutdown the server
6) now run this: ./standalone.sh -Djboss.socket.binding.port-offset=-10
Now the server startup will produce errors and you can't go to http://localhost:8070 successfully.
The errors in the logs I see are:
10:16:49,066 INFO [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report
JBAS014775: New missing/unsatisfied dependencies:
service jboss.socket-binding-manager (missing) dependents: [service jboss.binding.osgi-http, service jboss.serverManagement.controller.management.http, service jboss.remoting.server.management, service jboss.binding.remoting, JBAS014799: ... and 8 more ]
10:16:49,161 INFO [org.jboss.as] (Controller Boot Thread) JBAS015954: Admin console is not enabled
10:16:49,162 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 5281ms - Started 106 of 178 services (27 services failed or missing dependencies, 44 services are passive or on-demand)