Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I'm getting a FileNotFoundException (listed below) when try to launch the debugger on a route in Talend Open Studio for ESB. The route contains two cHTTP components. The input component routes the request as is to an external HTTP endpoint. The route runs fine in the studio. The route also builds, deploys, and runs fine in the Runtime. However, I cannot run the debugger. It is possible to debug ESB routes, correct?
I should also mention that I see a similar error for any route in my TOS that I try to debug.
IOException parsing XML document from class path resource [META-INF/spring/awslambdasayhello.xml]; nested exception is java.io.FileNotFoundException: class path resource [META-INF/spring/awslambdasayhello.xml] cannot be opened because it does not exist org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [META-INF/spring/awslambdasayhello.xml]; nested exception is java.io.FileNotFoundException: class path resource [META-INF/spring/awslambdasayhello.xml] cannot be opened because it does not exist at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:344) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:217) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:252) 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:129) at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:614) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:515) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83) at tesb_poc.awslambdasayhello_0_1.AWSLambdaSayHello$1.createContext(AWSLambdaSayHello.java:137) at org.apache.camel.main.Main.getCamelContextMap(Main.java:167) at org.apache.camel.main.MainSupport.postProcessContext(MainSupport.java:545) at org.apache.camel.main.Main.doStart(Main.java:136) at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) at org.apache.camel.main.MainSupport.run(MainSupport.java:170) at tesb_poc.awslambdasayhello_0_1.AWSLambdaSayHello.run(AWSLambdaSayHello.java:156) at tesb_poc.awslambdasayhello_0_1.AWSLambdaSayHello.runJobInTOS(AWSLambdaSayHello.java:246) at tesb_poc.awslambdasayhello_0_1.AWSLambdaSayHello.main(AWSLambdaSayHello.java:219) Caused by: java.io.FileNotFoundException: class path resource [META-INF/spring/awslambdasayhello.xml] cannot be opened because it does not exist at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:172) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:330) ... 21 more
Hi xdshi,
I downloaded 7.2.1 and imported my project with route I'm trying to debug. I got the exact same error when entering the debugger. Any other idea?
Chris
I have found the solution.
The is a Talend bug that could be fixed by adding path_to_your_workspace/your_project_name/poms/jobs/routes/your_route_name_w_version/src/main/bundle-resources to the java build path.
Hello,
Thanks for sharing your solution with us.
Best regards
Sabrina
Please help me with more details on debug. I am unable to debug any Talend ESB route. So this is geeting difficult to work on any issues. I am unable to add breakpoint in GUI.
@cbeasley wrote:
I have found the solution.
- Create a route
- Run the route in studio once to generate the needed spring config file
- The file yourroutename.xml in path_to_your_workspace/your_project_name/poms/jobs/routes/your_route_name_w_version/src/main/bundle-resources/META_INF/spring needs to be copied into the java build path.
- Copy all files and sub directories under META_INF in path above to path_to_your_workspace/your_project_name/poms/jobs/routes/your_route_name_w_version/src/main/resources
- Launch route in Java Debugger
- Repeat for every new route
The is a Talend bug that could be fixed by adding path_to_your_workspace/your_project_name/poms/jobs/routes/your_route_name_w_version/src/main/bundle-resources to the java build path.