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

ANT Java Discussion :

[tomcat] manager tomcat & ant


Sujet :

ANT Java

  1. #1
    Membre à l'essai
    Inscrit en
    Mars 2002
    Messages
    33
    Détails du profil
    Informations forums :
    Inscription : Mars 2002
    Messages : 33
    Points : 24
    Points
    24
    Par défaut [tomcat] manager tomcat & ant
    bonjour,

    j'ai besoin d'arrêter et de redemarrer à intervalle régulier (toutes les nuits) une application qui tourne sous tomcat 4.1.27 sur un serveur Linux.
    je passe donc par le manager grâce à un browser.

    mais je souhaite automatiser cette manipulation et je cherche donc une solution basée sur un script que je pourrais programmer dans mes taches CRON.

    J'ai trouvé une solution : j'ai un script .sh qui appelle un script ant.
    par contre, je débute en Ant et il me reste un problème
    lorsque j'appelle mon script ant.sh qui appelle mon script ant, la sortie se fait dans ma console linux et finit par "build failed" alors qu'a priori mon application s'est bien arrêté.

    voici mon script .sh :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
     
    export ANT_HOME=/usr/local/temp/ant1.6.5
    export JAVA_HOME=/usr/local/j2sdk1.4.1_07
    export PATH=${PATH}:${ANT_HOME}/bin
     
    ant -buildfile /usr/local/bin/build.xml stop
    et voici mon fichier build.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
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
     
    <project name="ManageBoard" default="reload" basedir=".">
     
    <!-- Configure properties to access the Manager application -->
    <property name="tomcat.manager.url" value="http://localhost:8080/manager/html"/>
    <property name="tomcat.manager.username" value="tomcat"/>
    <property name="tomcat.manager.password" value="tomcat"/>
    <property name="name" value="jahia"/>
    <property name="tomcat.home" value="/usr/local/tomcat4.1.27"/>
     
     
    <!-- Configure the custom Ant tasks for the Manager application -->
       <taskdef name="stop" classname="org.apache.catalina.ant.StopTask">
           <classpath>
               <path location="${tomcat.home}/server/lib/catalina-ant.jar"/>
           </classpath>
       </taskdef>
     
       <target name="stop" description="Stop Tomcat application">
           <stop url="${tomcat.manager.url}"
                    username="${tomcat.manager.username}"
                    password="${tomcat.manager.password}"
                    path="/${name}"/>
       </target>
     
    </project>

  2. #2
    ego
    ego est déconnecté
    Rédacteur

    Homme Profil pro
    Architecte de système d'information
    Inscrit en
    Juillet 2004
    Messages
    1 883
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 55
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Architecte de système d'information
    Secteur : Finance

    Informations forums :
    Inscription : Juillet 2004
    Messages : 1 883
    Points : 3 510
    Points
    3 510
    Billets dans le blog
    2
    Par défaut
    c'est quoi le message d'erreur ?

    pour mettre les logs dans un fichier, tu peux faire ceci

    ant -buildfile /usr/local/bin/build.xml stop 2>&1 > /tmp/ant.log

    Regardes ensuite le fichier /tmp/ant.log

  3. #3
    Membre averti

    Profil pro
    Inscrit en
    Mars 2007
    Messages
    392
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2007
    Messages : 392
    Points : 439
    Points
    439
    Par défaut
    Bonjour,
    Je rencontre le même problème.
    build.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
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <project name="Recette" default="dist" basedir=".">
    	<property name="project" value="xxx"/>
    	<property name="tomcat.manager.url" value="http://xxxxx:8080/manager/html"/>
    	<property name="tomcat.manager.username" value="aaaa"/>
    	<property name="tomcat.manager.password" value="bbbb"/>
    	<property name="name" value="recette"/>
    	<property name="tomcat.home" value="\\aaaa\Apache Software Foundation\Tomcat 4.1"/>
     
     
    	<!-- Configure the custom Ant tasks for the Manager application -->
    	<taskdef name="stop" classname="org.apache.catalina.ant.StopTask">
    		<classpath>
    			<path location="${tomcat.home}/server/lib/catalina-ant.jar"/>
    		</classpath>
    	</taskdef>
    	<taskdef name="start" classname="org.apache.catalina.ant.StartTask">
    		<classpath>
    			<path location="${tomcat.home}/server/lib/catalina-ant.jar"/>
    		</classpath>
    	</taskdef>
     
    	<target name="stop" description="Stop Tomcat application">
    		<stop url="${tomcat.manager.url}"
    			username="${tomcat.manager.username}"
    			password="${tomcat.manager.password}"
    			path="/${name}"/>
    	</target>
    	<target name="start" description="Start Tomcat application">
    		<start url="${tomcat.manager.url}"
    			username="${tomcat.manager.username}"
    			password="${tomcat.manager.password}"
    			path="/${name}"/>
    	</target>
    </project>
    Lorsque j'exécute la tâche ant : ant stop
    il affiche dans la console
    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
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    Unable to locate tools.jar. Expected to find it in c:\Program Files\Java\j2re1.4.2_09\lib\tools.jar
    Buildfile: build.xml
     
    stop:
         [stop] <html>
         [stop] <head>
         [stop] <style>
         [stop]   table { width: 100%; }
         [stop]   td.page-title {
         [stop]     text-align: center;
         [stop]     vertical-align: top;
         [stop]     font-family:verdana,sans-serif;
         [stop]     font-weight: bold;
         [stop]     background: white;
         [stop]     color: black;
         [stop]   }
         [stop]   td.title {
         [stop]     text-align: left;
         [stop]     vertical-align: top;
         [stop]     font-family:verdana,sans-serif;
         [stop]     font-style:italic;
         [stop]     font-weight: bold;
         [stop]     background: #D2A41C;
         [stop]   }
         [stop]   td.header-left {
         [stop]     text-align: left;
         [stop]     vertical-align: top;
         [stop]     font-family:verdana,sans-serif;
         [stop]     font-weight: bold;
         [stop]     background: #FFDC75;
         [stop]   }
         [stop]   td.header-center {
         [stop]     text-align: center;
         [stop]     vertical-align: top;
         [stop]     font-family:verdana,sans-serif;
         [stop]     font-weight: bold;
         [stop]     background: #FFDC75;
         [stop]   }
         [stop]   td.row-left {
         [stop]     text-align: left;
         [stop]     vertical-align: middle;
         [stop]     font-family:verdana,sans-serif;
         [stop]     color: black;
         [stop]     background: white;
         [stop]   }
         [stop]   td.row-center {
         [stop]     text-align: center;
         [stop]     vertical-align: middle;
         [stop]     font-family:verdana,sans-serif;
         [stop]     color: black;
         [stop]     background: white;
         [stop]   }
         [stop]   td.row-right {
         [stop]     text-align: right;
         [stop]     vertical-align: middle;
         [stop]     font-family:verdana,sans-serif;
         [stop]     color: black;
         [stop]     background: white;
         [stop]   }
         [stop] </style>
         [stop] <title>/manager</title>
         [stop] </head>
         [stop] 
         [stop] <body bgcolor="#FFFFFF">
         [stop] 
         [stop] <table cellspacing="4" width="100%" border="0">
         [stop]  <tr>
         [stop]   <td colspan="2">
         [stop]    <a href="http://www.apache.org/">
         [stop]     <img border="0" alt="The Apache Software Foundation"         align="left"
         [stop]  src="/manager/images/asf-logo.gif">
         [stop]    </a>
         [stop]    <a href="http://tomcat.apache.org/">
         [stop]     <img border="0" alt="The Tomcat Servlet/JSP Container"
         [stop]          align="right" src="/manager/images/tomcat.gif">
         [stop]    </a>
         [stop]   </td>
         [stop]  </tr>
         [stop] </table>
         [stop] <hr size="1" noshade="noshade">
         [stop] <table cellspacing="4" width="100%" border="0">
         [stop]  <tr>
         [stop]   <td class="page-title" bordercolor="#000000" align="left" nowrap>
         [stop]    <font size="+2">Gestionnaire d'applications WEB Tomcat</font>
         [stop]   </td>
         [stop]  </tr>
         [stop] </table>
         [stop] <br>
         [stop] 
         [stop] <table border="1" cellspacing="0" cellpadding="3">
         [stop]  <tr>
         [stop]   <td class="row-left" width="10%"><small><b>Message:</b></small>&nbsp;</td>
         [stop]   <td class="row-left"><pre>OK - Application arrétée pour le chemin de contexte /recette
         [stop] 
         [stop] </pre></td>
         [stop]  </tr>
         [stop] </table>
         [stop] <br>
         [stop] 
         [stop] <table border="1" cellspacing="0" cellpadding="3">
         [stop] <tr>
         [stop]  <td colspan="3" class="title">Manager</td>
         [stop] </tr>
         [stop]  <tr>
         [stop]   <td class="row-left"><a href="/manager/html/list">List Applications</a></td>
         [stop]   <td class="row-center"><a href="/manager/html-manager-howto.html">Aide du HTML Manager</a></td>
         [stop]   <td class="row-right"><a href="/manager/manager-howto.html">Aide du Manager</a></td>
         [stop]  </tr>
         [stop] </table>
         [stop] <br>
         [stop] 
         [stop] <table border="1" cellspacing="0" cellpadding="3">
         [stop] <tr>
         [stop]  <td colspan="5" class="title">Applications</td>
         [stop] </tr>
         [stop] <tr>
         [stop]  <td class="header-left"><small>Chemin</small></td>
         [stop]  <td class="header-left"><small>Nom d'affichage</small></td>
         [stop]  <td class="header-center"><small>Fonctionnant</small></td>
         [stop]  <td class="header-center"><small>Sessions</small></td>
         [stop]  <td class="header-center"><small>Commandes</small></td>
         [stop] </tr>
         [stop] <tr>
         [stop]  <td class="row-left"><small><a href="/">/</a></small></td>
         [stop]  <td class="row-left"><small>Welcome to Tomcat</small></td>
         [stop]  <td class="row-center"><small>true</small></td>
         [stop]  <td class="row-center"><small><a href="/manager/html/sessions?path=/">0</a></small></td>
         [stop]  <td class="row-left">
         [stop]   <small>
         [stop]   &nbsp;Démarrer&nbsp;
         [stop]   &nbsp;<a href="/manager/html/stop?path=/">Arréter</a>&nbsp;
         [stop]   &nbsp;<a href="/manager/html/reload?path=/">Recharger</a>&nbsp;
         [stop]   &nbsp;<a href="/manager/html/remove?path=/">Retirer</a>&nbsp;
         [stop]   </small>
         [stop]  </td>
         [stop] </tr>
         [stop] <tr>
         [stop]  <td class="row-left"><small><a href="/admin">/admin</a></small></td>
         [stop]  <td class="row-left"><small>Tomcat Administration Application</small></td>
         [stop]  <td class="row-center"><small>true</small></td>
         [stop]  <td class="row-center"><small><a href="/manager/html/sessions?path=/admin">0</a></small></td>
         [stop]  <td class="row-left">
         [stop]   <small>
         [stop]   &nbsp;Démarrer&nbsp;
         [stop]   &nbsp;<a href="/manager/html/stop?path=/admin">Arréter</a>&nbsp;
         [stop]   &nbsp;<a href="/manager/html/reload?path=/admin">Recharger</a>&nbsp;
         [stop]   &nbsp;<a href="/manager/html/remove?path=/admin">Retirer</a>&nbsp;
         [stop]   </small>
         [stop]  </td>
         [stop] </tr>
         [stop] <tr>
         [stop]  <td class="row-left"><small><a href="/examples">/examples</a></small></td>
         [stop]  <td class="row-left"><small>Tomcat Examples</small></td>
         [stop]  <td class="row-center"><small>true</small></td>
         [stop]  <td class="row-center"><small><a href="/manager/html/sessions?path=/examples">0</a></small></td>
         [stop]  <td class="row-left">
         [stop]   <small>
         [stop]   &nbsp;Démarrer&nbsp;
         [stop]   &nbsp;<a href="/manager/html/stop?path=/examples">Arréter</a>&nbsp;
         [stop]   &nbsp;<a href="/manager/html/reload?path=/examples">Recharger</a>&nbsp;
         [stop]   &nbsp;<a href="/manager/html/remove?path=/examples">Retirer</a>&nbsp;
         [stop]   </small>
         [stop]  </td>
         [stop] </tr>
         [stop] <tr>
         [stop]  <td class="row-left"><small><a href="/xxxx">/xxxxx</a></small></td>
         [stop]  <td class="row-left"><small>&nbsp;</small></td>
         [stop]  <td class="row-center"><small>true</small></td>
         [stop]  <td class="row-center"><small><a href="/manager/html/sessions?path=/xxxx">0</a></small></td>
         [stop]  <td class="row-left">
         [stop]   <small>
         [stop]   &nbsp;Démarrer&nbsp;
         [stop]   &nbsp;<a href="/manager/html/stop?path=/xxxx">Arréter</a>&nbsp;
         [stop]   &nbsp;<a href="/manager/html/reload?path=/xxxx">Recharger</a>&nbsp;
         [stop]   &nbsp;<a href="/manager/html/remove?path=/xxxx">Retirer</a>&nbsp;
         [stop]   </small>
         [stop]  </td>
         [stop] </tr>
         [stop] <tr>
         [stop]  <td class="row-left"><small><a href="/manager">/manager</a></small></td>
         [stop]  <td class="row-left"><small>Tomcat Manager Application</small></td>
         [stop]  <td class="row-center"><small>true</small></td>
         [stop]  <td class="row-center"><small><a href="/manager/html/sessions?path=/manager">0</a></small></td>
         [stop]  <td class="row-left">
         [stop]   <small>
         [stop]   &nbsp;Démarrer&nbsp;
         [stop]   &nbsp;Arréter&nbsp;
         [stop]   &nbsp;Recharger&nbsp;
         [stop]   &nbsp;Retirer&nbsp;
         [stop]   </small>
         [stop]  </td>
         [stop] </tr>
         [stop] <tr>
         [stop]  <td class="row-left"><small><a href="/recette">/recette</a></small></td>
         [stop]  <td class="row-left"><small>&nbsp;</small></td>
         [stop]  <td class="row-center"><small>false</small></td>
         [stop]  <td class="row-center"><small><a href="/manager/html/sessions?path=/recette">0</a></small></td>
         [stop]  <td class="row-left">
         [stop]   <small>
         [stop]   &nbsp;<a href="/manager/html/start?path=/recette">Démarrer</a>&nbsp;
         [stop]   &nbsp;Arréter&nbsp;
         [stop]   &nbsp;Recharger&nbsp;
         [stop]   &nbsp;<a href="/manager/html/remove?path=/recette">Retirer</a>&nbsp;
         [stop]   </small>
         [stop]  </td>
         [stop] </tr>
         [stop] <tr>
         [stop]  <td class="row-left"><small><a href="/tomcat-docs">/tomcat-docs</a></small></td>
         [stop]  <td class="row-left"><small>Tomcat Documentation</small></td>
         [stop]  <td class="row-center"><small>true</small></td>
         [stop]  <td class="row-center"><small><a href="/manager/html/sessions?path=/tomcat-docs">0</a></small></td>
         [stop]  <td class="row-left">
         [stop]   <small>
         [stop]   &nbsp;Démarrer&nbsp;
         [stop]   &nbsp;<a href="/manager/html/stop?path=/tomcat-docs">Arréter</a>&nbsp;
         [stop]   &nbsp;<a href="/manager/html/reload?path=/tomcat-docs">Recharger</a>&nbsp;
         [stop]   &nbsp;<a href="/manager/html/remove?path=/tomcat-docs">Retirer</a>&nbsp;
         [stop]   </small>
         [stop]  </td>
         [stop] </tr>
         [stop] <tr>
         [stop]  <td class="row-left"><small><a href="/webdav">/webdav</a></small></td>
         [stop]  <td class="row-left"><small>Webdav Content Management</small></td>
         [stop]  <td class="row-center"><small>true</small></td>
         [stop]  <td class="row-center"><small><a href="/manager/html/sessions?path=/webdav">0</a></small></td>
         [stop]  <td class="row-left">
         [stop]   <small>
         [stop]   &nbsp;Démarrer&nbsp;
         [stop]   &nbsp;<a href="/manager/html/stop?path=/webdav">Arréter</a>&nbsp;
         [stop]   &nbsp;<a href="/manager/html/reload?path=/webdav">Recharger</a>&nbsp;
         [stop]   &nbsp;<a href="/manager/html/remove?path=/webdav">Retirer</a>&nbsp;
         [stop]   </small>
         [stop]  </td>
         [stop] </tr>
         [stop] </table>
         [stop] <br>
         [stop] <table border="1" cellspacing="0" cellpadding="3">
         [stop] <tr>
         [stop]  <td colspan="2" class="title">Install</td>
         [stop] </tr>
         [stop] <tr>
         [stop]  <td colspan="2" class="header-left"><small>Install directory or WAR file located on server</small></td>
         [stop] </tr>
         [stop] <tr>
         [stop]  <td colspan="2">
         [stop] <form method="get" action="/manager/html/install">
         [stop] <table cellspacing="0" cellpadding="3">
         [stop] <tr>
         [stop]  <td class="row-right">
         [stop]   <small>Chemin de contexte (optionel):</small>
         [stop]  </td>
         [stop]  <td class="row-left">
         [stop]   <input type="text" name="installPath" size="20">
         [stop]  </td>
         [stop] </tr>
         [stop] <tr>
         [stop]  <td class="row-right">
         [stop]   <small>URL du fichier XML de configuration:</small>
         [stop]  </td>
         [stop]  <td class="row-left">
         [stop]   <input type="text" name="installConfig" size="20">
         [stop]  </td>
         [stop] </tr>
         [stop] <tr>
         [stop]  <td class="row-right">
         [stop]   <small>URL du WAR ou du répertoire:</small>
         [stop]  </td>
         [stop]  <td class="row-left">
         [stop]   <input type="text" name="installWar" size="40">
         [stop]  </td>
         [stop] </tr>
         [stop] <tr>
         [stop]  <td class="row-right">
         [stop]   &nbsp;
         [stop]  </td>
         [stop]  <td class="row-left">
         [stop]   <input type="submit" value="Installation">
         [stop]  </td>
         [stop] </tr>
         [stop] </table>
         [stop] </form>
         [stop] </td>
         [stop] </tr>
         [stop] <tr>
         [stop]  <td colspan="2" class="header-left"><small>Uploader un fichier WAR à installer</small></td>
         [stop] </tr>
         [stop] <tr>
         [stop]  <td colspan="2">
         [stop] <form action="/manager/html/upload" method="post" enctype="multipart/form-data">
         [stop] <table cellspacing="0" cellpadding="3">
         [stop] <tr>
         [stop]  <td class="row-right">
         [stop]   <small>Sélectionnez le fichier WAR à uploader</small>
         [stop]  </td>
         [stop]  <td class="row-left">
         [stop]   <input type="file" name="installWar" size="40">
         [stop]  </td>
         [stop] </tr>
         [stop] <tr>
         [stop]  <td class="row-right">
         [stop]   &nbsp;
         [stop]  </td>
         [stop]  <td class="row-left">
         [stop]   <input type="submit" value="Installation">
         [stop]  </td>
         [stop] </tr>
         [stop] </table>
         [stop] </form>
         [stop] </table>
         [stop] <br>
         [stop] 
         [stop] <table border="1" cellspacing="0" cellpadding="3">
         [stop] <tr>
         [stop]  <td colspan="6" class="title">Serveur</td>
         [stop] </tr>
         [stop] <tr>
         [stop]  <td class="header-center"><small>Version de serveur</small></td>
         [stop]  <td class="header-center"><small>Version de la JVM</small></td>
         [stop]  <td class="header-center"><small>Fournisseur de la JVM</small></td>
         [stop]  <td class="header-center"><small>Nom d'OS</small></td>
         [stop]  <td class="header-center"><small>Version d'OS</small></td>
         [stop]  <td class="header-center"><small>Architecture d'OS</small></td>
         [stop] </tr>
         [stop] <tr>
         [stop]  <td class="row-center"><small>Apache Tomcat/4.1.36</small></td>
         [stop]  <td class="row-center"><small>1.4.2_06-b03</small></td>
         [stop]  <td class="row-center"><small>Sun Microsystems Inc.</small></td>
         [stop]  <td class="row-center"><small>Windows 2003</small></td>
         [stop]  <td class="row-center"><small>5.2</small></td>
         [stop]  <td class="row-center"><small>x86</small></td>
         [stop] </tr>
         [stop] </table>
         [stop] <br>
         [stop] 
         [stop] <hr size="1" noshade="noshade">
         [stop] <center><font size="-1" color="#525D76">
         [stop]  <em>Copyright &copy; 1999-2002, Apache Software Foundation</em></font></center>
         [stop] 
         [stop] </body>
         [stop] </html>
     
    BUILD FAILED
    Z:\Travail\build.xml:30: <html>
     
    Total time: 1 second
    le serveur tomcat est bien arrêté... mais il affiche un BUILD FAILED.... ce qui me gène car je souhaitais appeler cette tâche "stop" dans une autre tâche "dist"... et l'exécution de cette tâche échoue.
    J'ai la même erreur avec l'appel de la tâche "start".
    Le problème vient que les tâches Tomcat envoient un flux.... du HTML... et ant essaye de l'exécuter ;-(

  4. #4
    Membre averti

    Profil pro
    Inscrit en
    Mars 2007
    Messages
    392
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2007
    Messages : 392
    Points : 439
    Points
    439
    Par défaut
    j'ai trouvé ;-)
    l'url du manager Tomcat n'était pas bonne!
    j'appelais la version HTML alors qu'il ne faut pas l'appeler ;-)
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    <property name="tomcat.manager.url" value="http://xxxxx:8080/manager/html"/>
    Bonne url :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    <property name="tomcat.manager.url" value="http://xxxxx:8080/manager/html"/>

Discussions similaires

  1. apache 4.1.36 problème d'accès au menu admin et tomcat manager
    Par fatenatwork dans le forum Tomcat et TomEE
    Réponses: 2
    Dernier message: 05/09/2007, 11h12
  2. [Tomcat5] Password Tomcat manager
    Par eXiaNazaire dans le forum Tomcat et TomEE
    Réponses: 1
    Dernier message: 24/09/2006, 13h32
  3. [NetBeans] tomcat manager
    Par kenito dans le forum NetBeans
    Réponses: 4
    Dernier message: 21/04/2006, 17h04
  4. [TOMCAT]configurer TOMCAT pour exécuter un script ANT
    Par VysEDaKRe dans le forum Tomcat et TomEE
    Réponses: 2
    Dernier message: 10/04/2006, 11h58
  5. [TOMCAT] manager
    Par alexandra dans le forum Tomcat et TomEE
    Réponses: 2
    Dernier message: 13/02/2006, 15h50

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