First of all, I successfully created a RESTful webservice as Maven project. When I browse to http://localhost:8080/JsonService/vehiclegroups I receive a list with vehiclegroups. This is working perfectly when I run it in Netbeans.
Now I have the following question: What are the steps to deploy my .jar to an ubuntu server?
So I already created a jar with dependencies source. I defined a main class but this one is empty because all my code is inside the methods that are called when visiting a specific path.
When I run my .jar file, it only executes the code inside the main class and than it stops. How do I make sure it runs like inside Netbeans and receive data when browsing to the urls?
Do I have to install a Glassfish server on the Ubuntu and then run the jar? I want the program to keep running and answer all the path requests.
Thanks!