Erreur de génération de WAR au déploiement d'un EAR
Bonjour,
Cela fait plusieurs jours que je suis confronté à un problème de déploiement de fichier EAR sur Jonas 4.10.3.
Il s'agit d'un projet existant que j'ai récupéré. Je n'avais aucun problème à le déployer / executer jusqu'à présent.
J'ai modifié un fichier properties pour changer un identifiant d'accès à un autre serveur. Puis j'ai obtenu l'erreur suivante après l'avoir déployé. En annulant la modification et en regénérant l'EAR le problème persiste.
Voici l'erreur lors du déploiement de l'EAR:
Code:
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
|
2011-11-22 16:22:18,381 : J2EEServerMBean.wsgenLocalFile : Cannot generate web services for this component : '/home/sfrb6920/SensCity/USP/apps/autoload/citypulse-usp-application.ear.
java.lang.Exception: Exception when executing WsGen.execute(String[])
at org.objectweb.jonas_ws.wsgen.wrapper.WsGenWrapper.callWsGenExecute(WsGenWrapper.java:127)
at org.objectweb.jonas.server.J2EEServerMBean.wsgenLocalFile(J2EEServerMBean.java:253)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:455)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:857)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:795)
at org.objectweb.jonas_lib.files.WsGenChecker.checkWsGen(WsGenChecker.java:155)
at org.objectweb.jonas.ear.EarServiceImpl.deployEar(EarServiceImpl.java:506)
at org.objectweb.jonas.ear.EarServiceImpl.doStart(EarServiceImpl.java:1347)
at org.objectweb.jonas.service.AbsServiceImpl.start(AbsServiceImpl.java:80)
at org.objectweb.jonas.service.ServiceManager.startServices(ServiceManager.java:336)
at org.objectweb.jonas.server.Server$1.run(Server.java:573)
Caused by: org.objectweb.jonas_lib.genbase.GenBaseException: Cannot construct a JarFile from '/tmp/wsgen7010549660030069392.tmp/citypulse-usp-ws-external.war'
at org.objectweb.jonas_lib.genbase.archive.JarArchive.<init>(JarArchive.java:66)
at org.objectweb.jonas_lib.genbase.archive.Application.init(Application.java:191)
at org.objectweb.jonas_lib.genbase.archive.Application.<init>(Application.java:111)
at org.objectweb.jonas_ws.wsgen.modifier.ModifierFactory.getModifier(ModifierFactory.java:117)
at org.objectweb.jonas_ws.wsgen.WsGen.execute(WsGen.java:106)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.objectweb.jonas_ws.wsgen.wrapper.WsGenWrapper.callWsGenExecute(WsGenWrapper.java:122)
... 14 more
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:131)
at java.util.jar.JarFile.<init>(JarFile.java:150)
at java.util.jar.JarFile.<init>(JarFile.java:114)
at org.objectweb.jonas_lib.genbase.archive.JarArchive.<init>(JarArchive.java:62)
... 23 more
2011-11-22 16:22:18,504 : EarServiceImpl.deployEar : Error while trying to resolve the classpath of the ejbjars and wars of the ear : 'file:/home/sfrb6920/SensCity/USP/apps/autoload/citypulse-usp-application.ear' : Error while reading manifest file from the file citypulse-usp-ws-external.war : error in opening zip file
2011-11-22 16:22:18,505 : EarServiceImpl.doStart : Cannot deploy the file '/home/sfrb6920/SensCity/USP/apps/autoload/citypulse-usp-application.ear' : Error while trying to resolve the classpath of the ejbjars and wars of the ear : 'file:/home/sfrb6920/SensCity/USP/apps/autoload/citypulse-usp-application.ear': org.objectweb.jonas.ear.lib.EarClassPathManagerException: Error while reading manifest file from the file citypulse-usp-ws-external.war : error in opening zip file |
Je ne connais pas beaucoup Jonas mais voici ce que j'en comprends:
- Jonas doit générer des webapps à partir d'ejb annoté
- Pour cela il les crée dans un dossier temporaire pour l'empaqueter en WAR
- Problème: il ne crée pas pas le fichier temporaire dans /tmp (vérifié avec un watch)
- du coup il peut pas faire le war, ni le déployer...
Je suppose que j'ai du modifier quelque chose d'autre entre temps, sans faire attention, mais je n'arrive pas à trouver quoi.
Avez vous une idée d'où pourrait venir le problème ?
Merci d'avance !