Quickstart Debugging Java Servlet WAR running on Jetty using Rookout
A sample application for debugging Java Servlet WAR running on Jetty using Rookout.
Before following this guide we recommend reading the basic Java + Rookout guide
Integrate Rookout into your Java application
To integrate Rookout into your existing Java application, follow these steps:
- Download the Rookout Java Agent
- Add Rookout as a javaagent to the
start.inion windows) configuration file as the following:
- Set your Rookout Token as the
ROOKOUT_TOKENenvironment variable, or append the server.ini (after the javaagent):
Run your application on an existing Jetty server
- Package your application as a WAR:
- Deploy it to your Jetty server:
cp jetty-helloworld.war /var/lib/jetty/webapps/
- Browse to the app at /jetty-helloworld
Use Docker instead
- Build the Dockerfile in this repo and run it to start a Jetty server complete with the sample WAR running:
docker build -t rookout-deployment-example/java-jetty-war .
docker run -e ROOKOUT_TOKEN=<your token> -p 8080:8080 --rm rookout-deployment-example/java-jetty-war
- Browse to the app at http://localhost:8080/jetty-helloworld/
Go to app.rookout.com and start debugging !