[ https://issues.apache.org/jira/browse/ARTEMIS-2357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Bertram resolved ARTEMIS-2357. ------------------------------------- Resolution: Fixed > Version 2.8.1 breaks the documented upgrade process > --------------------------------------------------- > > Key: ARTEMIS-2357 > URL: https://issues.apache.org/jira/browse/ARTEMIS-2357 > Project: ActiveMQ Artemis > Issue Type: Bug > Affects Versions: 2.8.1 > Environment: CentOS 7.4 > Reporter: Jan Šmucr > Assignee: Justin Bertram > Priority: Major > > Upgrading from 2.8.0 (or lower) directly to 2.8.1 is not possible by just > adjusting the ARTEMIS_HOME variable in etc/artemis.profile. > In order to reproduce the problem, install the two versions and then create > Artemis instance with the older one. > {code} > mkdir deleteme > cd deleteme > wget > https://archive.apache.org/dist/activemq/activemq-artemis/2.8.0/apache-artemis-2.8.0-bin.tar.gz > > https://archive.apache.org/dist/activemq/activemq-artemis/2.8.1/apache-artemis-2.8.1-bin.tar.gz > tar xvf apache-artemis-2.8.0-bin.tar.gz > tar xvf apache-artemis-2.8.1-bin.tar.gz > apache-artemis-2.8.0/bin/artemis create test --silent > test/bin/artemis run > {code} > Make sure that this runs fine. > Now try to upgrade: > {code} > sed -i 's/2\.8\.0/2\.8\.1/g' test/etc/artemis.profile > test/bin/artemis run > {code} > This results into an exception: > {code:java} > _ _ _ > / \ ____| |_ ___ __ __(_) _____ > / _ \| _ \ __|/ _ \ \/ | |/ __/ > / ___ \ | \/ |_/ __/ |\/| | |\___ \ > /_/ \_\| \__\____|_| |_|_|/___ / > Apache ActiveMQ Artemis 2.8.1 > java.lang.NoClassDefFoundError: org/wildfly/common/net/HostName > at org.jboss.logmanager.ExtLogRecord.<init>(ExtLogRecord.java:87) > at org.jboss.logmanager.Logger.log(Logger.java:796) > at > org.jboss.logging.JBossLogManagerLogger.doLog(JBossLogManagerLogger.java:44) > at org.jboss.logging.Logger.logv(Logger.java:2226) > at > org.apache.activemq.artemis.integration.bootstrap.ActiveMQBootstrapLogger_$logger.serverStarting(ActiveMQBootstrapLogger_$logger.java:35) > at > org.apache.activemq.artemis.integration.FileBroker.start(FileBroker.java:68) > at org.apache.activemq.artemis.cli.commands.Run.execute(Run.java:85) > at > org.apache.activemq.artemis.cli.Artemis.internalExecute(Artemis.java:150) > at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:98) > at org.apache.activemq.artemis.cli.Artemis.execute(Artemis.java:125) > 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.apache.activemq.artemis.boot.Artemis.execute(Artemis.java:129) > at org.apache.activemq.artemis.boot.Artemis.main(Artemis.java:49) > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)