# Jetty plugin doesn't ignore web.xml

**URL:** <https://discuss.gradle.org/t/jetty-plugin-doesnt-ignore-web-xml/725>\
**Category:** Old Forum Archive\
**Created:** [October 24, 2013, 11:31am UTC](https://discuss.gradle.org/t/jetty-plugin-doesnt-ignore-web-xml/725 "2013-10-24T11:31:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lstrzelecki](https://avatars.discourse-cdn.com/v4/letter/l/ecc23a/32.png) [@lstrzelecki](https://discuss.gradle.org/u/lstrzelecki)\
**Post date:** [October 24, 2013, 11:31am UTC](https://discuss.gradle.org/t/jetty-plugin-doesnt-ignore-web-xml/725/1 "2013-10-24T11:31:00Z")

</div>

I try to run jetty without web.xml. I have web.xml in project but I don’t want to load this file.

According to documentation: [http://www.gradle.org/docs/current/dsl/org.gradle.api.plugins.jetty.JettyRun.html](http://www.gradle.org/docs/current/dsl/org.gradle.api.plugins.jetty.JettyRun.html) “webXml The web.xml file to use. When null, no web.xml file is used.”

I’ve created project to reproduce issue: [https://github.com/lstrzelecki-issues/jettySkipWebXml](https://github.com/lstrzelecki-issues/jettySkipWebXml)

When i run script [runme.sh](http://runme.sh) I’m expectint that jetty will run properly. But it doesn’t becouse invalid web.xml is loaded.

```gradle
$ gradle --version

```

```gradle
------------------------------------------------------------
Gradle 1.8
------------------------------------------------------------
  Build time:
 2013-09-24 07:32:33 UTC
Build number: none
Revision:
   7970ec3503b4f5767ee1c1c69f8b4186c4763e3d
  Groovy:
     1.8.6
Ant:
        Apache Ant(TM) version 1.9.2 compiled on July 8 2013
Ivy:
        2.2.0
JVM:
        1.6.0_45 (Sun Microsystems Inc. 20.45-b01)
OS:
         Linux 3.8.0-19-generic amd64

```
