onjour,
lors de l'execution d'un script bash, je me retrouve avec l'erreur mentionnée:
"java.lang.ClassNotFoundException"
J'ai bien défini le .jar dans laquelle elle est située mais le script ne semble pas le comprendre, ou me suis-je trompé?
le script bash (executé sous cygwin et les fichiers sont sous windows). En gras et rouge l'endroit ou l'erreur se situe.
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
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394 #!/bin/sh # --------------------------------------------------------------------------------------- # Fichier "bat-chargement.sh" # --------------------------------------------------------------------------------------- # Ce fichier permet le lancement des batch alimentation et importfederateur # VERSION=1.1.1 # --------------------- Valeurs par défaut ------------------------------------- REP_LOG=/appli/tomcat/batch/log FIC_CONFIG=/appli/tomcat/param/config_appli.sh JAVA_HOME=/opt/java JAVA_OPTS=$JAVA_OPTS # --------------------- Fonctions ------------------------------------- usage() { echo "" >&2 echo "Usage: `basename $0` --mode MODE [OPTIONS] " >&2 echo "" >&2 echo "Options :" >&2 echo " -m , --mode {BatchAlimentation|BatchImportFederateur|info|encrypt}" >&2 echo " mode BatchAlimentation (defaut) : Alimentation des fichiers xml du répertoire --config " >&2 echo " -env , --env (SIMU,PROD)" >&2 echo " -type , --type (purge,annuaire,groupes) par defaut tous" >&2 echo "" >&2 echo " mode BatchImportFederateur : Import des fichiers XML pour une academie --config" >&2 echo " -ac , --academie (academie)" >&2 echo " -put , --put (fichier) (a defaut on récupère les fichiers)" >&2 echo "" >&2 echo " mode info : donne le contenu d'un fichier xml ou d'un ZIP --config" >&2 echo " -zip , --zip (fichier d'archive)" >&2 echo " -dir , --directory (repertoire contenant les fichiers xml)" >&2 echo "" >&2 echo " mode encrypt : encrypt les donnees personnelles du fichier ZIP en md5" >&2 echo " -zip , --zip (fichier d'archive)" >&2 echo "" >&2 echo " -c , --config (fichier de configuration): (a defaut $FIC_CONFIG)." >&2 echo " -jvm , --jvm (JAVA_HOME) (a defaut '$JAVA_HOME')" >&2 echo " -lib , --lib (a defaut '$HOME/alimentation/lib')" >&2 echo " -jopts , --javaopts (JAVA_OPTS) (a defaut '$JAVA_OPTS')" >&2 echo " -log , --log (fichier de log) (a defaut '$REP_LOG/bat-%mode%.log')" >&2 echo "" >&2 echo " -h , --help : ce menu" >&2 echo " -test : liste les commandes effectues mais sans les faire" >&2 echo " -v , verbose : plus de detail dans les logs" >&2 } ecrit() { echo "`date +\"%Y/%m/%d %H:%M:%S\"` $*" [ ! -z "$_log" ] && echo "`date +\"%Y/%m/%d %H:%M:%S\"` $*" >> $_log } error() { ecrit "- ERROR - $*" } log() { [ $_verbose -eq 1 ] && ecrit "- DEBUG - $*" } execute() { log "$*" [ $_test -eq 0 ] && sh -c "$*" >> $_log 2>&1 [ $_test -eq 1 ] && echo $* } #Remplace $2 par $3 dans $1 replace_conf() { #On remplace tout le terme -D$2=/appli/toto/config.properties en -D$2=$3 dans $1 RES=`echo "$1" | sed "s:-D$2=[/a-zA-Z0-9_.]* :-D$2=$3 :g"` } decode_utf8() { #les codes UTF8 sed -e "s/\xc3//g" -e 's/[{\xa8,\xa9,\xaa,\xab}]/e/g' -e 's/[{\xa0,\xa1,\xa2,\xa3,\xa4,\xa5,\xa6}]/a/g' -e 's/[{\xa7}]/c/g' -e 's/[{\xac,\xad,\xae,\xaf}]/i/g' -e 's/[{\xb2,\xb3,\xb4,\xb5,\xb6}]/o/g' -e 's/[{\xb8,\xb9,\xba,\xbb,\xbc}]/u/g' #-e 's/[{\xc3\xa8,\xc3\xa9,\xc3\xaa,\xc3\xab}]/x/g' -e 's/[{\xc3\xa0,\xc3\xa1,\xc3\xa2,\xc3\xa3,\xc3\xa4,\xc3\xa5,\xc3\xa6}]/a/g' -e 's/[{\xc3\xa7}]/c/g' -e 's/[{\xc3\xac,\xc3\xad,\xc3\xae,\xc3\xaf}]/i/g' -e 's/[{\xc3\xb2,\xc3\xb3,\xc3\xb4,\xc3\xb5,\xc3\xb6}]/o/g' -e 's/[{\xc3\xb8,\xc3\xb9,\xc3\xba,\xc3\xbb,\xc3\xbc}]/u/g' } decode_unicode() { #les codes UNICODE sed -e 's/[{\xe0,\xe1,\xe2,\xe3,\xe4,\xe5}]/a/g' -e 's/[{\xe8,\xe9,\xea,\xeb}]/e/g' -e 's/[{\xec,\xed,\xee,\xef}]/i/g' -e 's/[{\xf2,\xf3,\xf4,\xf5,\xf6}]/o/g' -e 's/[{\xf9,\xfa,\xfb,\xfc}]/u/g' } #ne marche pas verif_accent() { #verifie qu'il n'y a que des caracteres a-z si remplace par X sed -e 's/[0-9a-z ].*/X/g' } #ne marche pas verif_utf8() { od -x $1 | egrep -c "c3a8|c3a9|c3aa|c3ab|c3a0|c3a1|c3a2|c3a3|c3a4|c3a5|c3a6|c3a7|c3ac|c3ad|c3ae|c3af|c3b2|c3b3|c3b4|c3b5|c3b6|c3b8|c3b9|c3ba|c3bb|c3bc" } # --------------------- Initialisation -------------------------------------- _test=0 _verbose=0 while [ "$1" != "" ]; do case $1 in -c | --config ) shift _config=$1 ;; -m | --mode ) shift _mode=$1 ;; -ac | --academie ) shift _academie=$1 ;; -type | --type ) shift _type=$1 ;; -env | --env ) shift _env=$1 ;; -put | --put ) shift _file_put=$1 ;; -dir | --dir ) shift _dir_info_xml=$1 ;; -zip | --zip ) shift _zip_info_xml=$1 ;; -jvm | --jvm ) shift _jvm=$1 ;; -jopts | --javaopts ) shift _jopts=$1 ;; -log | --log ) shift _log=$1 ;; -lib | --lib ) shift _lib=$1 ;; -h | --help ) usage exit ;; -test ) _test=1 ;; -v | verbose ) _verbose=1 ;; * ) usage esac shift done # --------------------- Les valeurs par défauts -------------------------------------- [ -z "$_config" ] && _config=$FIC_CONFIG [ -z "$_mode" ] && error "Le mode doit etre defini --mode " && usage && exit -1 [ -z "$_jvm" ] && _jvm=$JAVA_HOME [ -z "$_jopts" ] && _jopts=$JAVA_OPTS [ -z "$_log" ] && _log=$REP_LOG/bat-$_mode.log [ -z "$_lib" ] && _lib=$HOME/bat-alimentation/lib # --------------------- Options -------------------------------------- log "----------------------------------" log "--config $_config" log "--mode $_mode" log "--academie $_academie" log "--type $_type" log "--dir $_dir_info_xml" log "--zip $_zip_info_xml" log "--lib $_lib" log "--env $_env" log "--jvm $_jvm" log "--javaopts $_jopts" log "--log $_log" log "-test $_test" log "-v $_verbose" log "----------------------------------" # --------------------- Verification -------------------------------------- [ ! -e "$_config" ] && error "Fichier '$_config' manquant merci de definir --config" && exit -1 [ ! -e "$_jvm/bin/java" ] && error "JVM non trouvee '$_jvm' manquant merci de definir --jvm" && exit -1 [ ! -e "$_lib/" ] && error "Le repertoire '$_lib' n'existe pas" && exit -1 touch $_log || ( error "Fichier log $_log non accessible" && exit -1 ) # --------------------- Execution -------------------------------------- . $_config _jopts="$_jopts $JAVA_OPTS" CLASSPATH=$_lib for i in $_lib/*.jar do CLASSPATH=$i:$CLASSPATH done ecrit "Demarrage du batch $_mode $VERSION" case $_mode in BatchAlimentation) if [ -z "$_env" ] then log "Le parametre --env$_env n'est pas definit on garde la configuration par defaut" else #On remplace les fichiers de configuration par ceux de l'environnement for i in annuaire alimentation do _file=`dirname ${_config}`/config_${i}_${_env}.properties [ ! -e "$_file" ] && error "Fichier '$_file' absent" && exit -1 replace_conf "$_jopts" ${i}.config $_file _jopts="$RES" done fi log "JAVA_OPTS : $_jopts" execute "$_jvm/bin/java $_jopts -cp $CLASSPATH org.lilie.socle.bat.alimentation.batch.BatchAlimentation $_type" ;; BatchImportFederateur) [ -z "$_academie" ] && error "Le parametre --academie$_academie doit etre defini" && exit -1 #On remplace les fichiers de configuration par ceux de l'academie for i in importfederateur do _file=`dirname ${_config}`/config_${i}_${_academie}.properties [ ! -e $_file ] && error "Fichier '$_file' absent" && exit -1 replace_conf "$JAVA_OPTS" ${i}.config $_file _jopts="$RES" log "Apres changement $_jopts" done _args="get" [ ! -z "$_file_put" ] && _args="put $_file_put" execute "$_jvm/bin/java $_jopts -cp $CLASSPATH org.lilie.socle.bat.importfederateur.batch.BatchImportFederateur $_args" ;; info) echo "###########################################################" if [ ! -z "$_zip_info_xml" ] then echo "Liste des etablissements du fichier $_zip_info_xml" unzip -p $_zip_info_xml '*Etab*' | egrep 'ENTStructureJointure|ENTStructureNomCourant' | awk 'BEGIN{FS="value>" }{print $2}' | sed 's/<\///g' for i in Eleve PersEducNat do echo "" echo "Liste des $i par etablissement" echo " NB id_Etab" echo " ----- -------" unzip -p $_zip_info_xml "*$i*" | grep 'ENTPersonStructRattach' | awk 'BEGIN{FS="value>" }{print $2}' | sed 's/<\///g' | sort | uniq -c done echo "" echo "Nombre de Parents dans le fichier" unzip -p $_zip_info_xml "*PersRelEleve*" | grep 'identifier' | wc -l elif [ ! -z "$_dir_info_xml" ] then echo "Liste des etablissements du repertoire $_dir_info_xml" cat $_dir_info_xml/*Etab*.xml | egrep 'ENTStructureJointure|ENTStructureNomCourant' | awk 'BEGIN{FS="value>" }{print $2}' | sed 's/<\///g' for i in Eleve PersEducNat do echo "" echo "Liste des $i par etablissement" echo " NB id_Etab" echo " ----- -------" cat $_dir_info_xml/*$i*.xml | grep 'ENTPersonStructRattach' | awk 'BEGIN{FS="value>" }{print $2}' | sed 's/<\///g' | sort | uniq -c done echo "" echo "Nombre de Parents dans le fichier" cat $_dir_info_xml/*PersRelEleve*.xml | grep 'identifier' | wc -l else error "L'un des parametres --dir$_dir_info_xml ou --zip$_zip_info_xml doit etre defini" fi echo "###########################################################" ;; encrypt) echo "###########################################################" [ -z "$_zip_info_xml" ] && error "Le parametre --zip$_zip_info_xml doit etre defini" _md5_xml=`echo $_zip_info_xml | sed 's/.ZIP$/.md5/g' | sed 's/.zip$/.md5/g' ` ecrit "Encryption du fichier $_zip_info_xml dans le fichier $_md5_xml" log "etape 1 dans $_log.etape1 : extraction des id et des noms" unzip -p $_zip_info_xml | egrep "ENTPersonJointure|ENTPersonNomPatro|givenName" > $_log.etape1 log "etape 2 dans $_log.etape2 : suppression des tags xml" cat $_log.etape1 | sed 's/.*<value>//g' | cut -d\< -f1 > $_log.etape2 #Si le fichier est vient de PARIS on decode les accent en unicode sinon en utf8 if [ `echo $_zip_info_xml | grep -i "_PARIS_" -c ` -eq 0 ] then log "etape 3 dans $_log.etape3 : les accents utf8" cat $_log.etape2 | decode_utf8 > $_log.etape3 else log "etape 3 dans $_log.etape3 : les accents unicode" cat $_log.etape2 | decode_unicode > $_log.etape3 fi log "etape 4 dans $_log.etape4 : en minuscule et sans ponctuation" cat $_log.etape3 | tr '[:upper:]' '[:lower:]' | tr '[:punct:]' ' ' > $_log.etape4 log "etape 5 dans $_md5_xml : encodage en md5" cat $_log.etape4 | awk 'NR%3!=0{ printf "%s;", $0 } NR%3==0{ printf "%s\n", $0 }' | \ while IFS=";" read _ID _PNOM _NOM do echo "$_ID;`echo -n $_PNOM | md5sum | cut -d\ -f1`;`echo -n $_NOM | md5sum | cut -d\ -f1 `" done > $_md5_xml execute zip $_md5_xml.ZIP $_md5_xml [ ! $_test ] && rm -f $_log.etape1 $_log.etape2 $_log.etape3 $_log.etape4 $_md5_xml ;; *) error "Le mode inconnu : $_mode" usage ;; esac ecrit "log sous $_log" ecrit "Batch termine"
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 2011/06/15 17:24:01 - DEBUG - ---------------------------------- 2011/06/15 17:24:01 - DEBUG - --config /cygdrive/d/tomcat/param/config_appli.sh 2011/06/15 17:24:02 - DEBUG - --mode BatchAlimentation 2011/06/15 17:24:02 - DEBUG - --academie 2011/06/15 17:24:02 - DEBUG - --type 2011/06/15 17:24:03 - DEBUG - --dir 2011/06/15 17:24:03 - DEBUG - --zip 2011/06/15 17:24:03 - DEBUG - --lib /cygdrive/d/tomcat/batch/bat-alimentation/lib 2011/06/15 17:24:04 - DEBUG - --env 2011/06/15 17:24:04 - DEBUG - --jvm /cygdrive/d/java 2011/06/15 17:24:04 - DEBUG - --javaopts 2011/06/15 17:24:04 - DEBUG - --log /cygdrive/d/tomcat/batch/log/bat-BatchAlimentation.log 2011/06/15 17:24:05 - DEBUG - -test 0 2011/06/15 17:24:05 - DEBUG - -v 1 2011/06/15 17:24:05 - DEBUG - ---------------------------------- 2011/06/15 17:24:06 Demarrage du batch BatchAlimentation 1.1.1 2011/06/15 17:24:06 - DEBUG - Le parametre --env n'est pas definit on garde la configuration par defaut 2011/06/15 17:24:07 - DEBUG - JAVA_OPTS : -server -XX:MaxPermSize=128m -Djava.library.path=/opt/tomcat-native/lib -Djava.endorsed.dirs=/common/endorsed -Djavax.net.ssl.trustStore=D:/appli/tomcat/param/cert/ks_ssl -Djavax.net.ssl.trustStorePassword=Prosodie23 -Dcom.sun.management.jmxremote -Dactualite.config=/cygdrive/d/tomcat/param/config_actualite.properties -Dactualite-portlet.config=/cygdrive/d/tomcat/param/config_actualite-portlet.properties -Dadmin.config=/cygdrive/d/tomcat/param/config_admin.properties -Dalimentation.config=/cygdrive/d/tomcat/param/config_alimentation.properties -Dannuaire.config=/cygdrive/d/tomcat/param/config_annuaire.properties -Dannuairepb.config=/cygdrive/d/tomcat/param/config_annuairepb.properties -Dapirecherche.config=/cygdrive/d/tomcat/param/config_apirecherche.properties -Dbandeau.config=/cygdrive/d/tomcat/param/config_bandeau.properties -Dblog.config=/cygdrive/d/tomcat/param/config_blog.properties -Dblog-portlet.config=/cygdrive/d/tomcat/param/config_blog-portlet.properties -Dcasauth.config=/cygdrive/d/tomcat/param/config_casauth.properties -Dcore.config=/cygdrive/d/tomcat/param/config_core.properties -Ddroits.config=/cygdrive/d/tomcat/param/config_droits.properties -Dforum.config=/cygdrive/d/tomcat/param/config_forum.properties -Dgestionressources.config=/cygdrive/d/tomcat/param/config_gestionressources.properties -Dimportfederateur.config=/cygdrive/d/tomcat/param/config_importfederateur.properties -Dincident.config=/cygdrive/d/tomcat/param/config_incident.properties -Dinitialisation.config=/cygdrive/d/tomcat/param/config_initialisation.properties -Dliferay.config=/cygdrive/d/tomcat/param/config_liferay.properties -Dlogos.config=/cygdrive/d/tomcat/param/config_logos.properties -Dmoncompte.config=/cygdrive/d/tomcat/param/config_moncompte.properties -Dmsgaccueil.config=/cygdrive/d/tomcat/param/config_msgaccueil.properties -Dmsgaccueil-portlet.config=/cygdrive/d/tomcat/param/config_msgaccueil-portlet.properties -Dnotifications.config=/cygdrive/d/tomcat/param/config_notifications.properties -Dopenfire-custom.config=/cygdrive/d/tomcat/param/config_openfire-custom.properties -Dplugin-search-custom.config=/cygdrive/d/tomcat/param/config_plugin-search-custom.properties -Dportail.config=/cygdrive/d/tomcat/param/config_portail.properties -Dportailgestion.config=/cygdrive/d/tomcat/param/config_portailgestion.properties -Drecherche.config=/cygdrive/d/tomcat/param/config_recherche.properties -Driaadmin.config=/cygdrive/d/tomcat/param/config_riaadmin.properties -Driachat.config=/cygdrive/d/tomcat/param/config_riachat.properties -Dservicesext.config=/cygdrive/d/tomcat/param/config_servicesext.properties -Dsignets.config=/cygdrive/d/tomcat/param/config_signets.properties -Dviescolaire.config=/cygdrive/d/tomcat/param/config_viescolaire.properties -Dweb-statistiques.config=/cygdrive/d/tomcat/param/config_web-statistiques.properties -Deliot-agenda.config.location=/cygdrive/d/tomcat/param/eliot-agenda-config.groovy -Deliot-commons.config.location=/cygdrive/d/tomcat/param/eliot-commons-config.groovy -Deliot-demon-docs.config.location=/cygdrive/d/tomcat/param/eliot-demon-docs-config.groovy -Deliot-demon-scolarite.config.location=/cygdrive/d/tomcat/param/eliot-demon-scolarite-config.groovy -Deliot-docs.config.location=/cygdrive/d/tomcat/param/eliot-docs-config.groovy -Deliot-messagerie.config.location=/cygdrive/d/tomcat/param/eliot-messagerie-config.groovy -Deliot-scolarite.config.location=/cygdrive/d/tomcat/param/eliot-scolarite-config.groovy -Deliot-textes.config.location=/cygdrive/d/tomcat/param/eliot-textes-config.groovy -Dactualite.log4j=/cygdrive/d/tomcat/param/log_actualite.xml -Dactualite-portlet.log4j=/cygdrive/d/tomcat/param/log_actualite-portlet.xml -Dalimentation.log4j=/cygdrive/d/tomcat/param/log_alimentation.xml -Dannuairepb.log4j=/cygdrive/d/tomcat/param/log_annuairepb.xml -Dbandeau.log4j=/cygdrive/d/tomcat/param/log_bandeau.xml -Dblog.log4j=/cygdrive/d/tomcat/param/log_blog.xml -Dblog-portlet.log4j=/cygdrive/d/tomcat/param/log_blog-portlet.xml -Dcasauth.log4j=/cygdrive/d/tomcat/param/log_casauth.xml -Dforum.log4j=/cygdrive/d/tomcat/param/log_forum.xml -Dgestionressources.log4j=/cygdrive/d/tomcat/param/log_gestionressources.xml -Dimportfederateur.log4j=/cygdrive/d/tomcat/param/log_importfederateur.xml -Dincident.log4j=/cygdrive/d/tomcat/param/log_incident.xml -Dinitialisation.log4j=/cygdrive/d/tomcat/param/log_initialisation.xml -Dlogos.log4j=/cygdrive/d/tomcat/param/log_logos.xml -Dmoncompte.log4j=/cygdrive/d/tomcat/param/log_moncompte.xml -Dmsgaccueil.log4j=/cygdrive/d/tomcat/param/log_msgaccueil.xml -Dmsgaccueil-portlet.log4j=/cygdrive/d/tomcat/param/log_msgaccueil-portlet.xml -Dnotifications.log4j=/cygdrive/d/tomcat/param/log_notifications.xml -Dopenfire-custom.log4j=/cygdrive/d/tomcat/param/log_openfire-custom.xml -Dplugin-search-custom.log4j=/cygdrive/d/tomcat/param/log_plugin-search-custom.xml -Drecherche.log4j=/cygdrive/d/tomcat/param/log_recherche.xml -Driaadmin.log4j=/cygdrive/d/tomcat/param/log_riaadmin.xml -Driachat.log4j=/cygdrive/d/tomcat/param/log_riachat.xml -Dservicesext.log4j=/cygdrive/d/tomcat/param/log_servicesext.xml -Dsignets.log4j=/cygdrive/d/tomcat/param/log_signets.xml -Dviescolaire.log4j=/cygdrive/d/tomcat/param/log_viescolaire.xml -Dweb-statistiques.log4j=/cygdrive/d/tomcat/param/log_web-statistiques.xml 2011/06/15 17:24:07 - DEBUG - TYPE: 2011/06/15 17:24:07 - DEBUG - &JVM: /cygdrive/d/java/bin/java 2011/06/15 17:24:07 - DEBUG - CLASSPATH: /cygdrive/d/tomcat/batch/bat-alimentation/lib/spring-tx-2.5.6.SEC01.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/spring-support-2.0.8.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/spring-jdbc-2.5.6.SEC01.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/spring-ibatis-2.0.8.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/spring-dao-2.0.8.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/spring-core-2.5.6.SEC01.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/spring-context-2.5.6.SEC01.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/spring-beans-2.5.6.SEC01.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/spring-aop-2.5.6.SEC01.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/slf4j-log4j12-1.5.6.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/slf4j-api-1.5.6.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/postgresql-8.3-603.jdbc4.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/mail-1.4.1.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/log4j-1.2.15.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/jdom-1.1.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/ibatis-sqlmap-2.3.0.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/ibatis-2.3.4.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/fmk-core-ent-1.5.6.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/ehcache-spring-annotations-1.1.2.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/ehcache-core-2.1.0.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/dozer-4.2.1.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/commons-pool-1.3.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/commons-logging-1.0.4.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/commons-lang-2.4.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/commons-io-1.4.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/commons-fileupload-1.1.1.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/commons-dbcp-1.2.2.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/commons-collections-3.2.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/commons-codec-20041127.091804.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/commons-beanutils-1.8.0.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/bat-alimentation-1.4.20.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/aspectjrt-1.6.2.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/api-logging-1.4.20.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/api-annuaire-1.4.20.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/aopalliance-1.0.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/activation-1.1.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib 2011/06/15 17:24:08 - DEBUG - /cygdrive/d/java/bin/java -server -XX:MaxPermSize=128m -Djava.library.path=/opt/tomcat-native/lib -Djava.endorsed.dirs=/common/endorsed -Djavax.net.ssl.trustStore=D:/appli/tomcat/param/cert/ks_ssl -Djavax.net.ssl.trustStorePassword=Prosodie23 -Dcom.sun.management.jmxremote -Dactualite.config=/cygdrive/d/tomcat/param/config_actualite.properties -Dactualite-portlet.config=/cygdrive/d/tomcat/param/config_actualite-portlet.properties -Dadmin.config=/cygdrive/d/tomcat/param/config_admin.properties -Dalimentation.config=/cygdrive/d/tomcat/param/config_alimentation.properties -Dannuaire.config=/cygdrive/d/tomcat/param/config_annuaire.properties -Dannuairepb.config=/cygdrive/d/tomcat/param/config_annuairepb.properties -Dapirecherche.config=/cygdrive/d/tomcat/param/config_apirecherche.properties -Dbandeau.config=/cygdrive/d/tomcat/param/config_bandeau.properties -Dblog.config=/cygdrive/d/tomcat/param/config_blog.properties -Dblog-portlet.config=/cygdrive/d/tomcat/param/config_blog-portlet.properties -Dcasauth.config=/cygdrive/d/tomcat/param/config_casauth.properties -Dcore.config=/cygdrive/d/tomcat/param/config_core.properties -Ddroits.config=/cygdrive/d/tomcat/param/config_droits.properties -Dforum.config=/cygdrive/d/tomcat/param/config_forum.properties -Dgestionressources.config=/cygdrive/d/tomcat/param/config_gestionressources.properties -Dimportfederateur.config=/cygdrive/d/tomcat/param/config_importfederateur.properties -Dincident.config=/cygdrive/d/tomcat/param/config_incident.properties -Dinitialisation.config=/cygdrive/d/tomcat/param/config_initialisation.properties -Dliferay.config=/cygdrive/d/tomcat/param/config_liferay.properties -Dlogos.config=/cygdrive/d/tomcat/param/config_logos.properties -Dmoncompte.config=/cygdrive/d/tomcat/param/config_moncompte.properties -Dmsgaccueil.config=/cygdrive/d/tomcat/param/config_msgaccueil.properties -Dmsgaccueil-portlet.config=/cygdrive/d/tomcat/param/config_msgaccueil-portlet.properties -Dnotifications.config=/cygdrive/d/tomcat/param/config_notifications.properties -Dopenfire-custom.config=/cygdrive/d/tomcat/param/config_openfire-custom.properties -Dplugin-search-custom.config=/cygdrive/d/tomcat/param/config_plugin-search-custom.properties -Dportail.config=/cygdrive/d/tomcat/param/config_portail.properties -Dportailgestion.config=/cygdrive/d/tomcat/param/config_portailgestion.properties -Drecherche.config=/cygdrive/d/tomcat/param/config_recherche.properties -Driaadmin.config=/cygdrive/d/tomcat/param/config_riaadmin.properties -Driachat.config=/cygdrive/d/tomcat/param/config_riachat.properties -Dservicesext.config=/cygdrive/d/tomcat/param/config_servicesext.properties -Dsignets.config=/cygdrive/d/tomcat/param/config_signets.properties -Dviescolaire.config=/cygdrive/d/tomcat/param/config_viescolaire.properties -Dweb-statistiques.config=/cygdrive/d/tomcat/param/config_web-statistiques.properties -Deliot-agenda.config.location=/cygdrive/d/tomcat/param/eliot-agenda-config.groovy -Deliot-commons.config.location=/cygdrive/d/tomcat/param/eliot-commons-config.groovy -Deliot-demon-docs.config.location=/cygdrive/d/tomcat/param/eliot-demon-docs-config.groovy -Deliot-demon-scolarite.config.location=/cygdrive/d/tomcat/param/eliot-demon-scolarite-config.groovy -Deliot-docs.config.location=/cygdrive/d/tomcat/param/eliot-docs-config.groovy -Deliot-messagerie.config.location=/cygdrive/d/tomcat/param/eliot-messagerie-config.groovy -Deliot-scolarite.config.location=/cygdrive/d/tomcat/param/eliot-scolarite-config.groovy -Deliot-textes.config.location=/cygdrive/d/tomcat/param/eliot-textes-config.groovy -Dactualite.log4j=/cygdrive/d/tomcat/param/log_actualite.xml -Dactualite-portlet.log4j=/cygdrive/d/tomcat/param/log_actualite-portlet.xml -Dalimentation.log4j=/cygdrive/d/tomcat/param/log_alimentation.xml -Dannuairepb.log4j=/cygdrive/d/tomcat/param/log_annuairepb.xml -Dbandeau.log4j=/cygdrive/d/tomcat/param/log_bandeau.xml -Dblog.log4j=/cygdrive/d/tomcat/param/log_blog.xml -Dblog-portlet.log4j=/cygdrive/d/tomcat/param/log_blog-portlet.xml -Dcasauth.log4j=/cygdrive/d/tomcat/param/log_casauth.xml -Dforum.log4j=/cygdrive/d/tomcat/param/log_forum.xml -Dgestionressources.log4j=/cygdrive/d/tomcat/param/log_gestionressources.xml -Dimportfederateur.log4j=/cygdrive/d/tomcat/param/log_importfederateur.xml -Dincident.log4j=/cygdrive/d/tomcat/param/log_incident.xml -Dinitialisation.log4j=/cygdrive/d/tomcat/param/log_initialisation.xml -Dlogos.log4j=/cygdrive/d/tomcat/param/log_logos.xml -Dmoncompte.log4j=/cygdrive/d/tomcat/param/log_moncompte.xml -Dmsgaccueil.log4j=/cygdrive/d/tomcat/param/log_msgaccueil.xml -Dmsgaccueil-portlet.log4j=/cygdrive/d/tomcat/param/log_msgaccueil-portlet.xml -Dnotifications.log4j=/cygdrive/d/tomcat/param/log_notifications.xml -Dopenfire-custom.log4j=/cygdrive/d/tomcat/param/log_openfire-custom.xml -Dplugin-search-custom.log4j=/cygdrive/d/tomcat/param/log_plugin-search-custom.xml -Drecherche.log4j=/cygdrive/d/tomcat/param/log_recherche.xml -Driaadmin.log4j=/cygdrive/d/tomcat/param/log_riaadmin.xml -Driachat.log4j=/cygdrive/d/tomcat/param/log_riachat.xml -Dservicesext.log4j=/cygdrive/d/tomcat/param/log_servicesext.xml -Dsignets.log4j=/cygdrive/d/tomcat/param/log_signets.xml -Dviescolaire.log4j=/cygdrive/d/tomcat/param/log_viescolaire.xml -Dweb-statistiques.log4j=/cygdrive/d/tomcat/param/log_web-statistiques.xml -cp /cygdrive/d/tomcat/batch/bat-alimentation/lib/spring-tx-2.5.6.SEC01.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/spring-support-2.0.8.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/spring-jdbc-2.5.6.SEC01.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/spring-ibatis-2.0.8.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/spring-dao-2.0.8.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/spring-core-2.5.6.SEC01.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/spring-context-2.5.6.SEC01.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/spring-beans-2.5.6.SEC01.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/spring-aop-2.5.6.SEC01.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/slf4j-log4j12-1.5.6.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/slf4j-api-1.5.6.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/postgresql-8.3-603.jdbc4.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/mail-1.4.1.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/log4j-1.2.15.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/jdom-1.1.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/ibatis-sqlmap-2.3.0.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/ibatis-2.3.4.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/fmk-core-ent-1.5.6.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/ehcache-spring-annotations-1.1.2.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/ehcache-core-2.1.0.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/dozer-4.2.1.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/commons-pool-1.3.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/commons-logging-1.0.4.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/commons-lang-2.4.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/commons-io-1.4.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/commons-fileupload-1.1.1.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/commons-dbcp-1.2.2.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/commons-collections-3.2.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/commons-codec-20041127.091804.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/commons-beanutils-1.8.0.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/bat-alimentation-1.4.20.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/aspectjrt-1.6.2.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/api-logging-1.4.20.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/api-annuaire-1.4.20.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/aopalliance-1.0.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib/activation-1.1.jar:/cygdrive/d/tomcat/batch/bat-alimentation/lib org.lilie.socle.bat.alimentation.batch.BatchAlimentation java.lang.NoClassDefFoundError: org/lilie/socle/bat/alimentation/batch/BatchAlimentation Caused by: java.lang.ClassNotFoundException: org.lilie.socle.bat.alimentation.batch.BatchAlimentation 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) Could not find the main class: org.lilie.socle.bat.alimentation.batch.BatchAlimentation. Program will exit. Exception in thread "main"
Le jar dans lequel se situe la classe recherchée est dans le dossier:
D:\tomcat\batch\bat-alimentation\lib
Il s'appelle: bat-alimentation-1.4.20.jar.
La classe est dans: org\lilie\socle\bat\alimentation\batch\
Elle s'appelle: BatchAlimentation.class
Merci d'avance
Cordialement,
Guillaume
Partager