I'm running into the exact same error like you did. I'm trying to have different web applications available through different ports.
I added a new socket-binding:
<socket-binding name="http2" port="8181"/>
created a new virtual-server:
<virtual-server name="foo.com" default-web-module="/multipart-war" enable-welcome-root="false"/>
now I added a new connector, refering to both, the socket-binding and the virtual-server:
<connector name="http2" protocol="HTTP/1.1" scheme="http" socket-binding="http2">
Now I only get a HTTP 403 error when trying to access port 8181.
Is there any advice on how to do this?
After you specify this, you need to make sure there is a jboss-web.xml in your WEB-INF formatted in the following manner:
This takes care of the necessary routing within JBoss.
Also, although this is implemented within the xsd file, I don't think that it is currently read at this point. I am still experimenting with my settings to verify this.