Uploaded image for project: 'SwitchYard'
  1. SwitchYard
  2. SWITCHYARD-2255

Switchyard ant installer appends extra empty xmlns attributes to eap configuration files

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: distribution
    • Labels:
      None
    • Environment:

      Ant: 1.9.4
      Maven: 3.2.1
      OS: Ubuntu 14.04 64bit
      JDK (following were tested):

      • OpenJDK 1.7.0_55
      • Oracle JDK 1.7.0_65
        Switchyard: 2.0.0.Alpha2
    • Steps to Reproduce:
      Hide

      1) Prepare 2 fresh instances of EAP 6.3.0.GA.
      2) git clone https://github.com/jboss-switchyard/release.git
      3) git checkout 2.0.0.Alpha2
      4) mvn clean install -Djboss.home=<fresh-instance-1> -DskipTests
      => Intallation of switchyard to fresh-instance-1 works!
      5) unzip release/installer/target/switchyard-installer.zip
      6) ant -verbose (in switchyard-installer-2.0)
      7) Setup correct path to eap instance: <fresh-instance-2>
      => Installation of switchyard to fresh-instance-2 is successful, but eap cannot be started!

      Show
      1) Prepare 2 fresh instances of EAP 6.3.0.GA. 2) git clone https://github.com/jboss-switchyard/release.git 3) git checkout 2.0.0.Alpha2 4) mvn clean install -Djboss.home= <fresh-instance-1> -DskipTests => Intallation of switchyard to fresh-instance-1 works! 5) unzip release/installer/target/switchyard-installer.zip 6) ant -verbose (in switchyard-installer-2.0) 7) Setup correct path to eap instance: <fresh-instance-2> => Installation of switchyard to fresh-instance-2 is successful, but eap cannot be started!
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Remove all xml attributes xmlns="" from server configuration files.

      Show
      Remove all xml attributes xmlns="" from server configuration files.

      Description

      Switchyard ant installer appends extra empty xmlns attributes (xmlns="") to eap configuration files. Server cannot be started. It throws XMLStreamException.

      =========================================================================
      
        JBoss Bootstrap Environment
      
        JBOSS_HOME: /home/mbasovni/apps/eap/eap-6.3.0-tmp4/jboss-eap-6.3
      
        JAVA: /usr/lib/jvm/java-7-oracle/bin/java
      
        JAVA_OPTS:  -server -XX:+UseCompressedOops -verbose:gc -Xloggc:"/home/mbasovni/apps/eap/eap-6.3.0-tmp4/jboss-eap-6.3/standalone/log/gc.log" -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=3M -XX:-TraceClassUnloading -Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.modules.policy-permissions=true
      
      =========================================================================
      
      WARNING: Failed to load the specified log manager class org.jboss.logmanager.LogManager
      Aug 06, 2014 4:12:53 PM org.jboss.msc.service.ServiceContainerImpl <clinit>
      INFO: JBoss MSC version 1.1.5.Final-redhat-1
      Aug 06, 2014 4:12:53 PM org.jboss.as.server.ApplicationServerService start
      INFO: JBAS015899: JBoss EAP 6.3.0.GA (AS 7.4.0.Final-redhat-19) starting
      Aug 06, 2014 4:12:53 PM org.jboss.as.server.ServerService boot
      ERROR: JBAS015956: Caught exception during boot
      org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS014676: Failed to parse configuration
      	at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:141)
      	at org.jboss.as.server.ServerService.boot(ServerService.java:321)
      	at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:254)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[25,5]
      Message: JBAS014789: Unexpected element 'extension' encountered
      	at org.jboss.as.controller.parsing.ParseUtils.unexpectedElement(ParseUtils.java:86)
      	at org.jboss.as.controller.parsing.ParseUtils.requireNamespace(ParseUtils.java:232)
      	at org.jboss.as.controller.parsing.ExtensionXml.parseExtensions(ExtensionXml.java:107)
      	at org.jboss.as.server.parsing.StandaloneXml.readServerElement_1_4(StandaloneXml.java:435)
      	at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:145)
      	at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:107)
      	at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)
      	at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)
      	at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:133)
      	... 3 more
      
      Aug 06, 2014 4:12:53 PM org.jboss.as.server.ServerService boot
      FATAL: JBAS015957: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  tcunning Thomas Cunningham
                  Reporter:
                  mbasovni Martin Basovnik
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: