문제

I am trying to connect Tibco Web Messaging (TWM) to Tibco EMS. But I get NameNotFoundException on the ConnectionFactory. Below is the log.

ERROR Error starting Gateway: caught exception java.lang.ClassCastException: com.tibco.tibjms.naming.TibjmsContext cannot be cast to javax.jms.ConnectionFactory
java.lang.ClassCastException: com.tibco.tibjms.naming.TibjmsContext cannot be cast to javax.jms.ConnectionFactory
at com.kaazing.gateway.jms.server.service.StompJmsService.initHandler(StompJmsService.java:103)
at com.kaazing.gateway.jms.server.service.AbstractStompService.init(AbstractStompService.java:210)
at com.kaazing.gateway.jms.server.service.AbstractStompFanoutService.init(AbstractStompFanoutService.java:87)
at com.kaazing.gateway.jms.server.service.StompJmsService.init(StompJmsService.java:91)
at com.kaazing.gateway.server.context.resolve.DefaultServiceContext.init(DefaultServiceContext.java:697)
at com.kaazing.gateway.server.Launcher.initInternal(Launcher.java:54)
at com.kaazing.gateway.server.Launcher.init(Launcher.java:33)
at com.kaazing.gateway.server.impl.GatewayImpl.launch(GatewayImpl.java:291)
at com.kaazing.gateway.server.GatewayCommandProcessor.launchGateway(GatewayCommandProcessor.java:98)
at com.kaazing.gateway.server.GatewayCommandProcessor.launchGateway(GatewayCommandProcessor.java:43)
at com.kaazing.gateway.server.Main.main(Main.java:34)
INFO  Stopping server
INFO  Stopping management

Has anyone got the same error.

Thanks, Naveen

도움이 되었습니까?

해결책 2

There were no factories in the factories.conf file. Using Tibco Administration tool, was able to create a factory using the command.

create factory GenericConnectionFactory generic URL=tcp://7222

This did the trick.

Naveen

다른 팁

If you are using Tibco JMS for the first time, you need to create QueueConnectionFactory and TopicConnectionFactory. Make sure you add special character ">" in your ems queues.conf file.

Command to create Queue:

create factory QueueConnectionFactory queue URL=tcp://7222

Command to create Topic:

create factory TopicConnectionFactory topic URL=tcp://7222

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top