我正在尝试在 windows7 x32 上安装 ActiveMQ 5.14.3。 但我在安装时遇到了一些错误。 我该如何修复它?
jvm 1 | ERROR | Failed to start Apache ActiveMQ ([localhost, ID:Admin--49711-
1482610732322-0:1], java.net.URISyntaxException: Illegal character in hostname a
t index 10: ws://Admin-╧╩:61614?maximumConnections=1000&wireFormat.maxFrameSize=
104857600)
jvm 1 | WARN | Exception thrown from LifecycleProcessor on context close
jvm 1 | WARN | Exception encountered during context initialization - cancell
Jvm 1 | ERROR: java.lang.RuntimeException: Failed to execute start task. Reas
on: java.lang.IllegalStateException: BeanFactory not initialized or already clos
ed - call 'refresh' before accessing beans via the ApplicationContext
这是控制台的完整输出:pastebin
UPD 1 我的activemq.xml传输部分
<transportConnectors>
<!-- DOS protection, limit concurrent connections to 1000 and frame size to 100MB -->
<transportConnector name="openwire" uri="tcp://0.0.0.0:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="amqp" uri="amqp://0.0.0.0:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="stomp" uri="stomp://0.0.0.0:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="mqtt" uri="mqtt://0.0.0.0:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="ws" uri="ws://0.0.0.0:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
</transportConnectors>
最佳答案
验证ws传输是这样的
<transportConnector name="ws" uri="ws://0.0.0.0:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
更新
尝试使用 jre 1.7
关于java - ActiveMQ安装时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41316711/