Код: Выделить всё
WARNING [main] XmlWebApplicationContext.refresh Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'JMSConnectionFactory' defined in ServletContext resoure [/WEB-INF/JmsProcessing-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NamingException: Unexpected exception resolving reference [Root exception is java.lang.IllegalArgumentException: The local resource link [ConnectionFactory] that refers to global resource [jms/ConnectionFactory] was expected to return an instance of [org.apache.activemq.ActiveMQConnectionFactory] but returned an instance of [org.apache.activemq.ActiveMQConnectionFactory]]
< /code>
Я проверил визуально и два разных технических способа и подтвердил, что ожидаемый экземпляр и фактический экземпляр идентичны. Так что это не простая опечатка. < /P>
context.xmlКод: Выделить всё
< /code>
JmsProcessing-servlet.xmlКод: Выделить всё
java:comp/env/jms/ConnectionFactory
< /code>
I'm using Spring 4.3.18, building in Java 17, running in Java 11 on RH9.
Edit 1
I found activemq-client-5.18.6.jarКод: Выделить всё
tomcat/lib/activemq-client-5.18.6.jarКод: Выделить всё
tomcat/webapps/JmsProcessing/WEB-INF/lib/activemq-client-5.18.6.jar
Подробнее здесь: https://stackoverflow.com/questions/795 ... ted-and-re