当前位置:   article > 正文

ActiveMQ运行报错:java.lang.UnsupportedClassVersionError_inspect logfiles specified in logging.properties a

inspect logfiles specified in logging.properties and log4j2.properties to ge

文章目录

场景

今天首次下载运行ActiveMQ,输入启动命令后,查看运行状态显示未启动。
查看控制台信息后,发现如下错误:

[root@localhost bin]# ./activemq start
INFO: Loading ‘/usr/local/src/apache-activemq-6.0.1//bin/setenv’
INFO: Using java ‘/usr/bin/java’
INFO: Starting - inspect logfiles specified in logging.properties and log4j2.properties to get details
INFO: pidfile created : ‘/usr/local/src/apache-activemq-6.0.1//data/activemq.pid’ (pid ‘9931’)
[root@localhost bin]# ./activemq status
INFO: Loading ‘/usr/local/src/apache-activemq-6.0.1//bin/setenv’
INFO: Using java ‘/usr/bin/java’
ActiveMQ not running
[root@localhost bin]# ./activemq console
INFO: Loading ‘/usr/local/src/apache-activemq-6.0.1//bin/setenv’
INFO: Using java ‘/usr/bin/java’
INFO: Starting in foreground, this is just for debugging purposes (stop process by pressing CTRL+C)
INFO: Creating pidfile /usr/local/src/apache-activemq-6.0.1//data/activemq.pid
错误: 加载主类 org.apache.activemq.console.Main 时出现 LinkageError
java.lang.UnsupportedClassVersionError: org/apache/activemq/console/Main has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0

解决方法

下载低版本的ActiveMQ,例如:apache-activemq-5.15.9
解压后,运行,已成功启动。

[root@localhost apache-activemq-5.15.9]# cd bin
[root@localhost bin]# ./activemq start
INFO: Loading ‘/usr/local/src/apache-activemq-5.15.9//bin/env’
INFO: Using java ‘/usr/bin/java’
INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details
INFO: pidfile created : ‘/usr/local/src/apache-activemq-5.15.9//data/activemq.pid’ (pid ‘10372’)
[root@localhost bin]# ./activemq status
INFO: Loading ‘/usr/local/src/apache-activemq-5.15.9//bin/env’
INFO: Using java ‘/usr/bin/java’
ActiveMQ is running (pid ‘10372’)
[root@localhost bin]#

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/凡人多烦事01/article/detail/476714
推荐阅读
相关标签
  

闽ICP备14008679号