Bonjour,

J'ai un web service qui tourne sous jboss 6.1.0. Ce web service est accessible par le port 18080 et 18443.
Maintenant, j'aimerais désactiver l'accès au port 18080. J'ai donc suivi ce lien :
http://cookbooks.ca.com/cacontrolmin...gement-server/
Cela fonctionne. Je peux seulement accéder à mon web service avec le port 18443.

Seulement, lorsque je démarre jboss 6.1.0, j'ai les logs suivants :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
 
INFO  [MetadataBuilder] Add Service
 id=DiscoverDevices
 address=http://localhost:8080/soap/services/DiscoverDevices
 implementor=com.projet.soap.discoverdevices.DiscoverDevicesDoWork
 invoker=org.jboss.wsf.stack.cxf.InvokerJSE
 serviceName={http://projet/DiscoverDevices}DiscoverDevicesService
 portName={http://projet/DiscoverDevices}DiscoverDevices
 wsdlLocation=null
 mtomEnabled=false
INFO:  Creating Service {http://projet/DiscoverDevices}DiscoverDevicesService from WSDL: WEB-INF/WSDL/DiscoverDevices.wsdl
INFO:  Setting new service endpoint address in wsdl: https://localhost:18443/soap/services/DiscoverDevices
INFO:  Setting the server's publish address to be http://localhost:8080/soap/services/DiscoverDevices
Le web service est à l'adresse: http://localhost:8080, hors il ne fonctionne pas avec ce port. Pourquoi me met-il l'adresse avec ce port ?

Voici mon code :
J'ai un WSDL où je précise le port de mon service :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
  <wsdl:service name="DiscoverDevicesService">
    <wsdl:port binding="impl:DiscoverDevicesSOAPBinding" name="DiscoverDevices">
      <wsdlsoap:address location="https://localhost:18443/soap/services/DiscoverDevices"/>
    </wsdl:port>
  </wsdl:service>
Et le code java de mon WSDL avec pour en tête :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
@javax.jws.WebService(
		endpointInterface="com.projet.soap.discoverdevices.DiscoverDevices",
		serviceName="DiscoverDevicesService",
		targetNamespace="http://projet/DiscoverDevices",
		name="DiscoverDevices",
		portName="DiscoverDevices",
		wsdlLocation="WEB-INF/WSDL/DiscoverDevices.wsdl"
		)
 
public class DiscoverDevicesDoWork implements DiscoverDevices { 
(Blabla)
}
Voici mon server.xml :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<Service name="jboss.web">
 
      <!-- A HTTP/1.1 Connector on port 18080 -->
      <!-- <Connector protocol="HTTP/1.1" port="${jboss.web.http.port}" address="${jboss.bind.address}" 
         redirectPort="${jboss.web.https.port}" /> -->
 
      <!-- A AJP 1.3 Connector on port 18009 -->
      <Connector protocol="AJP/1.3" port="${jboss.web.ajp.port}" address="${jboss.bind.address}"
         redirectPort="${jboss.web.https.port}" />
 
      <!-- SSL/TLS Connector configuration using the admin devl guide keystore -->
      <Connector protocol="HTTP/1.1" SSLEnabled="true" 
           port="18443" address="${jboss.bind.address}"
           scheme="https" secure="true" clientAuth="false" 
           keystoreFile="certif.keystore"
           keystorePass="test" sslProtocol = "TLS" />