启动apache activemq时无效的代理uri

时间:2015-05-09 16:13:45

标签: activemq

我在Windows 7上下载了apache activemq 5.9版,然后打开命令提示符并输入ACTIVEMQDIR> .\bin\activemq并收到Invalid Broker URI错误。

我需要提供哪些配置信息才能使activemq在Windows 7上运行?

修改 这是堆栈跟踪:

C:\activemq\bin>activemq start /p
Java Runtime: Oracle Corporation 1.7.0_79 C:\Program Files\Java jdk1.7.0_79\jre
Heap sizes: current=1005568k free=989808k max=1005568k
JVM args: -Dcom.sun.management.jmxremote -Xms1G -Xmx1G -Djava.util.logging.c
onfig.file=logging.properties -Djava.security.auth.login.config=C:\activemq\bin\
..\conf\login.config -Dactivemq.classpath=C:\activemq\bin\..\conf;C:\activemq\bi
n\../conf;C:\activemq\bin\../conf; -Dactivemq.home=C:\activemq\bin\.. -Dactivemq
.base=C:\activemq\bin\.. -Dactivemq.conf=C:\activemq\bin\..\conf -Dactivemq.data
=C:\activemq\bin\..\data -Djava.io.tmpdir=C:\activemq\bin\..\data\tmp
Extensions classpath:
[C:\activemq\bin\..\lib,C:\activemq\bin\..\lib\camel,C:\activemq\bin\..\lib\op
tional,C:\activemq\bin\..\lib\web,C:\activemq\bin\..\lib\extra]
ACTIVEMQ_HOME: C:\activemq\bin\..
ACTIVEMQ_BASE: C:\activemq\bin\..
ACTIVEMQ_CONF: C:\activemq\bin\..\conf
ACTIVEMQ_DATA: C:\activemq\bin\..\data
Loading message broker from: /p
ERROR: java.lang.RuntimeException: Failed to execute start task. Reason: java.la
ng.IllegalArgumentException: Invalid broker URI, no scheme specified: /p
java.lang.RuntimeException: Failed to execute start task. Reason: java.lang.Ille
galArgumentException: Invalid broker URI, no scheme specified: /p
at org.apache.activemq.console.command.StartCommand.runTask(StartCommand
.java:91)
at org.apache.activemq.console.command.AbstractCommand.execute(AbstractC
ommand.java:57)
at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand
.java:150)
at org.apache.activemq.console.command.AbstractCommand.execute(AbstractC
ommand.java:57)
at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.ja
va:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.

2 个答案:

答案 0 :(得分:8)

问题是'开始'字符串被解释为代理URL。无争议地运行。

  

的ActiveMQ

答案 1 :(得分:2)

只执行“activemq”并删除参数“start”,

例如,像下面一行一样运行

C:\的ActiveMQ \ BIN> ActiveMQ的