在CentOS上安装ActiveMQ无法打开管理和其他网页

2vuwiymt  于 2022-11-07  发布在  其他
关注(0)|答案(1)|浏览(222)

我将在CentOS 6.7上安装ActiveMQ 5.13.1。我将遵循本教程:https://rburnham.wordpress.com/2012/09/14/installing-and-managing-activemq-on-centos/
我几乎完成了步骤,现在我可以从远程客户端访问http://xxx.xxx.xx:8161/,它显示“欢迎使用Apache ActiveMQ!”页面,但一旦我打开http://xxx.xxx.xx:8161/admin,错误出现:

HTTP ERROR 500

Problem accessing /admin/. Reason:

Server Error

Caused by:

java.lang.NoClassDefFoundError: org/apache/activemq/web/filter/ApplicationContextFilter$2
at org.apache.activemq.web.filter.ApplicationContextFilter.createRequestContextWrapper(ApplicationContextFilter.java:168)
at org.apache.activemq.web.filter.ApplicationContextFilter.doFilter(ApplicationContextFilter.java:84)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.apache.activemq.web.XFrameOptionsFilter.doFilter(XFrameOptionsFilter.java:47)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:542)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:542)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at org.eclipse.jetty.server.Server.handle(Server.java:499)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
at java.lang.Thread.run(Thread.java:745)

Powered by Jetty://

实际上有些步骤我无法实现:

sudo /opt/activemq/bin/activemq-admin list

它说没有activemq-admin。
我做后:

sudo /opt/activemq/bin/activemq setup /etc/default/activemq

没有创建/etc/default/activemq。因此我无法执行以下操作:

sudo chown root /etc/default/activemq

sudo chmod 600 /etc/default/activemq

我还研究了另一个答案(ActiveMQ console not available),将配置文件从

<import resource="jetty.xml"/>

<import resource="${activemq.base}/conf/jetty.xml"/>
thigvfpy

thigvfpy1#

我也面临同样的问题后,安装maven,变通办法没有卸载maven,并执行以下步骤。
已尝试重新安装activemq。
brew重新安装activemq。
然后重新启动系统。

相关问题