I had a similar problem. In fact, the project worked with NetBeans and local GlassFish, but when I deployed to GlassFish 4.1.1 (on amazon linux), the "webservices" engine did not start. I followed the previous answer (mposadar form) and simply added to the class initialization block:
@WebService(endpointInterface = "service.ITranslate") public class Translate implements ITranslate { { try { URL url = new URL("http://MY_INSTANCE.us-west-2.compute.amazonaws.com:8080//Translate/TranslateService?wsdl"); } catch (MalformedURLException ex) { Logger.getLogger(Translate.class.getName()).log(Level.SEVERE, null, ex); } } ...
After assembly and deployment, the "webservices" option also works on the remote server, and a link to the "View Endpoint" and wisdl is also available.
source share