Craig, Try changing the DOCTYPE of the jetty-web.xml file to use the configure_9_0.dtd - not sure that is the cause, but without specifying the 9_0 version wierd things have been known to happen:
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" " http://www.eclipse.org/jetty/configure_9_0.dtd"> If that doesn't fix it, then turn on all debug and post the output. cheers Jan On 18 May 2013 07:23, Craig Ching <[email protected]> wrote: > I'm trying to test this defect that I opened back in March: > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=403360 > > I have the connector defined like this: > > <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"?> > <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" " > http://www.eclipse.org/jetty/configure.dtd"> > > <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 > > _______________________________________________ > jetty-users mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/jetty-users > > -- Jan Bartel <[email protected]> www.webtide.com – Developer advice, services and support from the Jetty & CometD experts.
_______________________________________________ jetty-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/jetty-users
