Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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
Labels (4)
5 Replies
Anonymous
Not applicable
Author

Hi,
Could you please also indicate on which ESB build version you got this issue?
Best regards
Sabrina
Anonymous
Not applicable
Author

Hello Sabrina,
our version is: 6.1.1_SE_178_TESB-SE-6.1.1-GA-B3
(taken from version.txt of our runtime container)
Anonymous
Not applicable
Author

I'm able to replicate the same on 6.3.1_SE_206_release/6.3.1. Any ideas pls?
_AnonymousUser
Specialist III
Specialist III

I am facing the same issue with runtime version 5.6.2. Did you find any solution? Thanks.
Anonymous
Not applicable
Author

Please check that sam-agent-*.jar NOT in the job bundle