我正在使用交叉开关 0.11.1,并且我想让高速公路组件使用特定的角色。当我向我的组件添加“角色”属性时,如下所示:
"components": [
{
"type": "class",
"classname": "hello.hello.AppSession",
"realm": "realm1",
"role": "anonymous",
"transport": {
"type": "websocket",
"endpoint": {
"type": "tcp",
"host": "127.0.0.1",
"port": 8080
},
"url": "ws://127.0.0.1:8080/ws"
}
}
]
运行时出现此错误crossbar start
2015-11-03T10:51:02-0600 [Controller 20933] Automatically choosing optimal Twisted reactor
2015-11-03T10:51:02-0600 [Controller 20933] Running on Linux and optimal reactor (epoll) was installed.
2015-11-03T10:51:02-0600 [Controller 20933] __ __ __ __ __ __ __ __
2015-11-03T10:51:02-0600 [Controller 20933] / `|__)/ \/__`/__`|__) /\ |__) |/ \
2015-11-03T10:51:02-0600 [Controller 20933] \__,| \\__/.__/.__/|__)/~~\| \. |\__/
2015-11-03T10:51:02-0600 [Controller 20933]
2015-11-03T10:51:02-0600 [Controller 20933] Version: 0.11.1
2015-11-03T10:51:02-0600 [Controller 20933]
2015-11-03T10:51:02-0600 [Controller 20933] Starting from node directory /home/jaime/code/pubsub/tmp/.crossbar
2015-11-03T10:51:02-0600 [Controller 20933] Loading node configuration file '/home/jaime/code/pubsub/tmp/.crossbar/config.json'
2015-11-03T10:51:02-0600 [Controller 20933] *** Configuration validation failed ***
2015-11-03T10:51:02-0600 [Controller 20933] invalid component configuration - encountered unknown attribute 'role'