users@glassfish.java.net

Re: [Glassfish 3] Deployment fails on a NullPointerException.

From: <glassfish_at_javadesktop.org>
Date: Sat, 10 Apr 2010 00:01:04 PDT

If I can minimize the ear size, I will do so.

I try to investigate, and to put messages.

[u]Problem starts in ApplicationDeployer.java:
[/u]
    protected final void generateAppClientFacade() throws IOException, URISyntaxException {
        OutputJarArchive facadeArchive = new OutputJarArchive();
        /*
         * Make sure the directory subtree to contain the facade exists. If the
         * client URI within the EAR contains a directory then that directory
         * probably does not exist in the generated dir for this app...not yet
         * anyway...it is about to exist.
         */
        final File facadeFile = new File(facadeServerURI(dc));
        if ( ! facadeFile.getParentFile().exists()) {
            facadeFile.getParentFile().mkdirs();
        }
        facadeArchive.create(facadeServerURI(dc));
        ReadableArchive source = dc.getSource();
[b] Manifest sourceManifest = source.getManifest();
[/b] Manifest facadeManifest = facadeArchive.getManifest();
        initGeneratedManifest(sourceManifest, facadeManifest,
                facadeClassPath(), PUScanTargets(), application);


with a manifest missing.

Regards,

Grunt.
[Message sent by forum member 'grunt2000']

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