 <p>I know it's so late but I had the same problem, so here's the solution below: </p> <p>To create web.xml: </p> <ol> <li>Right click on your project</li> <li>Choose New</li> <li>Choose Other </li> <li>Box New file is opened, in Filter search web.xml</li> <li>You will get the file you want web.xml, then click next...then finish</li> </ol> <p>(Tested on Netbean 7.4 JDK 7)</p>