Return-Path: X-Original-To: apmail-geronimo-dev-archive@www.apache.org Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0054C711F for ; Wed, 28 Sep 2011 06:25:27 +0000 (UTC) Received: (qmail 49049 invoked by uid 500); 28 Sep 2011 06:25:24 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 48501 invoked by uid 500); 28 Sep 2011 06:25:22 -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 48168 invoked by uid 99); 28 Sep 2011 06:25:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Sep 2011 06:25:08 +0000 X-ASF-Spam-Status: No, hits=-1998.3 required=5.0 tests=ALL_TRUSTED,FRT_ROLEX,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Sep 2011 06:25:06 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 9237128CB4E for ; Wed, 28 Sep 2011 06:24:45 +0000 (UTC) Date: Wed, 28 Sep 2011 06:24:45 +0000 (UTC) From: "Shawn Jiang (Commented) (JIRA)" To: dev@geronimo.apache.org Message-ID: <1737353262.2745.1317191085600.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (GERONIMO-4861) Deployment Plan XML Parsing - Not add generated namespace names to closing tags MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/GERONIMO-4861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13116225#comment-13116225 ] Shawn Jiang commented on GERONIMO-4861: --------------------------------------- Upgraded jaxb to 2.1.13 in 21 and 22 branches to resolve this issue. > Deployment Plan XML Parsing - Not add generated namespace names to closing tags > ------------------------------------------------------------------------------- > > Key: GERONIMO-4861 > URL: https://issues.apache.org/jira/browse/GERONIMO-4861 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: OpenEJB > Affects Versions: 2.1.6, 2.1.7, 2.2, 2.2.1 > Reporter: Quintin Beukes > Priority: Minor > > When creating a deployment plan and using more than one namespace, but not implicitly specifying the namespaces in all elements, the namespace names are added to the temporary XML file. Though it doesn't add them correctly. I included my original openejb-jar.xml, the error I get through deploy.sh, and the generated XML file (which I reformatted to make it more readable). > You will notice the problem are in the last 2 closing tags of the ns7 (ie. security-2.0) namespace. The ns7 namespace prefix wasn't added to them, and this generates the validator error. > {code:xml|title=original-openejb-jar.xml} > > xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.2" > xmlns:sec="http://geronimo.apache.org/xml/ns/security-2.0" > xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2"> > > > kms > KMSPlatform-ejb > 1.0 > jar > > > > console.dbpool > jdbc_kmsPool > 1.0 > rar > > > console.realm > KMSRealm > 1.0 > car > > > org.springframework > spring-core > 2.5.6 > jar > > > org.springframework > spring-beans > 2.5.6 > jar > > > org.springframework > spring-context > 2.5.6 > jar > > > org.slf4j > slf4j-api > 1.5.5 > jar > > > > hibernate > core > 3.3 > jar > > > hibernate > annotations > 3.4 > jar > > > hibernate > antlr > 2.7.6 > jar > > > hibernate > commons-annotations > 3.4 > jar > > > hibernate > commons-collections > 3.1 > jar > > > hibernate > dom4j > 1.6.1 > jar > > > hibernate > entitymanager > 3.4 > jar > > > hibernate > javassist > 3.9.0.GA > jar > > > hibernate > jpa > 3.0 > jar > > > hibernate > jta > 1.1 > jar > > > hibernate > GeronimoTransactionManager > 1.0 > jar > > > > > > > name="Admin"/> > > > name="Standard User"/> > > > > > {code} > {code:title=Deployment Error} > 2009-09-10 11:43:04,602 ERROR [DeployTool] Error: > org.apache.geronimo.common.DeploymentException: Unable to deploy KMSPlatform-ejb.jar: Error parsing geronimo-openejb.xml with xmlbeans. > For debug purposes, XML content written to: /opt/kms/server/geronimo-2.2-20090908/var/temp/openejb-jar-1373120338936693638.xml > error: does not close tag . > does not close tag . > at org.apache.geronimo.deployment.cli.CommandDeploy.runCommand(CommandDeploy.java:45) > at org.apache.geronimo.deployment.cli.CommandDistribute.executeOnline(CommandDistribute.java:149) > at org.apache.geronimo.deployment.cli.CommandDistribute.execute(CommandDistribute.java:125) > at org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java:168) > at org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45) > at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65) > at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:31) > {code} > {code:xml|title=reformatted /opt/kms/server/geronimo-2.2-20090908/var/temp/openejb-jar-1373120338936693638.xml} > > xmlns:ns2="http://geronimo.apache.org/xml/ns/j2ee/application-1.2" > xmlns:ns3="http://geronimo.apache.org/xml/ns/openejb-clustering-wadi-1.2" > xmlns:ns4="http://geronimo.apache.org/xml/ns/naming-1.2" > xmlns:ns5="http://openejb.apache.org/xml/ns/openejb-jar-2.2" > xmlns:ns6="http://geronimo.apache.org/xml/ns/j2ee/ejb/openejb-2.0" > xmlns:ns7="http://geronimo.apache.org/xml/ns/security-2.0" > xmlns:ns8="http://java.sun.com/xml/ns/persistence" > xmlns:ns9="http://openejb.apache.org/xml/ns/pkgen-2.1"> > > > kms > KMSPlatform-ejb > 1.0 > jar > > > > console.dbpool > jdbc_kmsPool > 1.0 > rar > > > console.realm > KMSRealm > 1.0 > car > > > org.springframework > spring-core > 2.5.6 > jar > > > org.springframework > spring-beans > 2.5.6 > jar > > > org.springframework > spring-context > 2.5.6 > jar > > > org.slf4j > slf4j-api > 1.5.5 > jar > > > hibernate > core > 3.3 > jar > > > hibernate > annotations > 3.4 > jar > > > hibernate > antlr > 2.7.6 > jar > > > hibernate > commons-annotations > 3.4 > jar > > > hibernate > commons-collections > 3.1 > jar > > > hibernate > dom4j > 1.6.1 > jar > > > hibernate > entitymanager > 3.4 > jar > > > hibernate > javassist > 3.9.0.GA > jar > > > hibernate > jpa > 3.0 > jar > > > hibernate > jta > 1.1 > jar > > > hibernate > GeronimoTransactionManager > 1.0 > jar > > > > > xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2" > xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.2" > xmlns:sec="http://geronimo.apache.org/xml/ns/security-2.0"> > > > > > > > > > > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira