How do I serve webapp A only from port A and webapp B only from port B?
You need two org.mortbay.jetty.Server instances for this. Instance A will have listener A and webapp A defined, and instance B will have webapp B and listener B defined.
Here's a small example:
You run both Server instances in the same JVM by providing them both on the runline:
Of course, you could also start two separate jetty instances, one with
jettyA.xml and the other with