Open
Description
Summary
We performed an upgrade from AMQ version 7.12.3 to 7.13 using an Ansible playbook. Following the upgrade, the bootstrap.xml file was incorrectly generated. As a result, the web console fails to start. The content of the bootstrap.xml file appears to be outdated or incompatible, likely due to changes in the Hawtio console introduced in AMQ 7.13. We're using Ansible Galaxy role version 2.3.2 for this deployment.
Below is the resulting bootstrap.xml file:
<!-- artemis.URI.instance is parsed from artemis.instance by the CLI startup.
This is to avoid situations where you could have spaces or special characters on this URI -->
<server configuration="file:/opt/amq/amq-broker/etc//broker.xml"/>
<!-- The web server is only bound to localhost by default -->
<web path="web" rootRedirectLocation="console">
<binding name="artemis" uri="https://0.0.0.0:8161" keyStorePath="/opt/amq/amq-broker/etc/identity.ks" keyStorePassword="d7162f62-504d-4e17-8ea6-7160092b6f4c">
<app name="branding" url="redhat-branding" war="redhat-branding.war"/>
<app name="plugin" url="artemis-plugin" war="artemis-plugin.war"/>
<app name="console" url="console" war="hawtio.war"/>
<app name="metrics" url="metrics" war="metrics.war"/>
</binding>
</web>
This results in a broker does not want to start
2025-06-20 15:22:00,971 WARN [org.eclipse.jetty.ee9.webapp.WebInfConfiguration] Web application not found /opt/amq/amq-broker-7.13.0/web/redhat-branding.war
2025-06-20 15:22:00,971 WARN [org.eclipse.jetty.ee9.webapp.WebAppContext] Failed startup of context oeje9w.WebAppContext@3a38f122{/redhat-branding,/redhat-branding,null,false,@Connector-0}{/opt/amq/amq-broker-7.13.0/web/redhat-branding.war}
java.io.FileNotFoundException: /opt/amq/amq-broker-7.13.0/web/redhat-branding.war
at org.eclipse.jetty.ee9.webapp.WebInfConfiguration.unpack(WebInfConfiguration.java:295) ~[jetty-ee9-webapp-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.ee9.webapp.WebInfConfiguration.preConfigure(WebInfConfiguration.java:59) ~[jetty-ee9-webapp-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.ee9.webapp.Configurations.preConfigure(Configurations.java:496) ~[jetty-ee9-webapp-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.ee9.webapp.WebAppContext.preConfigure(WebAppContext.java:492) ~[jetty-ee9-webapp-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.ee9.webapp.WebAppContext.doStart(WebAppContext.java:527) ~[jetty-ee9-webapp-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) ~[jetty-util-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) ~[jetty-util-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:113) ~[jetty-util-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:491) ~[jetty-server-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.server.handler.ContextHandler.lambda$doStart$0(ContextHandler.java:754) ~[jetty-server-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.server.handler.ContextHandler$ScopedContext.call(ContextHandler.java:1452) [jetty-server-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:754) [jetty-server-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.ee9.nested.ContextHandler$CoreContextHandler.doStart(ContextHandler.java:2727) [jetty-ee9-nested-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) [jetty-util-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) [jetty-util-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:120) [jetty-util-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:491) [jetty-server-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) [jetty-util-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) [jetty-util-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.server.Server.start(Server.java:641) [jetty-server-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:120) [jetty-util-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:491) [jetty-server-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.server.Server.doStart(Server.java:582) [jetty-server-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) [jetty-util-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.apache.activemq.artemis.component.WebServerComponent.start(WebServerComponent.java:245) [artemis-web-2.40.0.redhat-00004.jar:2.40.0.redhat-00004]
at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.addExternalComponent(ActiveMQServerImpl.java:1007) [artemis-server-2.40.0.redhat-00004.jar:2.40.0.redhat-00004]
at org.apache.activemq.artemis.cli.commands.Run.execute(Run.java:146) [artemis-cli-2.40.0.redhat-00004.jar:2.40.0.redhat-00004]
at org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:221) [artemis-cli-2.40.0.redhat-00004.jar:2.40.0.redhat-00004]
at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:169) [artemis-cli-2.40.0.redhat-00004.jar:2.40.0.redhat-00004]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.base/java.lang.reflect.Method.invoke(Method.java:569) ~[?:?]
at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:149) [artemis-boot.jar:2.40.0.redhat-00004]
at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:61) [artemis-boot.jar:2.40.0.redhat-00004]
2025-06-20 15:22:00,991 WARN [org.eclipse.jetty.ee9.webapp.WebInfConfiguration] Web application not found /opt/amq/amq-broker-7.13.0/web/artemis-plugin.war
2025-06-20 15:22:00,991 WARN [org.eclipse.jetty.ee9.webapp.WebAppContext] Failed startup of context oeje9w.WebAppContext@55c57422{/artemis-plugin,/artemis-plugin,null,false,@Connector-0}{/opt/amq/amq-broker-7.13.0/web/artemis-plugin.war}
java.io.FileNotFoundException: /opt/amq/amq-broker-7.13.0/web/artemis-plugin.war
at org.eclipse.jetty.ee9.webapp.WebInfConfiguration.unpack(WebInfConfiguration.java:295) ~[jetty-ee9-webapp-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.ee9.webapp.WebInfConfiguration.preConfigure(WebInfConfiguration.java:59) ~[jetty-ee9-webapp-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.ee9.webapp.Configurations.preConfigure(Configurations.java:496) ~[jetty-ee9-webapp-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.ee9.webapp.WebAppContext.preConfigure(WebAppContext.java:492) ~[jetty-ee9-webapp-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.ee9.webapp.WebAppContext.doStart(WebAppContext.java:527) ~[jetty-ee9-webapp-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) ~[jetty-util-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) ~[jetty-util-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:113) ~[jetty-util-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:491) ~[jetty-server-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.server.handler.ContextHandler.lambda$doStart$0(ContextHandler.java:754) ~[jetty-server-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.server.handler.ContextHandler$ScopedContext.call(ContextHandler.java:1452) [jetty-server-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:754) [jetty-server-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.ee9.nested.ContextHandler$CoreContextHandler.doStart(ContextHandler.java:2727) [jetty-ee9-nested-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) [jetty-util-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) [jetty-util-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:120) [jetty-util-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:491) [jetty-server-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) [jetty-util-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) [jetty-util-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.server.Server.start(Server.java:641) [jetty-server-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:120) [jetty-util-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:491) [jetty-server-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.server.Server.doStart(Server.java:582) [jetty-server-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) [jetty-util-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.apache.activemq.artemis.component.WebServerComponent.start(WebServerComponent.java:245) [artemis-web-2.40.0.redhat-00004.jar:2.40.0.redhat-00004]
at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.addExternalComponent(ActiveMQServerImpl.java:1007) [artemis-server-2.40.0.redhat-00004.jar:2.40.0.redhat-00004]
at org.apache.activemq.artemis.cli.commands.Run.execute(Run.java:146) [artemis-cli-2.40.0.redhat-00004.jar:2.40.0.redhat-00004]
at org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:221) [artemis-cli-2.40.0.redhat-00004.jar:2.40.0.redhat-00004]
at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:169) [artemis-cli-2.40.0.redhat-00004.jar:2.40.0.redhat-00004]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.base/java.lang.reflect.Method.invoke(Method.java:569) ~[?:?]
at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:149) [artemis-boot.jar:2.40.0.redhat-00004]
at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:61) [artemis-boot.jar:2.40.0.redhat-00004]
2025-06-20 15:22:00,994 WARN [org.eclipse.jetty.ee9.webapp.WebInfConfiguration] Web application not found /opt/amq/amq-broker-7.13.0/web/hawtio.war
2025-06-20 15:22:00,994 WARN [org.eclipse.jetty.ee9.webapp.WebAppContext] Failed startup of context oeje9w.WebAppContext@4b56b031{/console,/console,null,false,@Connector-0}{/opt/amq/amq-broker-7.13.0/web/hawtio.war}
java.io.FileNotFoundException: /opt/amq/amq-broker-7.13.0/web/hawtio.war
at org.eclipse.jetty.ee9.webapp.WebInfConfiguration.unpack(WebInfConfiguration.java:295) ~[jetty-ee9-webapp-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.ee9.webapp.WebInfConfiguration.preConfigure(WebInfConfiguration.java:59) ~[jetty-ee9-webapp-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.ee9.webapp.Configurations.preConfigure(Configurations.java:496) ~[jetty-ee9-webapp-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.ee9.webapp.WebAppContext.preConfigure(WebAppContext.java:492) ~[jetty-ee9-webapp-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.ee9.webapp.WebAppContext.doStart(WebAppContext.java:527) ~[jetty-ee9-webapp-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) ~[jetty-util-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) ~[jetty-util-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:113) ~[jetty-util-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:491) ~[jetty-server-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.server.handler.ContextHandler.lambda$doStart$0(ContextHandler.java:754) ~[jetty-server-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.server.handler.ContextHandler$ScopedContext.call(ContextHandler.java:1452) [jetty-server-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:754) [jetty-server-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.ee9.nested.ContextHandler$CoreContextHandler.doStart(ContextHandler.java:2727) [jetty-ee9-nested-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) [jetty-util-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) [jetty-util-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:120) [jetty-util-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:491) [jetty-server-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) [jetty-util-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169) [jetty-util-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.server.Server.start(Server.java:641) [jetty-server-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:120) [jetty-util-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.server.Handler$Abstract.doStart(Handler.java:491) [jetty-server-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.server.Server.doStart(Server.java:582) [jetty-server-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) [jetty-util-12.0.15.redhat-00001.jar:12.0.15.redhat-00001]
at org.apache.activemq.artemis.component.WebServerComponent.start(WebServerComponent.java:245) [artemis-web-2.40.0.redhat-00004.jar:2.40.0.redhat-00004]
at org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.addExternalComponent(ActiveMQServerImpl.java:1007) [artemis-server-2.40.0.redhat-00004.jar:2.40.0.redhat-00004]
at org.apache.activemq.artemis.cli.commands.Run.execute(Run.java:146) [artemis-cli-2.40.0.redhat-00004.jar:2.40.0.redhat-00004]
at org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:221) [artemis-cli-2.40.0.redhat-00004.jar:2.40.0.redhat-00004]
at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:169) [artemis-cli-2.40.0.redhat-00004.jar:2.40.0.redhat-00004]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.base/java.lang.reflect.Method.invoke(Method.java:569) ~[?:?]
at org.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:149) [artemis-boot.jar:2.40.0.redhat-00004]
at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:61) [artemis-boot.jar:2.40.0.redhat-00004]
The web console also shows a 503 error, the broker seems to start fine.
ISSUE TYPE
- Bug Report
EXPECTED RESULTS
I expect the web console to start normally.
ACTUAL RESULTS
503 error on the web console due to incorrect bootstrap.xml configuration.
Metadata
Metadata
Assignees
Labels
No labels