Développer un développement de services Web Java avec JAX-WS et publier un point final …
public static void main(String[]args) { Endpoint.publish("http://localhost:8080/ws/hello", new WallStreetImpl()); }
1. Problème
Il frappe le message d’erreur suivant.
Exception in thread "main" com.sun.xml.internal.ws.server.ServerRtException: Server Runtime Error: java.net.BindException: Address already in use: bind ... Caused by: java.net.BindException: Address already in use: bind at sun.nio.ch.Net.bind(Native Method) ...
2. Solution
Un message d’erreur très commun, cela signifie que l’adresse (généralement le numéro de port) est déjà utilisée par une autre application.
public static void main(String[]args) { Endpoint.publish("http://localhost:1234/ws/hello", new WallStreetImpl()); }
Référence
-
lien://linux/linux-quelle-application-utilise-le-port-8080/[Linux - qui
l’application utilise le port 8080]
lien://tag/jax-ws/[jax-ws]lien://tag/web-services/[services web]