may its so late but the response useful for others so : Sometimes, when you don’t specify a server or servlet container at the creation of the project, NetBeans fails to create a
- In your project under Web Pages, create a folder called
Do this by right mouse button clicking on Web pages, and select:
Name the folder
META-INF. Case is important, even on Windows.
- Create a file called
Do this by right mouse button clicking on the new
META-INF folder, and select:
Name it context (NetBeans adds the
.xml) Select Well-formed Document Press Finish
- Edit the new document (
context.xml), and add the following:
<?xml version="1.0" encoding="UTF-8"?> <Context antiJARLocking="true" path="/app-name"/>
Replace app-name with the name of your application.
Now your in-place deployment should work. If not, make sure that the file can be read by everyone.
context.xml file is specific to Tomcat. For more information about that file, see the Tomcat documentation at