IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Services Web Java Discussion :

Déployer un Web Service


Sujet :

Services Web Java

  1. #1
    Membre confirmé
    Profil pro
    Inscrit en
    Juin 2006
    Messages
    58
    Détails du profil
    Informations personnelles :
    Localisation : Maroc

    Informations forums :
    Inscription : Juin 2006
    Messages : 58
    Par défaut Déployer un Web Service
    Bonjour,

    J’ai toujours le problème de déploiement d’un service Web, ma configuration pour le path, et catalina_home et axis home :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    C:\ENV-DEV\Tomcat 4.1\webapps\axis>echo %path%
    C:\Program Files\Java\jdk1.5.0_05\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\
    System32\Wbem;C:\Program Files\Rational\ClearQuest;C:\Program Files\Fichiers com
    muns\Teleca Shared;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Fichier
    s communs\Autodesk Shared\
    pour catalina_home:
    et axis_home:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    C:\ENV-DEV\Tomcat 4.1\webapps\axis>echo %axis_home%
    C:\ENV-DEV\Tomcat 4.1\webapps\axis\WEB-INF\lib\axis.jar;C:\ENV-DEV\Tomcat 4.1\we
    bapps\axis\WEB-INF\lib\axis-ant.jar;C:\ENV-DEV\Tomcat 4.1\webapps\axis\WEB-INF\l
    ib\commons-discovery-0.2.jar;C:\ENV-DEV\Tomcat 4.1\webapps\axis\WEB-INF\lib\comm
    ons-logging-1.0.4.jar;C:\ENV-DEV\Tomcat 4.1\webapps\axis\WEB-INF\lib\jaxrpc.jar;
    C:\ENV-DEV\Tomcat 4.1\webapps\axis\WEB-INF\lib\log4j-1.2.8.jar;C:\ENV-DEV\Tomcat
     4.1\webapps\axis\WEB-INF\lib\wsdl4j-1.5.1.jar;C:\ENV-DEV\Tomcat 4.1\webapps\axi
    s\WEB-INF
    Pour le classpath.bat si j’ajoute la ligne en rouge :

    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
    set OLD_CLASSPATH=%CLASSPATH%
    set CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\common\lib\activation.jar
    set CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\common\lib\mail.jar
    set CLASSPATH=%CLASSPATH%;%AXIS_HOME%
    set CLASSPATH=%CLASSPATH%;%AXIS_HOME%\lib\axis.jar
    set CLASSPATH=%CLASSPATH%;%AXIS_HOME%\lib\jaxrpc.jar
    set CLASSPATH=%CLASSPATH%;%AXIS_HOME%\lib\wsdl4j.jar
    set CLASSPATH=%CLASSPATH%;%AXIS_HOME%\lib\commons-discovery.jar
    set CLASSPATH=%CLASSPATH%;%AXIS_HOME%\lib\commons-logging.jar
    set CLASSPATH=%CLASSPATH%;%AXIS_HOME%\lib\saaj.jar
    set CLASSPATH=%CLASSPATH%;%AXIS_HOME%\lib\log4j-1.2.4.jar
    set CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\common\lib\xerces.jar
    set CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\common\lib\servlet-api.jar
    set CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\common\lib\naming-factory.jar
    set CLASSPATH="%CLASSPATH%"
    java org.apache.axis.client.AdminClient deploy.wsdd
    set CLASSPATH=%OLD_CLASSPATH%
    J’ai le message suivant:
    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
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    C:\ENV-DEV\Tomcat 4.1\webapps\axis>java org.apache.axis.client.AdminClient deplo
    y.wsdd
    Processing file deploy.wsdd
    Exception: 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(PlainSocketImpl.java:333)
            at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
            at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
            at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364)
            at java.net.Socket.connect(Socket.java:507)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            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.apache.axis.client.AdminClient.process(AdminClient.java:439)
            at org.apache.axis.client.AdminClient.process(AdminClient.java:404)
            at org.apache.axis.client.AdminClient.process(AdminClient.java:410)
            at org.apache.axis.client.AdminClient.process(AdminClient.java:320)
            at org.apache.axis.client.AdminClient.main(AdminClient.java:463)
    
            {http://xml.apache.org/axis/}hostname:titanium
    
    
    C:\ENV-DEV\Tomcat 4.1\webapps\axis>set CLASSPATH=C:\Program Files\Java\jdk1.5.0_
    05
    sinon si j’enlève la ligne et je le mets dans la ligne de commande dos j’ai
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    C:\ENV-DEV\Tomcat 4.1\webapps\axis>java org.apache.axis.client.AdminClient deploy.wsdd
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/client/AdminClient
    Sachant que dans le lib de tomcat j’ai bien la classe org.apache.axis.client.AdminClient dans axis.jar.

    Quand je visualise mon service j'ai :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    AXIS error No service is available at this URL
    J’espère que j’ai détaillé mon problème merci d'avance pour votre aide.

  2. #2
    Membre chevronné Avatar de supernova
    Profil pro
    Développeur informatique
    Inscrit en
    Juillet 2005
    Messages
    447
    Détails du profil
    Informations personnelles :
    Localisation : France, Moselle (Lorraine)

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Juillet 2005
    Messages : 447
    Par défaut
    Salut,

    Peux tu faire un display de ton fichier wsdd! ta classe ws est t'elle bien sous tomcat webapps axis web-inf classes ?

  3. #3
    Membre Expert
    Avatar de alexismp
    Homme Profil pro
    Inscrit en
    Janvier 2005
    Messages
    1 503
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Janvier 2005
    Messages : 1 503
    Par défaut
    Avec JAX-WS, déployer ça dans un serveur (war, ear):
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
     
    @WebService
    public class MonService {
       public void ping() {
       }
    }
    génère les stubs et le WSDL à la volée. Zéro souci.

Discussions similaires

  1. déployer un Web Service autonome
    Par dams78 dans le forum Services Web
    Réponses: 1
    Dernier message: 06/12/2008, 11h55
  2. comment déployer un web service
    Par inno007 dans le forum Services Web
    Réponses: 1
    Dernier message: 29/07/2008, 15h13
  3. Déployer un Web Service avec JbossWs sur Tomcat
    Par nicolemans72 dans le forum Wildfly/JBoss
    Réponses: 2
    Dernier message: 05/06/2007, 22h04
  4. Déployer un web service avec axis
    Par maxinformatique dans le forum Services Web
    Réponses: 16
    Dernier message: 16/04/2007, 14h27
  5. Réponses: 3
    Dernier message: 08/03/2007, 10h16

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo