You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Robbie Gemmell (Jira)" <ji...@apache.org> on 2022/05/18 09:48:00 UTC

[jira] [Commented] (AMQ-8604) Unable to start ActiveMq 5.17.1

    [ https://issues.apache.org/jira/browse/AMQ-8604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17538695#comment-17538695 ] 

Robbie Gemmell commented on AMQ-8604:
-------------------------------------

This isnt a bug, per [https://lists.apache.org/thread/gmdpycso6sgysrnqwwwnkw9ypgjrkljd] you need to use 5.17.x appropriate configuration, accounting for the logging impl changing to Log4J 2 in 5.17.x:
{quote}You are using a custom activemq.xml right ?

If you take a look on the activemq.xml provided with ActiveMQ 5.17.x,
you can see that fabric8 insight log has been removed simply because
it supports only log4j 1.x, not log4j 2.x.

So you have to remove the fabric8-insight-log bean from activemq.xml
or ask fabric8 an update to log4j2.
{quote}
and
{quote}Just to be clear: just remove this from your activemq.xml:

<!-- Allows accessing the server log -->
<bean id="logQuery" class="io.fabric8.insight.log.log4j.Log4jLogQuery"
lazy-init="false" scope="singleton"
init-method="start" destroy-method="stop">
</bean>

You can see the change here:
[https://github.com/apache/activemq/commit/472dcf84979f063a375e5413d794e56117e52a9f]
{quote}

> Unable to start ActiveMq 5.17.1
> -------------------------------
>
>                 Key: AMQ-8604
>                 URL: https://issues.apache.org/jira/browse/AMQ-8604
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.17.1
>            Reporter: Aseem Shrestha
>            Priority: Major
>             Fix For: 5.17.1
>
>
> Hi Team,
> Getting error below with ActiveMq 5.17.1. Migrating from 5.16.4 but with 5.16.4, no such issues were seen as it contains insight-log-core-1.2.0.Beta4.jar and insight-log4j-1.2.0.Beta4.jar. These jars are not found in 5.17.1. Below exceptions are raised as above jars are missing in 5.17.1.
> Please suggest.
> Failed to load: class path resource [activemq.xml], reason: Failed to load type: io.fabric8.insight.log.log4j.Log4jLogQuery. Reason: java.lang.ClassNotFoundException: io.fabric8.insight.log.log4j.Log4jLogQuery; nested exception is java.lang.ClassNotFoundException: io.fabric8.insight.log.log4j.Log4jLogQuery | org.apache.activemq.xbean.XBeanBrokerFactory | main
> org.springframework.beans.factory.BeanDefinitionStoreException: Failed to load type: io.fabric8.insight.log.log4j.Log4jLogQuery. Reason: java.lang.ClassNotFoundException: io.fabric8.insight.log.log4j.Log4jLogQuery; nested exception is java.lang.ClassNotFoundException: io.fabric8.insight.log.log4j.Log4jLogQuery



--
This message was sent by Atlassian Jira
(v8.20.7#820007)