Cannot set hostnames
Cannot set virtual hostnames such that several distinct contexts may be used.
Using a WAR with one static index.html file, jonas-web.xml is:
test
log reports: "... War one.war available at the context /test."
and I can get the test index file on localhost:9000/test/
If I add a host as works with 4.X:
localhost test
log reports: "... War one.war available at the context /test on the host localhost" but it's not there. localhost is not special, any name that pairs with the request, eg, 'curl -H "Host: ...'" fails.
If I work without the host setting in jonas-web.xml and use jetty-web.xml to set host names:
one1 one2I can get a single context to work on a hostname, this works: $ curl -H "Host: one1" ...
However the point of using virtual hosts is to run more than one job, adding a second WAR on same / gives:
Caused by: org.ow2.jonas.web.JWebContainerServiceException : Cannot deploy war '/XXXXXXX/deploy/two.war' is already deployed with the context '/'. You must undeploy the war before a new deployment.
So this is of no use for multiple jobs . Adding hosts to jonas-web.xml allows adding both on / but then I can't reach them on any host name.