"Error creating bean" error in logs with ADM
Adaptive Decision Manager (ADM) is configured with ActiveMQ. The below error appears in the logs.
Error Messages09: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
- Configure ADM with ActiveMQ.
- Start JBoss.
Root CauseA 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.
ResolutionMake 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