I wrote this in November of last year, I didn’t have time to share it :(.
- Download lastest Jetty stable version here
- Uncompress it (tar -zxvf jetty-distribution-9.1.0.v20131115.tar.gz)
- cd jetty-distribution-9.1.0.v20131115/
- Add the –module=jmx to start.ini archive (echo –module=jmx >> start.ini)
- Setup the Default Jetty Server Local configuration
-
Click configure and add the path to the folder you just uncompressed
-
Click Ok and put the following:
VM Options: -Dcom.sun.management.jmxremote= -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
Jetty Server Settings: select etc/jetty-jmx.xml and etc/jetty.xml
-
Now just add your new Jetty configuration, for that just click on the plus sign
and search for Jetty Server Local
- Go to deployment tab and add your war(s) file(s)
- Add the path you want to use
- Add the name you want
- Click ok
That’s all, hope this is useful!