0

I'm a frontend developer with a backend server using jetty.

I am making a small fix that belongs in web.xml / webdefault.xml / jetty.xml / the various other methods mentioned on http://wiki.eclipse.org/Jetty/Howto/Configure_Jetty. I understand there are rules about order for these.

I suspect Jetty is ignoring the change - how can I make jetty display its effective configuration?

mikemaccana
  • 110,530
  • 99
  • 389
  • 494

1 Answers1

1

Well, that depends on the config change you've done. Jetty will output things like the connector's ports, etc. in the stdout output.

Another thing to mention is --dry-run:

See: http://www.eclipse.org/jetty/documentation/current/advanced-jetty-start.html for details.

Then you can enable jmx where you can verify lots of currently applied settings:

http://www.eclipse.org/jetty/documentation/current/jmx-chapter.html

web.xml stuff usually belongs to your application and not to jetty. However using jetty you can override the settings of your web.xml. Consult the documentation if you're interested in this.

So really, you need to be more specific about what setting is not applied to your wishes.

Edit:

You can specify the mime settings in webdefault.xml that is shipped together with the standard distribution of jetty. Here's an excerpt from that file:



<!-- ==================================================================== --> <!-- Default MIME mappings --> <!-- The default MIME mappings are provided by the mime.properties --> <!-- resource in the org.eclipse.jetty.server.jar file. Additional or modified --> <!-- mappings may be specified here --> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <!-- UNCOMMENT TO ACTIVATE <mime-mapping> <extension>mysuffix</extension> <mime-type>mymime/type</mime-type> </mime-mapping> -->

Is that the way you've tried it? How do you run jetty? Embedded? Standard Distribution?

Thomas Becker
  • 934
  • 8
  • 16
  • I'm used to things like Apache where you can dump out the config the server is currently using. The setting I've changed in Jetty is a mime-mapping setting (Jetty doesn't send WOFF files with the correct MIME type by default). Thanks @Thomas! – mikemaccana Jul 05 '13 at 14:55