Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 92437 invoked from network); 18 Aug 2007 03:07:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Aug 2007 03:07:01 -0000 Received: (qmail 30192 invoked by uid 500); 18 Aug 2007 03:06:58 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 29837 invoked by uid 500); 18 Aug 2007 03:06:57 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 29826 invoked by uid 99); 18 Aug 2007 03:06:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Aug 2007 20:06:57 -0700 X-ASF-Spam-Status: No, hits=-98.8 required=10.0 tests=ALL_TRUSTED,DNS_FROM_DOB,RCVD_IN_DOB X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Aug 2007 03:07:23 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2B347714159 for ; Fri, 17 Aug 2007 20:06:37 -0700 (PDT) Message-ID: <24483879.1187406397163.JavaMail.jira@brutus> Date: Fri, 17 Aug 2007 20:06:37 -0700 (PDT) From: "Donald Woods (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Closed: (GERONIMO-3420) Remote deploy of an EAR without an application.xml plan fails In-Reply-To: <13891823.1187299650998.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/GERONIMO-3420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Donald Woods closed GERONIMO-3420. ---------------------------------- Resolution: Fixed Committed revision 567215 in branches/2.0 (2.0.2-SNAPSHOT) Committed revision 567217 in trunk (2.1-SNAPSHOT) > Remote deploy of an EAR without an application.xml plan fails > ------------------------------------------------------------- > > Key: GERONIMO-3420 > URL: https://issues.apache.org/jira/browse/GERONIMO-3420 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: deployment > Affects Versions: 2.0, 2.0.x, 2.1 > Environment: Two Linux boxes on the same subnet with remoteDeployAddress reconfigured from localhost to the external interface > Reporter: Donald Woods > Assignee: Donald Woods > Priority: Critical > Fix For: 2.0.x, 2.1 > > > Remote deploy of an EAR that doesn't have a application.xml fails, because the EARConfigBuilder.getEarPlan() is looking for the module/earFile to end with ".ear" to determine if it is an EAR w/o an app plan, but when using the remoteDeployer, the files are created as temp files without an extension, like remote-deploy31452 - > private ApplicationInfo getEarPlan(File planFile, JarFile earFile, ModuleIDBuilder idBuilder) throws DeploymentException { > String specDD; > ApplicationType application = null; > if (earFile != null) { > try { > URL applicationXmlUrl = DeploymentUtil.createJarURL(earFile, "META-INF/application.xml"); > specDD = DeploymentUtil.readAll(applicationXmlUrl); > //we found something called application.xml in the right place, if we can't parse it it's an error > XmlObject xmlObject = XmlBeansUtil.parse(specDD); > application = convertToApplicationSchema(xmlObject).getApplication(); > } catch (XmlException e) { > throw new DeploymentException("Could not parse application.xml", e); > } catch (Exception e) { > //ee5 spec allows optional application.xml, continue with application == null > if (!earFile.getName().endsWith(".ear")) { > return null; > } > //TODO return application.xml that we can make metadata complete? > } > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.