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 :

[AXIS/WAS6.0] déployer un ws ?!?


Sujet :

Services Web Java

  1. #1
    Membre à l'essai
    Profil pro
    Inscrit en
    Janvier 2007
    Messages
    19
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2007
    Messages : 19
    Points : 17
    Points
    17
    Par défaut [AXIS/WAS6.0] déployer un ws ?!?
    bonjour,
    voilà le problème: je veux déployer un ws sur WAS6.0 en remplacement d'un EJB.
    Je développe avec Eclipse 3.2 et WTP 1.5.
    WTP m'a généré un beau fichier deploy.wsdd, mais je ne sais qu'en foutre.

    j'ai tenter de le copier en web-inf/server-conf.wsdd, mais je me prends un targetService is null quand j'essaye d'appeler le service. Si je ne fais pas cette copie, l'url http://monServeur/manApp/services/monService ne répond pas (No service is available at this URL).

    qu'est-ce que j'ai raté ?

    merci de votre aide !

  2. #2
    Futur Membre du Club
    Profil pro
    Inscrit en
    Avril 2005
    Messages
    8
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2005
    Messages : 8
    Points : 8
    Points
    8
    Par défaut
    bonjour

    un wsdd est un descripteur de deploiement
    tu dois l'appeller avec
    java org.apache.axis.client.AdminClient MonWsdd.wsdd (amuse toi bien avec les librairies nécessaires y'en a un paquet )

    assure toi auparavant d'avoir copié le .class correspondant a ton ws et de l'avoir mis dans WEB-INF/classes

    la tu pourras aller a l'@ localhost:TonPortTomcat/axis/services pour voir si tout s'est bien passé...

    voila

  3. #3
    Membre à l'essai
    Profil pro
    Inscrit en
    Janvier 2007
    Messages
    19
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2007
    Messages : 19
    Points : 17
    Points
    17
    Par défaut
    mais mais, c'est nul !!

    y a pas moyen de déployé le service automatiquement ? Axis de propose pas une servlet pour déployer les services au chargement de l'application ?
    bon, bha sinon, je vais essayer de m'en faire une, mais je suis surpris.

    merci pour ta réponse.

  4. #4
    Membre confirmé Avatar de Jabbal'H
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Octobre 2004
    Messages
    403
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 43
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Octobre 2004
    Messages : 403
    Points : 580
    Points
    580
    Par défaut
    bah le fichier wsdd te permet déjà de mettre les méthodes visible, donc Axis il ne peut pas savoir quel méthodes tu veux rendre visible, pas mal d'autre paramètre sont possible de plus, autant de chose qu'axis ignore.

    Peut etre que ce serait possible avec les annotations si je ne m'abuse
    " Je préfère comprendre les gens qui ne me comprennent pas "

  5. #5
    Membre à l'essai
    Profil pro
    Inscrit en
    Janvier 2007
    Messages
    19
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2007
    Messages : 19
    Points : 17
    Points
    17
    Par défaut
    non, mais je que j'aurai voulu, c'est que axis trouve les wsdd à déployer tout seul, comme un grand. Parce que bon, à chaque fois que le serveur redémarre, s'il faut ré-inscrire les wsdd, c'est quand même pas top.

    Mais c'est bon, j'ai trouvé comment faire.

    J'ai un script Ant qui me génère un server-conf.wsdd dans WEB-INF avec tous les wsdd présents dans mon projet.
    Code xml : 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
    <target name="majSrv" description="--&gt; MAJ axis">
    	<pathconvert property="wsdd.list">
    		<path>
    			<fileset description="Liste des fichiers wsdd"
    				dir="${web-inf.dir}"
    				includes="**/deploy.wsdd"/>
    		</path>
    	</pathconvert>
    	<java fork="true" dir="${web-inf.dir}"
    		classname="org.apache.axis.utils.Admin">
    		<classpath>
    			<fileset dir="${path.to.axis.lib}" includes="*"/>
    		</classpath>
    		<arg value="server" />
    		<arg value="${wsdd.list}"/>
    	</java>
    </target>

  6. #6
    Nouveau Candidat au Club
    Inscrit en
    Janvier 2007
    Messages
    1
    Détails du profil
    Informations forums :
    Inscription : Janvier 2007
    Messages : 1
    Points : 1
    Points
    1
    Par défaut un gros probleme avec axis
    bonjour , j'ais un probleme pour deployer mon service web sous axis , je m'explique:
    quand je fais la commande :C:\Tomcat 5.5\webapps\axis\WEB-INF\classes>java org.apache.axis.client.AdminClient deploy.wsdd

    j'ais cette reponce:
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/clien
    t/AdminClient

    je ne sais pas d'ou vien le probleme!!! j'ais verifié mes lib, j'ais defini une variable d'environement axis_libs qui contien ces bib:

    %CATALINA_HOME%\webapps\axis\WEB-INF\lib\activation.jar;%CATALINA_HOME%\webapps\axis\WEB-INF\lib\axis.jar;%CATALINA_HOME%webapps\axis\WEB-INF\lib\axis-ant.jar;%CATALINA_HOME%webapps\axis\WEB-INF\lib\commons-discovery-0.2.jar;%CATALINA_HOME%webapps\axis\WEB-INF\lib\commons-logging-1.0.4.jar;%CATALINA_HOME%webapps\axis\WEB-INF\lib\jaxrpc.jar;%CATALINA_HOME%webapps\axis\WEB-INF\lib\log4j-1.2.8.jar;%CATALINA_HOME%webapps\axis\WEB-INF\lib\saaj.jar;%CATALINA_HOME%webapps\axis\WEB-INF\lib\servelet.jar;%CATALINA_HOME%webapps\axis\WEB-INF\lib\wsdl4j-1.5.1.jar


    et qdj'applique la commande :
    java -cp %axis_libs% org.apache.axis.client.AdminClient deploy.wsdd
    je recois cette reponce:

    Exception in thread "main" java.lang.NoClassDefFoundError: 5/5webapps\axis\WEB-INF\lib\activation/jar;C:\Tomcat


    aidez moi SVP je suis perdue

  7. #7
    Membre du Club
    Profil pro
    Inscrit en
    Août 2004
    Messages
    34
    Détails du profil
    Informations personnelles :
    Âge : 39
    Localisation : Belgique

    Informations forums :
    Inscription : Août 2004
    Messages : 34
    Points : 41
    Points
    41
    Par défaut
    C'est étrange , moi avec Eclipse 3.1 et Wtp je sais tester mes web Service en un click . Simplement en cliquant sur le wdsl généré et faire test .

  8. #8
    Membre confirmé Avatar de Jabbal'H
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Octobre 2004
    Messages
    403
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 43
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Octobre 2004
    Messages : 403
    Points : 580
    Points
    580
    Par défaut
    Bizarre pour ma part meme en redemarant TOMCAT mes services web sont toujours présent

    pour le problele de l'exception, il y a surement un pb dans le path, perso j'utilise un bat tout bete ( issus du tuto du site je crois )
    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
     
    REM on fixe JAVA_HOME et PATH
    REM set JAVA_HOME=D:\Logiciels\Java\jdk1.5.0_01
    REM set PATH=%JAVA_HOME%\bin;%PATH%
     
    REM on fixe le classpath:
    REM set AXIS_HOME=c:\axis
    set AXIS_HOME=c:\axis
    set AXIS_LIB=%AXIS_HOME%\lib
    set AXIS_CLASSPATH=%AXIS_LIB%\axis.jar
    set AXIS_CLASSPATH=%AXIS_CLASSPATH%;%AXIS_LIB%\axis-ant.jar
    set AXIS_CLASSPATH=%AXIS_CLASSPATH%;%AXIS_LIB%\commons-discovery-0.2.jar
    set AXIS_CLASSPATH=%AXIS_CLASSPATH%;%AXIS_LIB%\commons-logging-1.0.4.jar
    set AXIS_CLASSPATH=%AXIS_CLASSPATH%;%AXIS_LIB%\jaxrpc.jar
    set AXIS_CLASSPATH=%AXIS_CLASSPATH%;%AXIS_LIB%\log4j-1.2.8.jar
    set AXIS_CLASSPATH=%AXIS_CLASSPATH%;%AXIS_LIB%\saaj.jar
    set AXIS_CLASSPATH=%AXIS_CLASSPATH%;%AXIS_LIB%\wsdl4j-1.5.1.jar
    set AXIS_CLASSPATH=%AXIS_CLASSPATH%;%AXIS_LIB%\xerces.jar
     
    REM ajuster les chemins vers activation.jar et mail.jar
    set AXIS_CLASSPATH=%AXIS_CLASSPATH%;%AXIS_LIB%\mail.jar
    set AXIS_CLASSPATH=%AXIS_CLASSPATH%;%AXIS_LIB%\activation.jar
     
    java -classpath %AXIS_CLASSPATH%; org.apache.axis.wsdl.WSDL2Java SqlCtx.wsdl
    Wtp ? faut que je jette u coup d'oeil à cà

    En passant personne ne saurait ce que signifie l'option :
    --server-side --skeletonDeploy true
    pour le WSDL ?
    " Je préfère comprendre les gens qui ne me comprennent pas "

  9. #9
    Membre à l'essai
    Profil pro
    Développeur Web
    Inscrit en
    Avril 2004
    Messages
    17
    Détails du profil
    Informations personnelles :
    Âge : 41
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Avril 2004
    Messages : 17
    Points : 21
    Points
    21
    Par défaut
    exporte le projet entier en WAR et apres dans la page d'admin des appli de tomcat tu peux uploader le WAR. et voila c fini

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

    Informations forums :
    Inscription : Juin 2006
    Messages : 58
    Points : 43
    Points
    43
    Par défaut Pb de deploiement d'un service web
    Bonjour,

    Lors de deploiement de mon service web j'ai l'erreur suivante:
    java.lang.NoClassDefFoundError: deploy/wsdd
    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
     
    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 -cp %CLASSPATH% org.apache.axis.client.AdminClient deploy.wsdd
    set CLASSPATH=%OLD_CLASSPATH%
    pour mon fichier deploy.wsdd:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    <deployment xmlns="http://xml.apache.org/axis/wsdd/"
    xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
    <service name="sommer" style="java:RPC">
    <parameter name="className" value="sommer"/>
    <parameter name="allowedMethods" value="*"/>
    </service>
    </deployment>
    je le met dans le repertoire axis avec le fichier sommer.jws
    Merci d'avance

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

Discussions similaires

  1. [Axis] Problème pour déployer mon WebService
    Par verbose dans le forum Services Web
    Réponses: 1
    Dernier message: 01/07/2010, 17h44
  2. Réponses: 0
    Dernier message: 11/03/2010, 14h09
  3. Comment déployer un webservice Axis sur un serveur distant
    Par lilisweety dans le forum Services Web
    Réponses: 1
    Dernier message: 31/07/2009, 18h52
  4. [Web Services] [Axis]déployer un WS avec Spring et axis
    Par totoranky dans le forum Spring
    Réponses: 4
    Dernier message: 29/05/2007, 14h40
  5. Déployer un web service avec axis
    Par maxinformatique dans le forum Services Web
    Réponses: 16
    Dernier message: 16/04/2007, 14h27

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