3 Replies Latest reply on Mar 25, 2009 9:03 AM by Olivier Thierry

    Deploying on Glassfish causes FileNotFoundException

    Olivier Thierry Apprentice

      Hi,


      I have an EAR built with Maven and that uses Seam. I try to deploy it on Glassfish v2.1 but I have a FileNotFoundException for Seam jar that is in the EAR :


      [#|2009-03-23T14:34:58.366+0100|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=17;_ThreadName=Thread-73;_RequestID=b3845fdf-96f9-4fec-86c5-aa92cd876509;|Impossible de développer l'entrée null dans la destination C:\t4-dev\sun\appserver\domains\domain1\applications\j2ee-apps\t4-ihm-self-ear-1.0-SNAPSHOT\jboss-seam-2.1.1.GA_jar
      java.io.IOException: Erreur d'ouverture de l'archive C:\t4-dev\sun\appserver\domains\domain1\applications\j2ee-apps\t4-ihm-self-ear-1.0-SNAPSHOT\jboss-seam-2.1.1.GA.jar ; pour plus d'informations, reportez-vous au fichier journal du serveur
           at com.sun.enterprise.deployment.backend.J2EEModuleExploder.explodeJar(J2EEModuleExploder.java:359)
           at com.sun.enterprise.deployment.backend.J2EEModuleExploder.explodeEar(J2EEModuleExploder.java:296)
           at com.sun.enterprise.deployment.backend.AppDeployer.explodeArchive(AppDeployer.java:294)
           at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:207)
           at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
           at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
           at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
           at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
           at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
           at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
           at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
           at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
      Caused by: java.io.FileNotFoundException: C:\t4-dev\sun\appserver\domains\domain1\applications\j2ee-apps\t4-ihm-self-ear-1.0-SNAPSHOT\jboss-seam-2.1.1.GA.jar (Le fichier spécifié est introuvable)
           at java.util.zip.ZipFile.open(Native Method)
           at java.util.zip.ZipFile.<init>(ZipFile.java:114)
           at java.util.jar.JarFile.<init>(JarFile.java:133)
           at java.util.jar.JarFile.<init>(JarFile.java:97)
           at com.sun.enterprise.deployment.backend.J2EEModuleExploder.explodeJar(J2EEModuleExploder.java:311)
           ... 11 more
      |#]
      
      [#|2009-03-23T14:35:03.399+0100|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=17;_ThreadName=Thread-73;_RequestID=b3845fdf-96f9-4fec-86c5-aa92cd876509;|Une exception s''est produite dans la phase J2EEC.
      com.sun.enterprise.deployment.backend.IASDeploymentException: Erreur d'ouverture de l'archive C:\t4-dev\sun\appserver\domains\domain1\applications\j2ee-apps\t4-ihm-self-ear-1.0-SNAPSHOT\jboss-seam-2.1.1.GA.jar ; pour plus d'informations, reportez-vous au fichier journal du serveur
           at com.sun.enterprise.deployment.backend.J2EEModuleExploder.explodeJar(J2EEModuleExploder.java:359)
           at com.sun.enterprise.deployment.backend.J2EEModuleExploder.explodeEar(J2EEModuleExploder.java:296)
           at com.sun.enterprise.deployment.backend.AppDeployer.explodeArchive(AppDeployer.java:294)
           at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:207)
           at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
           at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
           at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
           at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
           at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
           at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
           at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
           at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
      |#]



      Anyone has an idea what happens ?


      Regards,


      Olivier