Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-28372

[GSS](8.0.z) JBoss EAP installation manager fails to install keycloak-saml-adapter “Unexpected element '{urn:jboss:galleon:layer-spec:2.0}layer-spec”

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • 8.0 Update 6
    • 8.0 Update 4
    • Security
    • None
    • False
    • None
    • False

      [Environment]:

      • JBoss EAP 8.0.x

      [Issue Summary]:
      When installing the feature pack for the keycloak-saml-adapter, the same fails with the stack trace below:

      $ ./bin/jboss-eap-installation-manager.sh feature-pack add --layers=keycloak-client-saml,keycloak-client-saml-ejb --fpl=org.keycloak:keycloak-saml-adapter-galleon-pack -vv
      Installing feature pack `org.keycloak:keycloak-saml-adapter-galleon-pack` in server `/home/gabsanto/Development/WorkTools/jboss/jboss-eap-8.0/.`
      Continue adding the feature pack? [y/N]:y
      Applying changes
      
      Feature-packs resolved.                                                           
      
      
      Failed to parse provisioning configuration: /layers/standalone/keycloak-client-saml/layer-spec.xml
      
      org.jboss.galleon.ProvisioningException: Failed to parse /layers/standalone/keycloak-client-saml/layer-spec.xml
      	at org.jboss.prospero//org.jboss.galleon.xml.XmlParsers.parseConfigLayerSpec(XmlParsers.java:73)
      	at org.jboss.prospero//org.jboss.galleon.runtime.FeaturePackRuntimeBuilder.getConfigLayer(FeaturePackRuntimeBuilder.java:219)
      	at org.jboss.prospero//org.jboss.galleon.runtime.ProvisioningRuntimeBuilder.resolveConfigLayer(ProvisioningRuntimeBuilder.java:518)
      	at org.jboss.prospero//org.jboss.galleon.runtime.ProvisioningRuntimeBuilder.resolveConfigLayer(ProvisioningRuntimeBuilder.java:499)
      	at org.jboss.prospero//org.jboss.galleon.runtime.ProvisioningRuntimeBuilder.includeLayer(ProvisioningRuntimeBuilder.java:471)
      	at org.jboss.prospero//org.jboss.galleon.runtime.ProvisioningRuntimeBuilder.popConfig(ProvisioningRuntimeBuilder.java:461)
      	at org.jboss.prospero//org.jboss.galleon.runtime.ProvisioningRuntimeBuilder.doBuild(ProvisioningRuntimeBuilder.java:218)
      	at org.jboss.prospero//org.jboss.galleon.runtime.ProvisioningRuntimeBuilder.build(ProvisioningRuntimeBuilder.java:157)
      	at org.jboss.prospero//org.jboss.galleon.ProvisioningManager.getRuntimeInternal(ProvisioningManager.java:644)
      	at org.jboss.prospero//org.jboss.galleon.ProvisioningManager.doProvision(ProvisioningManager.java:649)
      	at org.jboss.prospero//org.jboss.galleon.ProvisioningManager.provision(ProvisioningManager.java:409)
      	at org.jboss.prospero//org.wildfly.prospero.actions.PrepareCandidateAction.lambda$doBuildUpdate$0(PrepareCandidateAction.java:130)
      	at org.jboss.prospero//org.wildfly.prospero.galleon.GalleonUtils.executeGalleon(GalleonUtils.java:107)
      	at org.jboss.prospero//org.wildfly.prospero.actions.PrepareCandidateAction.doBuildUpdate(PrepareCandidateAction.java:128)
      	at org.jboss.prospero//org.wildfly.prospero.actions.PrepareCandidateAction.buildCandidate(PrepareCandidateAction.java:111)
      	at org.jboss.prospero//org.wildfly.prospero.actions.PrepareCandidateAction.buildCandidate(PrepareCandidateAction.java:89)
      	at org.jboss.prospero//org.wildfly.prospero.actions.PrepareCandidateAction.buildCandidate(PrepareCandidateAction.java:71)
      	at org.jboss.prospero//org.wildfly.prospero.actions.FeaturesAddAction.install(FeaturesAddAction.java:385)
      	at org.jboss.prospero//org.wildfly.prospero.actions.FeaturesAddAction.addFeaturePackWithLayers(FeaturesAddAction.java:250)
      	at org.jboss.prospero//org.wildfly.prospero.cli.commands.FeaturesCommand$AddCommand.call(FeaturesCommand.java:147)
      	at org.jboss.prospero//org.wildfly.prospero.cli.commands.FeaturesCommand$AddCommand.call(FeaturesCommand.java:51)
      	at org.jboss.prospero//picocli.CommandLine.executeUserObject(CommandLine.java:2041)
      	at org.jboss.prospero//picocli.CommandLine.access$1500(CommandLine.java:148)
      	at org.jboss.prospero//picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
      	at org.jboss.prospero//picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
      	at org.jboss.prospero//picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
      	at org.jboss.prospero//picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
      	at org.jboss.prospero//picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
      	at org.jboss.prospero//picocli.CommandLine.execute(CommandLine.java:2170)
      	at org.jboss.prospero//org.wildfly.prospero.cli.CliMain.main(CliMain.java:62)
      	at org.jboss.modules.Module.run(Module.java:346)
      	at org.jboss.modules.Module.run(Module.java:314)
      	at org.jboss.modules.Main.main(Main.java:603)
      Caused by: org.jboss.galleon.ProvisioningException: Failed to parse config layer spec
      	at org.jboss.prospero//org.jboss.galleon.xml.XmlParsers.parseConfigLayerSpec(XmlParsers.java:83)
      	at org.jboss.prospero//org.jboss.galleon.xml.XmlParsers.parseConfigLayerSpec(XmlParsers.java:71)
      	... 32 more
      Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[2,82]
      Message: Unexpected element '{urn:jboss:galleon:layer-spec:2.0}layer-spec'
      	at org.jboss.staxmapper@1.4.0.Final-redhat-00001//org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:120)
      	at org.jboss.staxmapper@1.4.0.Final-redhat-00001//org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:76)
      	at org.jboss.prospero//org.jboss.galleon.xml.XmlParsers.doParse(XmlParsers.java:111)
      	at org.jboss.prospero//org.jboss.galleon.xml.XmlParsers.parse(XmlParsers.java:66)
      	at org.jboss.prospero//org.jboss.galleon.xml.XmlParsers.parseConfigLayerSpec(XmlParsers.java:81)
      	... 33 more
      

      [Support Engineer Analysis]:
      It happens for any version of EAP 8.0.x, something has broken with the latest version of Keycloak SAML adapter. ~3 weeks ago I was able to install the adapter without issues via eap installation manager for:
      https://issues.redhat.com/browse/EAPSUP-1651
      https://issues.redhat.com/browse/SSOSUP-1020

      Comparing the layer-spec.xml of keycloak-client-saml between version 22 and 24, there are differences. Maybe the spec is wrong, I have added to the ticket both files from both versions.

      Steps to Reproduce:
      1. Download the EAP 8.0 zip
      2. Try to install the adapter using the command:

      ./bin/jboss-eap-installation-manager.sh feature-pack add --layers=keycloak-client-saml,keycloak-client-saml-ejb --fpl=org.keycloak:keycloak-saml-adapter-galleon-pack -vv
      

      Expected Result:

      • Be able to install the Keycloak SAML adapter via feature pack.

      Actual Result:

      • Not possible to install the adapter

      [Question to Engineering]:

      • Can we have a fix as soon as possible? Some customers migrating to EAP 8.0 are facing this issue. Also, this seems to affect anyone trying to install the adapter.

              Unassigned Unassigned
              rhn-support-ivassile Ilia Vassilev
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated: