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

Bootable JAR plugin - Dev Mode "shutdown" fails with "A required class was missing" (org/wildfly/client/config/ConfigXMLParseException)

XMLWordPrintable

    • False
    • None
    • False
    • Interactive Demo/Tutorial, User Experience
    • Workaround Exists
    • Hide

      fburzigo , as a workaround, you can add the dependencies to the plugin in the jaxrs pom.xml

      Show
      fburzigo , as a workaround, you can add the dependencies to the plugin in the jaxrs pom.xml
    • Hide

      Everything should work properly, and the last step should undeploy and shutdown WildFly.
      So far so good, now let's try with the productized testable bits:

      The last step should fail as described.

      Show
      Clone the https://github.com/wildfly-extras/wildfly-jar-maven-plugin repo Checkout the 11.0.0.Beta2 tag Build it Follow the procedure at https://github.com/wildfly-extras/wildfly-jar-maven-plugin/tree/11.0.0.Beta2/examples/dev-mode#development-mode-with-re-packaging Everything should work properly, and the last step should undeploy and shutdown WildFly. So far so good, now let's try with the productized testable bits: Get the testable XP 5 Maven repository replace the Bootable JAR plugin version in the examples/pom.xml with the one from the testable artifact in the Maven repo replace the feature pack definition with the G:A:V for the one in the Maven repo Build the project (set the -Dmaven.repo.local property to the testable XP 5 Maven repo) follow the procedure at https://github.com/wildfly-extras/wildfly-jar-maven-plugin/tree/11.0.0.Beta2/examples/dev-mode#development-mode-with-re-packaging The last step should fail as described.

      We started seeing this failure in an internal test suite test, that verifies the following procedure: https://github.com/wildfly-extras/wildfly-jar-maven-plugin/tree/11.0.0.Beta2/examples/dev-mode#development-mode-with-re-packaging but using current XP 5 testable bits and plugin.

      When executing the last step, i.e.:

      When done: mvn wildfly-jar:shutdown

      the plugin fails with the following traces:

      Execution default-cli of goal org.wildfly.plugins:wildfly-jar-maven-plugin:9.0.1.Final-redhat-20240325:shutdown failed: A required class was missing while executing org.wildfly.plugins:wildfly-jar-maven-plugin:9.0.1.Final-redhat-20240325:shutdown: org/wildfly/client/config/ConfigXMLParseException
      [ERROR] -----------------------------------------------------
      [ERROR] realm = plugin>org.wildfly.plugins:wildfly-jar-maven-plugin:9.0.1.Final-redhat-20240325
      [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
      [ERROR] urls[0] = file:/home/fburzigo/Temp/TBD/jboss-eap-8.0.0.GA-maven-repository/maven-repository/org/wildfly/plugins/wildfly-jar-maven-plugin/9.0.1.Final-redhat-...
      ...

      This doesn't happen with the latest pair of WildFly (32.0.0.Beta1) and community plugin (11.0.0.Beta2).

              jdenise@redhat.com Jean Francois Denise
              fburzigo Fabio Burzigotti
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: