I deploy ActiveMQ Artemis but I get no server connection in my web console. The jolokia-access.xml
shows:
<restrict>
<cors>
<!-- Allow cross origin access from localhost ... -->
<allow-origin>*</allow-origin>
<!-- Options from this point on are auto-generated by Create.java from the Artemis CLI -->
<!-- Check for the proper origin on the server side, too -->
<strict-checking/>
</cors>
</restrict>
The web binding is:
<web path="web">
<binding uri="http://0.0.0.0:8161">
<app url="activemq-branding" war="activemq-branding.war"/>
<app url="artemis-plugin" war="artemis-plugin.war"/>
<app url="console" war="console.war"/>
</binding>
</web>
See below the console output and the server logs:
This is almost certainly a problem with your etc/jolokia-access.xml
configuration. It's likely that the allow-origin
is not configured properly. Here's the default configuration:
<allow-origin>*://localhost*</allow-origin>
You should replace localhost
with whatever hostname or IP address where the broker is actually listening for HTTP connections. You can find that information in etc/bootstrap.xml
.
For what it's worth, the error in the log has nothing to do with the web console. It is related to the cluster-connection.