users@glassfish.java.net

Re: Glassfish deployment problem

From: <glassfish_at_javadesktop.org>
Date: Thu, 28 Jan 2010 10:39:25 PST

Here's the message that appears in server.log:

WARNING: mbean.deploy_failed
com.sun.enterprise.admin.common.exception.DeploymentException: Unrecognized module type for C:\temp2\MyApp; the archive may be incorrectly constructed, non-existent, or inaccessible from the server.
For example, an application client jar should include the proper manifest file entry, and an ejb jar should contain at least one EJB.
        at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.getTypeFromFile(DeploymentServiceUtils.java:1273)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:752)
        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.IOException: Cannot determine the Java EE module type for C:\temp2\MyApp
        at com.sun.enterprise.deployment.archivist.PluggableArchivistsHelper.getArchivistForArchive(PluggableArchivistsHelper.java:140)
        at com.sun.enterprise.deployment.archivist.PluggableArchivistsHelper.getArchivistForArchive(PluggableArchivistsHelper.java:98)
        at com.sun.enterprise.deployment.archivist.ArchivistFactory.getArchivistForArchive(ArchivistFactory.java:104)
        at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.getTypeFromFile(DeploymentServiceUtils.java:1268)
        ... 3 more

The contents of C:\temp2\MyApp:

META-INF
META-INF/MANIFEST.MF
WEB-INF
WEB-INF/classes
WEB-INF/classes/*/*/*.class
WEB-INF/lib
WEB-INF/lib/*.jar
WEB-INF/wsit-*.xml
[Message sent by forum member 'jfowler2' (jeffrey.fowler_at_lmco.com)]

http://forums.java.net/jive/thread.jspa?messageID=383545