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

Invalid security configuration in client based quickstarts

XMLWordPrintable

      With JBoss EAP 7.1.0.DR18, use-service-loader-providers element was removed from Elytron schemas. This is rendering multiple quickstarts with clients unusable:

      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.remoting3.Endpoint.getConnectedIdentity(Endpoint.java:139)
      	at org.jboss.remoting3.Endpoint.getConnection(Endpoint.java:216)
      	at org.jboss.ejb.protocol.remote.RemotingEJBDiscoveryProvider.lambda$discover$0(RemotingEJBDiscoveryProvider.java:103)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at org.jboss.ejb.protocol.remote.RemotingEJBDiscoveryProvider.discover(RemotingEJBDiscoveryProvider.java:103)
      	at org.wildfly.discovery.impl.AggregateDiscoveryProvider.discover(AggregateDiscoveryProvider.java:58)
      	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:442)
      	at org.jboss.ejb.client.EJBClientContext.discoverAffinityNone(EJBClientContext.java:714)
      	at org.jboss.ejb.client.EJBClientContext.performLocatedAction(EJBClientContext.java:701)
      	at org.jboss.ejb.client.EJBClientContext.createSession(EJBClientContext.java:681)
      	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:88)
      	at org.wildfly.naming.client.WildFlyRootContext.lookup(WildFlyRootContext.java:153)
      	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 "use-service-loader-providers" 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:32:50
      	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)
      	... 27 more
      Caused by: org.wildfly.client.config.ConfigXMLParseException: CONF0005: Unexpected element "use-service-loader-providers" 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:32:50
      	at org.wildfly.client.config.ConfigurationXMLStreamReader.unexpectedElement(ConfigurationXMLStreamReader.java:245)
      	at org.wildfly.security.auth.client.ElytronXmlParser.parseAuthenticationConfigurationType(ElytronXmlParser.java:779)
      	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)
      	... 29 more
      [WARNING] thread Thread[XNIO-1 I/O-1,5,org.jboss.as.quickstarts.client.Client] was interrupted but is still alive after waiting at least 14999msecs
      [WARNING] thread Thread[XNIO-1 I/O-1,5,org.jboss.as.quickstarts.client.Client] will linger despite being asked to die via interruption
      [WARNING] thread Thread[XNIO-1 Accept,5,org.jboss.as.quickstarts.client.Client] will linger despite being asked to die via interruption
      [WARNING] NOTE: 2 thread(s) did not finish despite being asked to  via interruption. This is not a problem with exec:java, it is a problem with the running code. Although not serious, it should be remedied.
      [WARNING] Couldn't destroy threadgroup org.codehaus.mojo.exec.ExecJavaMojo$IsolatedThreadGroup[name=org.jboss.as.quickstarts.client.Client,maxpri=10]
      java.lang.IllegalThreadStateException
      	at java.lang.ThreadGroup.destroy(ThreadGroup.java:778)
      	at org.codehaus.mojo.exec.ExecJavaMojo.execute(ExecJavaMojo.java:321)
      	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
      	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
      	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
      	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
      	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
      	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
      	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
      	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
      	at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
      	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.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

      This element should be replaced by <providers><use-service-loader/></providers> in all the quickstarts affected:

      • ejb-asynchronous
      • ejb-multi-server
      • ejb-remote
      • ejb-security-interceptors
      • helloworld-jms
      • shopping-cart

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

                Created:
                Updated:
                Resolved: