Hi Experts,com.sap.engine.boot.loader.ResourceMultiParentClassLoader) cannot be cast to javax.naming.spi.InitialContextFactory (loaded by <bootstrap>)]"
We recently deployed RabbitMQ JMS client 2.3.0 jar and its dependences jar slf4j-api-2.0.0-alpha5.jar
amqp-client-5.14.0.jar
rabbitmq-jms-2.3.0-sources.jar
into our SAP PI/PO system.
After succesfull deployment and communication channel configuration we are unable to reach or connect JMS queue and we are getting following error.
" EXCEPTION]
javax.naming.NoInitialContextException: Cannot instantiate class: com.rabbitmq.jms.admin.RMQObjectFactory [Root exception is java.lang.ClassCastException: com.rabbitmq.jms.admin.RMQObjectFactory (loaded by library:com.sap.aii.adapter.lib.jms20@69499
kindly Suggest.
On 1/31/2022 1:21 PM, Surendra K wrote:
We recently deployed RabbitMQ JMS client 2.3.0 jar and its dependences
jar slf4j-api-2.0.0-alpha5.jar
amqp-client-5.14.0.jar
rabbitmq-jms-2.3.0-sources.jar
into our SAP PI/PO system.
After succesfull deployment and communication channel configuration we
are unable to reach or connect JMS queue and we are getting
following error.
" EXCEPTION]
javax.naming.NoInitialContextException: Cannot instantiate class:
com.rabbitmq.jms.admin.RMQObjectFactory [Root exception is
java.lang.ClassCastException: com.rabbitmq.jms.admin.RMQObjectFactory
(loaded by library:com.sap.aii.adapter.lib.jms20@69499
com.sap.engine.boot.loader.ResourceMultiParentClassLoader) cannot be
cast to javax.naming.spi.InitialContextFactory (loaded by <bootstrap>)]"
The immediate Java problem is that the RMQObjectFactory class does does not implement the InitialContextFactory interface, so an RMQOF
instance cannot be cast to ICF.
... which is no help at all: It's like saying "The reason this man can't walk is that he has no legs," and not addressing how he lost his
legs nor why the legless man is trying to walk in the first place.
Although I personally have no experience with RabbitMQ (nor with anything JNDI, for that matter), it appears to me you should seek
Rabbit advice rather than Java advice. A quick look around the Web
finds several Rabbit-oriented sites; maybe some of them can help you.
javax.naming.NoInitialContextException: Cannot instantiate
class: com.rabbitmq.jms.admin.RMQObjectFactory [Root exception is java.lang.ClassCastException: com.rabbitmq.jms.admin.RMQObjectFactory
(loaded by library:com.sap.aii.adapter.lib.jms20@69499 com.sap.engine.boot.loader.ResourceMultiParentClassLoader) cannot be
cast to javax.naming.spi.InitialContextFactory (loaded by <bootstrap>)]"
Surendra K <kvsbasis@gmail.com> wrote:
javax.naming.NoInitialContextException: Cannot instantiate
class: com.rabbitmq.jms.admin.RMQObjectFactory [Root exception is
java.lang.ClassCastException: com.rabbitmq.jms.admin.RMQObjectFactory
(loaded by library:com.sap.aii.adapter.lib.jms20@69499
com.sap.engine.boot.loader.ResourceMultiParentClassLoader) cannot be
cast to javax.naming.spi.InitialContextFactory (loaded by <bootstrap>)]"
Looks like you configured "com.rabbitmq.jms.admin.RMQObjectFactory" as
value for some property within the application-context, but that property should have the name of a different class.
The the correct class's name likely ends with *ContextFactory, rather
than with *ObjectFactory.
You might open the rabbitMQ-jarfile as a zip-file and list its contents. Maybe some class in it even has a name like "RMQContextFactory".
Buenos dias.
Necesito su apoyo si tienen alguna guia para instalar el driver rabbit MQ en SAP PO por NDWS.
El 2/8/22 a las 17:05, Natalia Arenas escribió:muchas gracias.. ya con el equipo basis al parecer logramos hacer la instalación, pero tenemos unos errores,, habrá algun instructivo para la configuracion en sap pi de los canales JMS en relación a rabbit?. mi l
Buenos dias.
Necesito su apoyo si tienen alguna guia para instalar el driver rabbit MQ en SAP PO por NDWS.Natalia, este grupo es de comunicación en inglés. Sinceramente, no sé bien qué es Rabbit MQ, :-) pero he encontrado este artículo en los
blogs de SAP:
https://blogs.sap.com/2017/11/30/hello-world-of-rabbitmq/
-----
Natalia, in this newsgroup English language is expected. Honestly, I
don't really know what is Rabbit MQ, :-) but I've found this article
in SAP blogs:
https://blogs.sap.com/2017/11/30/hello-world-of-rabbitmq/
HTH
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 300 |
Nodes: | 16 (2 / 14) |
Uptime: | 68:07:14 |
Calls: | 6,712 |
Files: | 12,244 |
Messages: | 5,356,545 |