Can you post the config here? "Unknown virtualhost" might indicate
improperly configured virtual host aliases... or it may be some other issue
Correctly configured virtualhostaliases would look something like this:
"ports" : [ {
"id" : "3b415494-4c58-4fe1-a972-fea7f84b0c74",
"name" : "AMQP",
"port" : "${qpid.amqp_port}",
"authenticationProvider" : "passwordFile",
"virtualhostaliases" : [ {
"id" : "b13cf37a-1a9f-40d2-9670-72f444403452",
"name" : "defaultAlias",
"type" : "defaultAlias"
}, {
"id" : "ccf359fa-3988-4517-925a-a3be24163783",
"name" : "hostnameAlias",
"type" : "hostnameAlias"
}, {
"id" : "b19c5aa1-587d-4a51-8528-aee49747b475",
"name" : "nameAlias",
"type" : "nameAlias"
} ]
}
You need to configure at least a nameAlias (and probably a defaultAlias)
for each AMQP port you define to get the "expected" behaviour... Virtual
Host Aliases are used to convert the name in the connection string to the
virtual host to use, in theory two different users requesting the same
virtual host may get connected to different places... in practice the more
common case is to allow multiple names to match to the same virtual host.
For AMQP 1.0 the expected behaviour is that the name put in the "host"
field is the DNS host of the server. The "nameAlias" uses exact string
matching against the actual name of the virtual host. The "defaultAlias"
matches the empty string to the virtual host which is marked as the default.
In terms of the rendering of the HTML console, make sure you have the dojo
zip file in the classpath.
Hope this helps,
Rob
On 3 February 2016 at 12:37, Alex O'Ree <[email protected]> wrote:
> Again, with the thread of an embedded qpid server in a unit test...
> I can get the test case (connect to amqp and wait for a reply) to run
> fine with qpid running from the distro. When running the server in the
> unit test, I'm now running into the follow error.
>
>
> Connecting to amqp://guest:guest@
> /default?brokerlist='tcp://localhost:5672'
>
> org.apache.qpid.AMQConnectionFailureException: Unknown virtualhost
> 'default'
>
> I took the ~/config.json used by the distro server and was able to get
> the unit test version to read from it and the etc password files. Only
> change was the http port and the location of the password files. The
> name "default" is definitely in the config file so I'm not really sure
> what's going on. In terms of maven dependencies, I have the following,
> all at 6.0.0
> qpid-client
> qpid-broker
> qpid-broker-core
>
>
>
>
> Aside from the above error, the http web management portion doesn't
> render correctly while in embedded mode (no username/password box),
> maybe i'm missing a dependency?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>