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

Invalid security configuration in client based quickstarts

XMLWordPrintable

      With JBoss EAP 7.1.0.ER1, allow-all-sasl-mechanism element was removed from Elytron schemas. This is rendering multiple quickstarts with clients unusable:

      INFO: ELY00001: WildFly Elytron version 1.1.0.Beta52-redhat-1
      [WARNING] 
      java.lang.ExceptionInInitializerError
      	at org.wildfly.security.auth.client.AuthenticationContext.lambda$static$0(AuthenticationContext.java:49)
      	at org.wildfly.common.context.ContextManager.getPrivileged(ContextManager.java:282)
      	at org.wildfly.security.auth.client.AuthenticationContext.captureCurrent(AuthenticationContext.java:81)
      	at org.jboss.ejb.protocol.remote.RemotingEJBDiscoveryProvider.discover(RemotingEJBDiscoveryProvider.java:81)
      	at org.wildfly.discovery.ConfiguredProvider.discover(ConfiguredProvider.java:45)
      	at org.wildfly.discovery.Discovery.discover(Discovery.java:94)
      	at org.jboss.ejb.client.EJBClientContext.discover(EJBClientContext.java:443)
      	at org.jboss.ejb.client.EJBClientContext.discoverAffinityNone(EJBClientContext.java:766)
      	at org.jboss.ejb.client.EJBClientContext.performLocatedAction(EJBClientContext.java:708)
      	at org.jboss.ejb.client.EJBClientContext.createSession(EJBClientContext.java:685)
      	at org.jboss.ejb.client.EJBClient.createSession(EJBClient.java:293)
      	at org.jboss.ejb.client.EJBRootContext.lookupNative(EJBRootContext.java:154)
      	at org.wildfly.naming.client.AbstractContext.lookup(AbstractContext.java:84)
      	at org.wildfly.naming.client.WildFlyRootContext.lookup(WildFlyRootContext.java:150)
      	at javax.naming.InitialContext.lookup(InitialContext.java:417)
      	at org.jboss.as.quickstarts.client.Client.main(Client.java:79)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:282)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: org.wildfly.security.auth.client.InvalidAuthenticationConfigurationException: org.wildfly.client.config.ConfigXMLParseException: CONF0005: Unexpected element "allow-all-sasl-mechanisms" in namespace "urn:elytron:1.0" encountered
      	at file:/mnt/hudson_workspace/workspace/eap-7x-quickstarts-matrix/702830d3/manu/out/shopping-cart.DownloadQuickstarts/workspace/jboss-eap-7.1.0.Beta1-quickstarts/shopping-cart/client/target/classes/META-INF/wildfly-config.xml:28:46
      	at org.wildfly.security.auth.client.DefaultAuthenticationContextProvider.lambda$static$0(DefaultAuthenticationContextProvider.java:40)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at org.wildfly.security.auth.client.DefaultAuthenticationContextProvider.<clinit>(DefaultAuthenticationContextProvider.java:36)
      	... 22 more
      Caused by: org.wildfly.client.config.ConfigXMLParseException: CONF0005: Unexpected element "allow-all-sasl-mechanisms" in namespace "urn:elytron:1.0" encountered
      	at file:/mnt/hudson_workspace/workspace/eap-7x-quickstarts-matrix/702830d3/manu/out/shopping-cart.DownloadQuickstarts/workspace/jboss-eap-7.1.0.Beta1-quickstarts/shopping-cart/client/target/classes/META-INF/wildfly-config.xml:28:46
      	at org.wildfly.client.config.ConfigurationXMLStreamReader.unexpectedElement(ConfigurationXMLStreamReader.java:245)
      	at org.wildfly.security.auth.client.ElytronXmlParser.parseAuthenticationConfigurationType(ElytronXmlParser.java:758)
      	at org.wildfly.security.auth.client.ElytronXmlParser.parseAuthenticationConfigurationsType(ElytronXmlParser.java:341)
      	at org.wildfly.security.auth.client.ElytronXmlParser.parseAuthenticationClientType(ElytronXmlParser.java:273)
      	at org.wildfly.security.auth.client.ElytronXmlParser.parseAuthenticationClientConfiguration(ElytronXmlParser.java:185)
      	at org.wildfly.security.auth.client.ElytronXmlParser.parseAuthenticationClientConfiguration(ElytronXmlParser.java:146)
      	at org.wildfly.security.auth.client.DefaultAuthenticationContextProvider.lambda$static$0(DefaultAuthenticationContextProvider.java:38)
      	... 24 more

      Quickstarts affected:

      • ejb-asynchronous
      • ejb-remote
      • helloworld-jms
      • shopping-cart

              tomazcerar Tomaž Cerar (Inactive)
              mjurc@redhat.com Michal Jurc
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: