Uploaded image for project: 'WildFly Maven Plugin'
  1. WildFly Maven Plugin
  2. WFMP-94

The execute-commands goal fails on openjdk version "1.8.0_161"

XMLWordPrintable

      If the execute-commands goal is executed on OpenJDK 1.8.0_161 the following failure occurs.

      [INFO] Scanning for projects...
      [INFO] 
      [INFO] ------------------------------------------------------------------------
      [INFO] Building simple-servlet 1.0.0-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO] 
      [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ simple-servlet ---
      [INFO] 
      [INFO] --- wildfly-maven-plugin:1.2.1.Final:execute-commands (default-cli) @ simple-servlet ---
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 0.681 s
      [INFO] Finished at: 2018-02-06T12:01:16-08:00
      [INFO] Final Memory: 13M/180M
      [INFO] ------------------------------------------------------------------------
      ---------------------------------------------------
      constituent[0]: file:/home/jperkins/apps/maven/conf/logging/
      constituent[1]: file:/home/jperkins/apps/maven/lib/maven-core-3.5.2.jar
      constituent[2]: file:/home/jperkins/apps/maven/lib/maven-shared-utils-3.1.0.jar
      constituent[3]: file:/home/jperkins/apps/maven/lib/wagon-file-2.12.jar
      constituent[4]: file:/home/jperkins/apps/maven/lib/plexus-interpolation-1.24.jar
      constituent[5]: file:/home/jperkins/apps/maven/lib/maven-compat-3.5.2.jar
      constituent[6]: file:/home/jperkins/apps/maven/lib/plexus-component-annotations-1.7.1.jar
      constituent[7]: file:/home/jperkins/apps/maven/lib/plexus-utils-3.1.0.jar
      constituent[8]: file:/home/jperkins/apps/maven/lib/guice-4.0-no_aop.jar
      constituent[9]: file:/home/jperkins/apps/maven/lib/maven-builder-support-3.5.2.jar
      constituent[10]: file:/home/jperkins/apps/maven/lib/maven-embedder-3.5.2.jar
      constituent[11]: file:/home/jperkins/apps/maven/lib/maven-resolver-connector-basic-1.1.0.jar
      constituent[12]: file:/home/jperkins/apps/maven/lib/maven-resolver-util-1.1.0.jar
      constituent[13]: file:/home/jperkins/apps/maven/lib/maven-resolver-impl-1.1.0.jar
      constituent[14]: file:/home/jperkins/apps/maven/lib/maven-model-3.5.2.jar
      constituent[15]: file:/home/jperkins/apps/maven/lib/maven-resolver-provider-3.5.2.jar
      constituent[16]: file:/home/jperkins/apps/maven/lib/maven-settings-3.5.2.jar
      constituent[17]: file:/home/jperkins/apps/maven/lib/slf4j-api-1.7.25.jar
      constituent[18]: file:/home/jperkins/apps/maven/lib/maven-resolver-transport-wagon-1.1.0.jar
      constituent[19]: file:/home/jperkins/apps/maven/lib/org.eclipse.sisu.plexus-0.3.3.jar
      constituent[20]: file:/home/jperkins/apps/maven/lib/jsr250-api-1.0.jar
      constituent[21]: file:/home/jperkins/apps/maven/lib/jansi-1.16.jar
      constituent[22]: file:/home/jperkins/apps/maven/lib/maven-resolver-spi-1.1.0.jar
      constituent[23]: file:/home/jperkins/apps/maven/lib/maven-settings-builder-3.5.2.jar
      constituent[24]: file:/home/jperkins/apps/maven/lib/jcl-over-slf4j-1.7.25.jar
      constituent[25]: file:/home/jperkins/apps/maven/lib/maven-slf4j-provider-3.5.2.jar
      constituent[26]: file:/home/jperkins/apps/maven/lib/commons-lang3-3.5.jar
      constituent[27]: file:/home/jperkins/apps/maven/lib/commons-io-2.5.jar
      constituent[28]: file:/home/jperkins/apps/maven/lib/plexus-cipher-1.7.jar
      constituent[29]: file:/home/jperkins/apps/maven/lib/commons-cli-1.4.jar
      constituent[30]: file:/home/jperkins/apps/maven/lib/maven-model-builder-3.5.2.jar
      constituent[31]: file:/home/jperkins/apps/maven/lib/maven-repository-metadata-3.5.2.jar
      constituent[32]: file:/home/jperkins/apps/maven/lib/maven-artifact-3.5.2.jar
      constituent[33]: file:/home/jperkins/apps/maven/lib/cdi-api-1.0.jar
      constituent[34]: file:/home/jperkins/apps/maven/lib/aopalliance-1.0.jar
      constituent[35]: file:/home/jperkins/apps/maven/lib/wagon-provider-api-2.12.jar
      constituent[36]: file:/home/jperkins/apps/maven/lib/plexus-sec-dispatcher-1.4.jar
      constituent[37]: file:/home/jperkins/apps/maven/lib/javax.inject-1.jar
      constituent[38]: file:/home/jperkins/apps/maven/lib/org.eclipse.sisu.inject-0.3.3.jar
      constituent[39]: file:/home/jperkins/apps/maven/lib/guava-20.0.jar
      constituent[40]: file:/home/jperkins/apps/maven/lib/maven-plugin-api-3.5.2.jar
      constituent[41]: file:/home/jperkins/apps/maven/lib/wagon-http-2.12-shaded.jar
      constituent[42]: file:/home/jperkins/apps/maven/lib/maven-resolver-api-1.1.0.jar
      ---------------------------------------------------
      Exception in thread "main" javax.xml.parsers.FactoryConfigurationError: Provider __redirected.__SAXParserFactory not found
      	at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:200)
      	at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:152)
      	at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:232)
      	at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:127)
      	at jdk.xml.internal.JdkXmlUtils.getSAXFactory(JdkXmlUtils.java:235)
      	at jdk.xml.internal.JdkXmlUtils.<clinit>(JdkXmlUtils.java:78)
      	at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.<init>(SchemaParsingConfig.java:319)
      	at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.<init>(SchemaParsingConfig.java:254)
      	at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.<init>(XSDHandler.java:480)
      	at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.<init>(XSDHandler.java:487)
      	at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.<init>(XMLSchemaLoader.java:357)
      	at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.<init>(XMLSchemaLoader.java:292)
      	at com.sun.org.apache.xerces.internal.jaxp.validation.XMLSchemaFactory.<init>(XMLSchemaFactory.java:97)
      	at javax.xml.validation.SchemaFactoryFinder._newFactory(SchemaFactoryFinder.java:232)
      	at javax.xml.validation.SchemaFactoryFinder.newFactory(SchemaFactoryFinder.java:146)
      	at javax.xml.validation.SchemaFactory.newInstance(SchemaFactory.java:213)
      	at __redirected.__SchemaFactory.<clinit>(__SchemaFactory.java:65)
      	at __redirected.__JAXPRedirected.initAll(__JAXPRedirected.java:94)
      	at org.wildfly.plugin.cli.ModuleEnvironment.initJaxp(ModuleEnvironment.java:69)
      	at org.wildfly.plugin.cli.CommandExecutor.executeCommands(CommandExecutor.java:114)
      	at org.wildfly.plugin.cli.CommandExecutor.execute(CommandExecutor.java:87)
      	at org.wildfly.plugin.cli.CommandExecutor.execute(CommandExecutor.java:106)
      	at org.wildfly.plugin.cli.ExecuteCommandsMojo.execute(ExecuteCommandsMojo.java:257)
      	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
      	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:309)
      	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
      	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
      	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:955)
      	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:290)
      	at org.apache.maven.cli.MavenCli.main(MavenCli.java:194)
      	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)
      Caused by: java.lang.ClassNotFoundException: __redirected/__SAXParserFactory
      	at java.lang.Class.forName0(Native Method)
      	at java.lang.Class.forName(Class.java:348)
      	at javax.xml.parsers.FactoryFinder.getProviderClass(FactoryFinder.java:124)
      	at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:188)
      	... 44 more
      

      Somehow the CLI tests pass, but executing from the command line fails.

              jperkins-rhn James Perkins
              jperkins-rhn James Perkins
              Votes:
              3 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated:
                Resolved: