<Call name="addConnector">
<Arg>
<New class="org.eclipse.jetty.server.ServerConnector">
<Arg name="server"><Ref refid="Server" /></Arg>
<Arg name="factories">
<Array type="org.eclipse.jetty.server.ConnectionFactory">
<Item>
<New class="org.eclipse.jetty.server.HttpConnectionFactory">
<Arg name="config"><Ref refid="httpConfig" /></Arg>
</New>
</Item>
</Array>
</Arg>
<Set name="name">myConnector</Set>
<Set name="host"><Property name="my.host" /></Set>
<Set name="port"><Property name="my.port" default="8090" /></Set>
<Set name="idleTimeout">30000</Set>
</New>
</Arg>
</Call>
and the connector is listening on 8090. Here's my jetty-web.xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
<Set name="virtualHosts">
<Array type="String">
<Item>@myConnector</Item>
</Array>
</Set>
</Configure>
When the jetty-web.xml is in the WAR (bundle, we're OSGi), the webapp is inaccessible. But when I remove jetty-web.xml, it works fine.
Can anyone tell me if I'm missing something fundamental here?
Cheers,
Craig