Deploying the HTTP Monitor for a Web Module

See Also

To use the HTTP Monitor to assist with debugging a web module, perform the following configuration steps.

Tip If you are using a server that is managed by a plugin that is bundled with the IDE, you do not need to perform these steps. However, you should ensure that the HTTP Monitor is enabled for the server by right-clicking the server from the Runtime window and choosing Properties from the contextual menu. The Enable HTTP Monitor checkbox in the property sheet must be selected.

To use the HTTP Monitor:

  1. Copy IDE-install-directory/modules/schema2beans.jar and IDE-install-directory/modules/ext/httpmonitor.jar to your web module's WEB-INF/lib directory.
  2. Add the filter declaration that is appropriate for the Servlet version to the top of your web module's WEB-INF/web.xml file. Filters and filter mapping entries must come first in a deployment descriptor.

Your web module is now ready to use the HTTP Monitor for development and debugging purposes.

Tip You can have more than one IDE monitoring the data records from a web module by adding a second init-param entry as follows:
  <init-param>
  <param-name>netbeans.monitor.register</param-name>
  <param-value>
  other-IDE-host:other-HTTP-server-port,
  another-IDE-host:another-HTTP-server-port</param-value>
  </init-param>
Tip When you deploy the web module to a production server, remember to remove the jar files from your WEB-INF/lib directory and remove the filter and filter mapping declarations from the web module's deployment descriptor.
See Also
Viewing HTTP Monitor Data Records
Saving HTTP Monitor Data Records
Deleting HTTP Monitor Data Records
Editing and Replaying Requests

Legal Notices