我下载并解压缩了最新的ActiveMQ版本5.17.1。我使用的是Java11.0.11和Windows10EnterpriseBuild: 19044.1706。
当我通过.\bin\activemq.bat start启动.\bin\activemq.bat start时,我得到了这个FileNotFoundException
WARN | Store limit is 102400 mb (current store usage is 0 mb). The data directory: C:\Programs\apache-activemq-5.17.1\bin\..\data\kahadb only has 21729 mb of usable space. - resetting to maximum available disk space: 21729 mb
WARN | Temporary Store limit is 51200 mb (current store usage is 0 mb). The data directory: C:\Programs\apache-activemq-5.17.1\bin\..\data only has 21728 mb of usable space. - resetting to maximum available disk space: 21728 mb
INFO | ActiveMQ WebConsole available at http://127.0.0.1:8161/
INFO | ActiveMQ Jolokia REST API available at http://127.0.0.1:8161/api/jolokia/
WARN | jolokia-agent: Error while accessing access restrictor at file:C:Programsapache-activemq-5.17.1bin..conf/jolokia-access.xml. Denying all access to MBeans for security reasons. Exception: java.io.FileNotFoundException: C:Programsapache-activemq-5.17.1bin..conf\jolokia-access.xml (The system cannot find the path specified)
java.io.FileNotFoundException: C:Programsapache-activemq-5.17.1bin..conf\jolokia-access.xml (The system cannot find the path specified)
at java.io.FileInputStream.open0(Native Method) ~[?:?]
at java.io.FileInputStream.open(FileInputStream.java:219) ~[?:?]
at java.io.FileInputStream.<init>(FileInputStream.java:157) ~[?:?]
at java.io.FileInputStream.<init>(FileInputStream.java:112) ~[?:?]如何修复这个FileNotFoundException?
这似乎是文件名(即C:Programsapache-activemq-5.17.1bin..conf\jolokia-access.xml)的一些问题。
我甚至不确定是否应该信任FileNotFoundException错误消息。
发布于 2022-07-20 11:24:51
设置环境变量(从OP的回答)不适用于5.17.1版本。
一个简单的解决方案是使用不同的activeMQ版本。例如,apache-activemq-5.16.3正确工作。以下是可用版本的存档:https://activemq.apache.org/download-archives
https://stackoverflow.com/questions/72574570
复制相似问题