I was recently faced with a slightly different problem, of how to serialize and deserialize polymorphic objects using JSON, and as I've now successfully fixed the problem I wanted to share with you how I did it.
This blog post will demonstrate how to customise the NetBeans Installer which can be used when creating NetBeans platform based applications. First of all you will need to create a new Maven based NetBeans application project. You can get full instructions on how to create a project here. Just give your project a simple name or even complete the full tutorial and then follow this guide.
This short blog post explains how to install Jetty Web Server from the tar archive on Centos 6.
Installing Jetty is quite straight forward and basically requires you to extract the tar archive to a location. You may then wish to create a separate system user to run the server. I chose to create a system user specifically for this task, it also helps restrict permissions.