Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Testing Bug 403360 -- Associating a webapp with a connector

Thanks Jan, that didn't seem to fix the problem, but thanks for verifying my configuration.  I'm attaching debug logs, I'm not seeing anything in them, if you see something, please let me know.  I'll try and create a test case, but it would be nice if I didn't have to go through that work ;-)

In the logs, the name of the connector is solrConnector and the webapp is org.apache.solr.war-4.2.1.  We have bundled the solr war and included the jetty-web.xml inside of it.  To create the log, I just grepped oej, so if you think anything might be missing, let me know.  For reference, this worked in jetty 7 for us.

Cheers,
Craig


On Fri, May 17, 2013 at 10:28 PM, Jan Bartel <janb@xxxxxxxxxxx> wrote:
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 <craigching@xxxxxxxxx> wrote:
I'm trying to test this defect that I opened back in March:


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
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users




--
Jan Bartel <janb@xxxxxxxxxxx>
www.webtide.com – Developer advice, services and support
from the Jetty & CometD experts.

_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users


Attachment: jetty-log.zip
Description: Zip archive


Back to the top