Bonjour à tous,

j'essaie de faire fonctionner un Web Service où il y a une connection en base.

J'ai importé le driver JDBC dans WEB_INF/lib de axis et dans la librairie dans mon projet Eclipse : mysql-connector-java-3.1.12.jar

Je lance le serveur MySQL à la main (mysqld --console) d'un coté, et je vérifie avec la vue quantumDB sous Eclipse que j'ai bien accès à cette base.

Cependant lorsque je lance le WS (avec un fichier .bat qui fait toutes les opérations qui vont bien) j'obtiens l'erreur suivante :

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
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
 
Exception in thread "main" AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: java.net.ConnectException: Connection refused: connect
 faultActor:
 faultNode:
 faultDetail:
        {http://xml.apache.org/axis/}stackTrace:java.net.ConnectException: Conne
ction refused: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(Unknown Source)
        at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
        at java.net.PlainSocketImpl.connect(Unknown Source)
        at java.net.SocksSocketImpl.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSoc
ketFactory.java:153)
        at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSoc
ketFactory.java:120)
        at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:1
91)
        at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.ja
va:404)
        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
 
        at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
y.java:32)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
        at org.apache.axis.client.Call.invoke(Call.java:2767)
        at org.apache.axis.client.Call.invoke(Call.java:1792)
        at org.ploteus.client.PLOTEUSQueryServiceClient.main(PLOTEUSQueryService
 
...
 
Client.java:99)
donc je pense que j'ai mal paramétré quelque chose ou sauté une étape.

Si vous pouviez m'aider, ça serait sympa

merci ! ciao