Reputation: 3188
Does anybody know how to allow both IIS 7 and JBoss AS 7 to run and host applications on a Windows 2008 Server? I have a Windows 2008 VPS that I have hosting some ASP.NET websites and apps via IIS through port 80, the default. Now I want to host some JBoss Seam web apps (and RESTEasy web services), which presumably I will need to do on another port (eg. 8080).
I have modified the standalone.xml configuration file in JBoss AS in the standalone configuration folder so that the socket binding name "http" runs from port 8080. However the server is not responding when I try to request my apps that are running on JBoss AS from browsers on other machines outside the server, eg:
www.notmyrealdomain.com:8080
... does not return any response. When I use
localhost:8080
... to browse on the server itself, I can load web page and applications from JBoss AS just fine. So surely there is either a Windows setting or JBoss AS setting that requires changing to get this to work.
Any help much appreciated.
Upvotes: 6
Views: 5618
Reputation: 3188
Finally got this working:
First step - enabled incoming connections with Windows Firewall Public Profile properties!
Second step - edited the standalone/configuration/standalone.xml on my JBoss AS by replacing the default values with these values:
<interfaces>
<interface name="management">
<inet-address value="127.0.0.1"/>
</interface>
<interface name="public">
<any-address/>
</interface>
</interfaces>
<socket-binding-group ...>
<socket-binding name="http" port="8080"/>
...
</socket-binding-group>
Third step - restarted the server by running the standalone.bat file again.
Both IIS and JBoss AS successfully host apps now, although I need to specify the port address for JBoss AS apps that are deployed as I mentioned in my original question e.g. www.notmyrealdomain.com:8080/jboss-as-app/ .
Upvotes: 1
Reputation: 26200
You can set up a subdomain like jboss.notmyrealdomain.com
and configure IIS to redirect it to JBoss entirely. This gives benefit of using port 80 in browser.
Upvotes: 1
Reputation: 1628
You need to make jboss as 7 instance bind against the ip that resolves to www.notmyrealdomain.com
.
you can do that by running jboss as:
standalone.bat -b <EXTERNALIP>
Regards
Upvotes: 1