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
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
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 love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With