IBM Support

webMethods Knowlegebase : The package is not loading with error "Unable to establish a valid context". (1792156)

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

[{"Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSVYEV","label":"IBM webMethods Integration"},"ARM Category":[{"code":"a8mKe00000000AQIAY","label":"webMethods Integration Server (PIE)"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Red Hat Enterprise Linux"}],"Version":"9.7"},{"Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSFIWYE","label":"IBM webMethods B2B"},"ARM Category":[{"code":"a8mKe00000000AQIAY","label":"webMethods Integration Server (PIE)"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Red Hat Enterprise Linux"}],"Version":"9.7"},{"Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSQG2X","label":"IBM webMethods Managed File Transfer"},"ARM Category":[{"code":"a8mKe00000000AQIAY","label":"webMethods Integration Server (PIE)"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Red Hat Enterprise Linux"}],"Version":"9.7"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
20 March 2025

UID

ibm17226882