-
1. Re: changing default port in AS 7
jaikiran May 11, 2013 12:45 AM (in response to dmwpepper)David Harris wrote:
However, I want other apps to run on 8080.
You can run any number of web applications on that port. Each one will have a separate web context. So localhost:8080/appOne and localhost:8080/appTwo, for example. If you want your application to be accessible at root context i.e. at http://localhost:8080/ then follow this thread https://community.jboss.org/message/761029#761029
-
2. Re: changing default port in AS 7
dmwpepper May 12, 2013 6:41 PM (in response to jaikiran)Thanks, Jaikiran, I think I said it wrong. If I want to run another application server on 8080, like Tomcat, can I change the AS7 port? I know I can change the Tomcat port, just wondering if I can do the same with AS7
-
3. Re: changing default port in AS 7
sfcoy May 13, 2013 12:15 AM (in response to dmwpepper)My answer at remote JNDI using IP may tip you off as to how to go about it.
-
4. Re: changing default port in AS 7
wdfink May 13, 2013 2:22 AM (in response to dmwpepper)If you look to the <socket-binding-group> element in the configuration (standalone or domain) you see all the different ports and you are able to change it here.
In domain mode you need to check that you use the correct binding for the different servers.
-
5. Re: changing default port in AS 7
lafr May 13, 2013 2:43 AM (in response to dmwpepper)Changing the http port number from 8080 to 8082 in <socket-binding-group> should work.
You did a reboot afterwards? What's in server.log about "http listener" and "listening on"?
Another solution: use property "-Djboss.socket.binding.port-offset=x" to change all ports from their default to default+x.
E.g. -Djboss.socket.binding.port-offset=100 to change 8080 to 8180.