JBOSS Cli添加连接器,接受器和连接工厂

时间:2017-05-04 15:05:21

标签: jboss jboss-eap-6 jboss-cli

我需要为大黄蜂Q子系统创建连接器,接受器和连接工厂。我在连接它时遇到错误。你能告诉我我的cli有什么问题

hornetq.txt

batch
/subsystem=messaging/hornetq-server=default/remote-connector=netty-ssl:add(socket-binding=ssl-messaging)
/subsystem=messaging/hornetq-server=default/remote-connector=netty-ssl/param=ssl-enabled:add(value=true)
/subsystem=messaging/hornetq-server=default/remote-connector=netty-ssl/param=trust-store-path:add(value="/opt/jboss/security/CompanyServerTruststore.jks")
/subsystem=messaging/hornetq-server=default/remote-connector=netty-ssl/param=trust-store-password:add(value="changeit")
/subsystem=messaging/hornetq-server=default/remote-acceptor=netty-ssl:add(socket-binding=ssl-messaging)
/subsystem=messaging/hornetq-server=default/remote-acceptor=netty-ssl/param=ssl-enabled:add(value=true)
/subsystem=messaging/hornetq-server=default/remote-acceptor=netty-ssl/param=key-store-path:add(value="${jboss.web.ssl.keystore:/opt/jboss/security/CompanyServerKeyFile.jks}")
/subsystem=messaging/hornetq-server=default/remote-acceptor=netty-ssl/param=key-store-password:add(value="${VAULT::CompanyKeystore::keystore_pw::1}")
/subsystem=messaging/hornetq-server=default/connection-factory=SSLRemoteConnectionFactory:add(connector={"netty-ssl"=>undefined}, entries = ["java:jboss/exported/jms/SSLRemoteConnectionFactory"])
run-batch

错误:

C:\Temp\FSW\jboss-eap-6.1\bin>jboss-cli.bat --connect --file=C:\Temp\hornetq.txt
#1 /subsystem=messaging/hornetq-server=default/remote-connector=netty-ssl:add(socket-binding=ssl-messaging)
#2 /subsystem=messaging/hornetq-server=default/remote-connector=netty-ssl/param=ssl-enabled:add(value=true)
#3 /subsystem=messaging/hornetq-server=default/remote-connector=netty-ssl/param=trust-store-path:add(value="/opt/jboss/security/CompanyServerTruststore.jks")
#4 /subsystem=messaging/hornetq-server=default/remote-connector=netty-ssl/param=trust-store-password:add(value="changeit")
#5 /subsystem=messaging/hornetq-server=default/remote-acceptor=netty-ssl:add(socket-binding=ssl-messaging)
#6 /subsystem=messaging/hornetq-server=default/remote-acceptor=netty-ssl/param=ssl-enabled:add(value=true)
#7 /subsystem=messaging/hornetq-server=default/remote-acceptor=netty-ssl/param=key-store-path:add(value="${jboss.web.ssl.keystore:/opt/jboss/security/CompanyServerKeyFile.jks}")
#8 /subsystem=messaging/hornetq-server=default/remote-acceptor=netty-ssl/param=key-store-password:add(value="${VAULT::CompanyKeystore::keystore_pw::1}")
#9 /subsystem=messaging/hornetq-server=default/connection-factory=SSLRemoteConnectionFactory:add(connector={"netty-ssl"=>undefined}, entries = ["java:jboss/exported/jms/SSLRemoteConnectionFactory"])
{"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-9" => {"JBAS014671: Failed services" => {"jboss.messaging.default.jms.connection-factory.SSLRemoteConnectionFactory" => "org.jboss.msc.service.StartException in service jboss.messaging.default.jms.c
onnection-factory.SSLRemoteConnectionFactory: JBAS011639: Failed to create connection-factory
    Caused by: HornetQException[errorType=ILLEGAL_STATE message=HQ129005: Connector {0} not found on the main configuration file]"}}}}
Press any key to continue . . .

1 个答案:

答案 0 :(得分:0)

连接工厂无法找到添加的连接器。因此,您需要从批处理过程中删除连接工厂添加操作,重新加载服务器,然后添加CF.添加的连接器仅在重新加载后绑定到服务器。