tESBConsumer does not log to SAM - missing agent-context.xml
In my ESB Runtime, I have succesfully configured SAM to log to a SQL Server table. It works fine for all requests sent TO a service running on my ESB (tESBProvider).
I have a service/job that calls another service using tESBConsumer. I have checked the "Use Service Activity Monitoring" on this tESBConsumer. When I deploy to runtime, following message appears, and outgoing messages are not logged via SAM.
Any help appreciated.
Exception in component tESBConsumer_1
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [META-INF/tesb/agent-context
.xml]; nested exception is java.io.FileNotFoundException: class path resource [META-INF/tesb/agent-context.xml] cannot be opened because it does not e
xist
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:243)
at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:127)
at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:93)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130
)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:539)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
at csobl.partnerservice_find_refdb_0_4.PartnerService_find_refDB.tFixedFlowInput_1Process(PartnerService_find_refDB.java:4456)
at csobl.partnerservice_find_refdb_0_4.PartnerService_find_refDB.tMSSqlConnection_1Process(PartnerService_find_refDB.java:1142)
at csobl.partnerservice_find_refdb_0_4.PartnerService_find_refDB.runJobInTOS(PartnerService_find_refDB.java:9479)
at csobl.partnerservice_find_refdb_0_4.PartnerService_find_refDB.runJob(PartnerService_find_refDB.java:9306)
at csobl.partnerservice_find_fork_0_2.PartnerService_find_fork.tFixedFlowInput_1Process(PartnerService_find_fork.java:1628)
at csobl.partnerservice_find_fork_0_2.PartnerService_find_fork$3.run(PartnerService_find_fork.java:2144)
Caused by: java.io.FileNotFoundException: class path resource [META-INF/tesb/agent-context.xml] cannot be opened because it does not exist
at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:171)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:329)
... 18 more