You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Justin Bertram (JIRA)" <ji...@apache.org> on 2019/05/30 19:49:00 UTC
[jira] [Commented] (ARTEMIS-2357) Version 2.8.1 breaks the
documented upgrade process
[ https://issues.apache.org/jira/browse/ARTEMIS-2357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16852280#comment-16852280 ]
Justin Bertram commented on ARTEMIS-2357:
-----------------------------------------
The issue is related to a dependency upgrade that changes what libraries are required when the broker starts. The main difference here for upgrading users like yourself is a change in the {{bin/artemis}} start script.
Before 2.8.1 there was this "if" statement:
{noformat}
if [ -z "$LOG_MANAGER" ] ; then
# this is the one found when the server was created
LOG_MANAGER="$ARTEMIS_HOME/lib/jboss-logmanager-2.0.3.Final.jar"
fi
{noformat}
This needs to be replaced with this block:
{noformat}
if [ -z "$LOG_MANAGER" ] ; then
# this is the one found when the server was created
LOG_MANAGER="$ARTEMIS_HOME/lib/jboss-logmanager-2.1.10.Final.jar"
fi
WILDFLY_COMMON=`ls $ARTEMIS_HOME/lib/wildfly-common*jar 2>/dev/null`
if [ -z "$WILDFLY_COMMON" ] ; then
# this is the one found when the server was created
WILDFLY_COMMON="$ARTEMIS_HOME/lib/wildfly-common-1.5.1.Final.jar"
fi
{noformat}
Notice that the jboss-logmanager version has changed and there is also a new wildfly-common library.
Not much further down there is this line:
{noformat}
-Xbootclasspath/a:"$LOG_MANAGER" \
{noformat}
This line should be changed to be:
{noformat}
-Xbootclasspath/a:"$LOG_MANAGER:$WILDFLY_COMMON" \
{noformat}
I'll get the upgrade documentation updated to reflect these differences.
> 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
> 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)