Troubleshooting
Problem
A package which connects to ActiveMQ to publish and consume messages.
ApplicationContext.xml is placed in the WEB-INF folder.
The package is not loading and see error "Unable to establish a valid context".
Below is the log from the package loading:
"2018-02-20 06:17:43 GMT+00:00 [ISS.0100.0008T] loadClass(org.springframework.jms.connection.CachingConnectionFactory, false)
2018-02-20 06:17:43 GMT+00:00 [ISS.0100.0008T] Searching local repositories
2018-02-20 06:17:43 GMT+00:00 [ISS.0100.0008T] findClass(org.springframework.jms.connection.CachingConnectionFactory)
2018-02-20 06:17:43 GMT+00:00 [ISS.0100.0008T] findClassInternal(org.springframework.jms.connection.CachingConnectionFactory)
2018-02-20 06:17:43 GMT+00:00 [ISS.0100.0008T] --> Passing on ClassNotFoundException
2018-02-20 06:17:43 GMT+00:00 [ISS.0100.0008T] Delegating to parent classloader at end: com.wm.app.b2b.server.web.WebContainerClassLoader@35f67f12
2018-02-20 06:17:43 GMT+00:00 [ISS.0100.0008T] Loading class from parent
2018-02-20 06:17:43 GMT+00:00 [ISS.0100.0009E] Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jmsContainer1' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'connectionFactory' while setting bean property 'connectionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'connectionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.jms.connection.CachingConnectionFactory]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: org.springframework.jms.connection.CachingConnectionFactory.setReconnectOnException(Z)V"
Document Location
Worldwide
Log InLog in to view more of this document
Was this topic helpful?
Document Information
Modified date:
20 March 2025
UID
ibm17226882