Support Article

"Error creating bean" error in logs with ADM

SA-26964

Summary



Adaptive Decision Manager (ADM) is configured with ActiveMQ. The below error appears in the logs.


Error Messages



09:23:42,332 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (ServerService Thread Pool -- 54) Loading XML bean definitions from class path resource [com/pega/decision/adm/spring/adm-jms-config.xml]
09:23:42,392 WARN [org.springframework.context.support.ClassPathXmlApplicationContext] (ServerService Thread Pool -- 54) Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jmsContainer' defined in class path resource [com/pega/decision/adm/spring/adm-jms-config.xml]: Cannot resolve reference to bean 'admRequestConnectionFactory' while setting bean property 'connectionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'admRequestConnectionFactory' defined in class path resource [com/pega/decision/adm/spring/adm-jms-config.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: jms/admRequestConnectionFactory -- service jboss.naming.context.java.jms.admRequestConnectionFactory


Steps to Reproduce

  1. Configure ADM with ActiveMQ.
  2. Start JBoss.


Root Cause



A defect or configuration issue in the operating environment. activemq-rar.rar does not finish deploying before adm7.war and why that jms/admRequestConnectionFactory cannot be resolved.

Resolution



Make the following change to the operating environment:

​ Refer to JBoss documentation to control the order in which applications get deployed. Use Jboss configuration to ensure 
activemq-rar.rar deploys before adm7.war.

 

Published August 18, 2016 - Updated September 7, 2016

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.