web services - Deploy Maven RESTful webservice project with Glassfish to Ubuntu server -
first of all, created restful webservice maven project. when browse http://localhost:8080/jsonservice/vehiclegroups receive list vehiclegroups. working when run in netbeans.
now have following question: what steps deploy .jar ubuntu server?
so created jar dependencies source. defined main class 1 empty because code inside methods called when visiting specific path.
when run .jar file, executes code inside main class , stops. how make sure runs inside netbeans , receive data when browsing urls?
do have install glassfish server on ubuntu , run jar? want program keep running , answer path requests.
thanks!
i got working! install glassfish on ubuntu , browse admin panel. go applications > deploy > add .war file.
you have put mysql-connector-java-5.1.23-bin.jar inside global lib folder of glassfish avoid errors.
everything works fine after that.
cheers!
Comments
Post a Comment