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 :

Problème de déploiement du service web


Sujet :

Services Web Java

  1. #1
    Membre du Club
    Inscrit en
    Mai 2008
    Messages
    141
    Détails du profil
    Informations forums :
    Inscription : Mai 2008
    Messages : 141
    Points : 60
    Points
    60
    Par défaut Problème de déploiement du service web
    Salut à tous,

    Voilà je veux déployer un service web(sommer), j'utilise Tomcat et Axis, j'ai créé et copié mon fichier sommer.jws dans le webapps/axis
    le problème est que quand je lance axis localhost:8080/axis/sommer.jws
    mon service n'y est pas?

    J'ai raté un truc c'est sûr....quelqu'un pourrait il m'aider, je bloque grave !!!!
    Il est conseillé de SE DOCUMENTER parfois

  2. #2
    Expert éminent sénior
    Avatar de sinok
    Profil pro
    Inscrit en
    Août 2004
    Messages
    8 765
    Détails du profil
    Informations personnelles :
    Âge : 43
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Août 2004
    Messages : 8 765
    Points : 12 977
    Points
    12 977
    Hey, this is mine. That's mine. All this is mine. I'm claiming all this as mine. Except that bit. I don't want that bit. But all the rest of this is mine. Hey, this has been a really good day. I've eaten five times, I've slept six times, and I've made a lot of things mine. Tomorrow, I'm gonna see if I can't have sex with something.

  3. #3
    Membre habitué Avatar de hammag
    Profil pro
    Inscrit en
    Février 2006
    Messages
    511
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2006
    Messages : 511
    Points : 145
    Points
    145
    Par défaut
    salut tout-le-monde,

    moi aussi j'ai suivi les instructions de ce tutto,
    jusqu'à le point IV-C. Déploiement du web service
    j'ai pas compris la ligne de commande "java org.apache.axis.client.AdminClient deploy.wsdd"

    c quoi org.apache.axis.client.AdminClient, une librairie ou autre chose ?
    tout ce que j'ai trouvé c'est la classe AdminClient.class dans le répertoire C:\ProgramFiles\ApacheSoftwareFoundation\Tomcat6.0\webapps\axis\WEB-INF\classes\samples\transport\tcp\

  4. #4
    Membre habitué
    Profil pro
    Inscrit en
    Mars 2007
    Messages
    239
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2007
    Messages : 239
    Points : 173
    Points
    173
    Par défaut
    AdminClient.class est dans axis.jar,, pour déployer votre web service,, il suffit de créer un un petit fichier.bat,, son contenu est:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    set CLASSPATH="C:\Tomcat 5.5\webapps\axis\WEB-INF\lib\*"
     
    java -cp %CLASSPATH% java org.apache.axis.client.AdminClient deploy.wsdd
     
    pause
    et le tour est joué,,,,

  5. #5
    Membre habitué Avatar de hammag
    Profil pro
    Inscrit en
    Février 2006
    Messages
    511
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2006
    Messages : 511
    Points : 145
    Points
    145
    Par défaut
    excusez-moi de ma question, mais ce fichier .bat je le mets ou ? (dans quel répertoire)

  6. #6
    Membre habitué
    Profil pro
    Inscrit en
    Mars 2007
    Messages
    239
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2007
    Messages : 239
    Points : 173
    Points
    173
    Par défaut
    moi je l'ai mit dans webapps\axis\WEB-INF,,

  7. #7
    Membre habitué Avatar de hammag
    Profil pro
    Inscrit en
    Février 2006
    Messages
    511
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2006
    Messages : 511
    Points : 145
    Points
    145
    Par défaut
    ok,

    mais moi quand je lance la ligne de commande java -cp %CLASSPATH% java org.apache.axis.client.AdminClient deploy.wsdd je reçois 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
    C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\axis\WEB-INF\lib>java org.apache.axis.client.AdminClient
    deploy.wsdd
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/client/AdminClient
    Caused by: java.lang.ClassNotFoundException: org.apache.axis.client.AdminClient
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    apparemment il ne trouve pas la classe recherchée ..

    as-tu une idée ?

  8. #8
    Membre habitué
    Profil pro
    Inscrit en
    Mars 2007
    Messages
    239
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2007
    Messages : 239
    Points : 173
    Points
    173
    Par défaut
    il faut faire attention aux espaces:

    voici la solution:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    set CLASSPATH="C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\axis\WEB-INF\lib\*"
    il faut mettre ton adresse entre ""

  9. #9
    Membre habitué Avatar de hammag
    Profil pro
    Inscrit en
    Février 2006
    Messages
    511
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2006
    Messages : 511
    Points : 145
    Points
    145
    Par défaut
    enfaite, je n'ai pas lancer la commande à partir du fichier .bat mais sur une ligne de la commande

    > java org.apache.axis.client.AdminClient deploy.wsdd

  10. #10
    Membre habitué Avatar de hammag
    Profil pro
    Inscrit en
    Février 2006
    Messages
    511
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2006
    Messages : 511
    Points : 145
    Points
    145
    Par défaut
    Bonjour,
    je suis vraiment bloqué dans cette étape, j'ai crée un fichier .bat avec les chemins de tous les jar nécessaires. l'exécution de ce .bat ne donne rien comme résultat.

    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
     
    set OLD_CLASSPATH=%CLASSPATH%
    set CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\webapps\axis\WEB-INF\lib\activation.jar
    set CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\webapps\axis\WEB-INF\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%\lib\servlet-api.jar
    set CLASSPATH="%CLASSPATH%"
    java - CLASSPATH="%CLASSPATH%" org.apache.axis.client.AdminClient deploy.wsdd
    set CLASSPATH=%OLD_CLASSPATH%
    quelqu'un peux-t-il m'aider stttp?

  11. #11
    Membre habitué Avatar de hammag
    Profil pro
    Inscrit en
    Février 2006
    Messages
    511
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2006
    Messages : 511
    Points : 145
    Points
    145
    Par défaut
    j'ai essayé d'exécuter la commande java org.apache.axis.client.AdminClient deploy.wsdd dans une fenêtre dos.
    Je reçois l'erreur suivante :
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/client/AdminClient
    Caused by: java.lang.ClassNotFoundException: org.apache.axis.client.AdminClient

    apparement le problème est en relation avec le axis.jar.

    j'ai exécuté cette commande à partir du répertoire C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\axis\WEB-INF\lib où j'ai mis le fichier deploy.wsdd, ma classe somme.class et le jar axis.jar

  12. #12
    Membre habitué
    Profil pro
    Inscrit en
    Mars 2007
    Messages
    239
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2007
    Messages : 239
    Points : 173
    Points
    173
    Par défaut
    je t'ai donné la solution mais apparement tu sais s'enservir,,,revoila:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
     
    set CLASSPATH="C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\axis\WEB-INF\lib\*"
     
    java -cp %CLASSPATH% java org.apache.axis.client.AdminClient deploy.wsdd
     
    pause

  13. #13
    Membre habitué Avatar de hammag
    Profil pro
    Inscrit en
    Février 2006
    Messages
    511
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2006
    Messages : 511
    Points : 145
    Points
    145
    Par défaut
    merci madjidri,

    enfin et après pas mal de recherches j'ai réussi et déployé mon service

    c'était mon fichier .bat qui ne fonctionne pas correctement.
    j'ai effectué les set CLASSPATH sur la ligne de commande dos pour tous les jar nécessaires.


  14. #14
    Futur Membre du Club
    Inscrit en
    Décembre 2010
    Messages
    10
    Détails du profil
    Informations forums :
    Inscription : Décembre 2010
    Messages : 10
    Points : 6
    Points
    6
    Par défaut You don't have permission to access /axis/services/AdminService
    j'ai comme vous avez indiqué mais je butte sur cette erreur

    Processing file deploy.wsdd
    Exception: AxisFault
    faultCode: {http://xml.apache.org/axis/}HTTP
    faultSubcode:
    faultString: (403)Forbidden
    faultActor:
    faultNode:
    faultDetail:
    {}:return code: 403
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html><head>
    <title>403 Forbidden</title>
    </head><body>
    <h1>Forbidden</h1>
    <p>You don't have permission to access /axis/services/AdminService
    on this server.</p>
    </body></html>

    {http://xml.apache.org/axis/}HttpErrorCode:403

    Appuyez sur une touche pour continuer...


    quelqu'un peut il m'aider?

    merci

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. problème de déploiement du service web
    Par y_chafaqi dans le forum Services Web
    Réponses: 0
    Dernier message: 30/11/2009, 20h26
  2. Probléme de déploiement d'un web service Delphi
    Par nidou01 dans le forum Web & réseau
    Réponses: 0
    Dernier message: 09/07/2009, 12h51
  3. Déploiement de services web
    Par John Constantine dans le forum Services Web
    Réponses: 1
    Dernier message: 22/10/2008, 17h11
  4. problème d'accès au service web
    Par Jean-Claude Dusse dans le forum Services Web
    Réponses: 1
    Dernier message: 09/09/2008, 09h37
  5. Problème de deployement des services web sur eclipse
    Par charguimed1 dans le forum Services Web
    Réponses: 3
    Dernier message: 08/08/2008, 16h53

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