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

时间:2016-02-18 19:18:31

标签: java linux apache centos activemq

我在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"/>

0 个答案:

没有答案