我在Websphere 7服务器中创建了用于JMS(bot Websphere MQ BTW)传输的Websphere总线,并像this站点的最后一部分中那样禁用了安全性,但是仍然得到
Caused by: javax.jms.JMSSecurityException: CWSIA0006E: The authorization for the supplied user name was not successful.
at com.ibm.ws.sib.api.jms.impl.JmsManagedConnectionFactoryImpl.createConnection(JmsManagedConnectionFactoryImpl.java:183)
at com.ibm.ws.sib.api.jms.impl.JmsManagedConnectionFactoryImpl.createConnection(JmsManagedConnectionFactoryImpl.java:135)
at org.springframework.jms.connection.SingleConnectionFactory.doCreateConnection(SingleConnectionFactory.java:342)
at org.springframework.jms.connection.SingleConnectionFactory.initConnection(SingleConnectionFactory.java:288)
at org.springframework.jms.connection.SingleConnectionFactory.createConnection(SingleConnectionFactory.java:225)
at org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:184)
at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:456)
... 20 more
Caused by: com.ibm.wsspi.sib.core.exception.SINotAuthorizedException: CWSIP0303E: No user specified when creating a connection to secure messaging engine blahblah.server1-JMSBus on bus JMSBus.
at com.ibm.websphere.sib.exception.SIException.<init>(SIException.java:63)
at com.ibm.ws.sib.processor.impl.MessageProcessor.createConnection(MessageProcessor.java:737)
at com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl.localAttach(TrmSICoreConnectionFactoryImpl.java:451)
at com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl.connectFromInsideServer(TrmSICoreConnectionFactoryImpl.java:406)
at com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl.localBootstrap(TrmSICoreConnectionFactoryImpl.java:323)
at com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl.createConnection(TrmSICoreConnectionFactoryImpl.java:304)
at com.ibm.ws.sib.trm.client.TrmSICoreConnectionFactoryImpl.createConnection(TrmSICoreConnectionFactoryImpl.java:172)
at com.ibm.ws.sib.api.jmsra.impl.JmsJcaManagedConnectionFactoryImpl.createManagedConnection(JmsJcaManagedConnectionFactoryImpl.java:460)
at com.ibm.ejs.j2c.FreePool.createManagedConnectionWithMCWrapper(FreePool.java:2034)
at com.ibm.ejs.j2c.FreePool.createOrWaitForConnection(FreePool.java:1711)
at com.ibm.ejs.j2c.PoolManager.reserve(PoolManager.java:2471)
at com.ibm.ejs.j2c.ConnectionManager.allocateMCWrapper(ConnectionManager.java:1059)
at com.ibm.ejs.j2c.ConnectionManager.allocateConnection(ConnectionManager.java:696)
at com.ibm.ws.sib.api.jmsra.impl.JmsJcaConnectionFactoryImpl.createConnection(JmsJcaConnectionFactoryImpl.java:288)
at com.ibm.ws.sib.api.jms.impl.JmsManagedConnectionFactoryImpl.createConnection(JmsManagedConnectionFactoryImpl.java:162)
... 26 more
不知道我还能做点什么..
最佳答案
您的巴士看起来仍然安全。确保已保存配置并重新启动服务器。如果您正在运行Network Deployment Edition,请确保所有节点都已同步并且服务器已重新启动总线。
如果要使用安全总线,请确保该总线的Connector
角色中有一个用户,已为该用户定义了身份验证别名,并且正在连接工厂中使用该别名。
关于java - 创建与安全消息传递引擎的连接时,Websphere仍未抛出任何用户…在总线上,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/27260984/