Hi Claus,

I found the debug.xml and trace.xml were removed in camel-spring resource directory.
Is there any reason to remove the trace.xml?

Willem

Claus Ibsen wrote:
Hi

The debug newer got implemented so its not really useable. If you want
to debug then I recommend the FUSE Integration Designer Tooling that
has visual debugging.
http://fusesource.com/products/fuse-integration-designer/

The debug option is gonna get removed in 2.0.

As it is based on the interceptor principle you can do you own poor
mans debugger by adding a spring bean that is an instance of
InterceptStrategy, then Camel will pick it up and use it. Just like
the Debugger did.




On Wed, Jul 8, 2009 at 11:51 PM, buzzterrier<[email protected]> wrote:
I get the following error trying to run camel from ant with the debug arg. I
checked and debug.xml is indeed missing from the 2.0-M2 release.


    [java] [                          main] MainSupport
INFO  Apache Camel 2.0-M2 starting
    [java] [                          main] ClassPathXmlApplicationContext
INFO  Refreshing
org.springframework.context.support.classpathxmlapplicationcont...@253498:
display name [org.spri
ngframework.context.support.classpathxmlapplicationcont...@253498]; startup
date [Wed Jul 08 14:45:33 PDT 2009]; root of context hierarchy
    [java] [                          main] XmlBeanDefinitionReader
INFO  Loading XML bean definitions from class path resource
[META-INF/services/org/apache/camel/spring/debug.xml]
    [java] [                          main] MainSupport
INFO  Apache Camel 2.0-M2 stopping
    [java] [                          main] MainSupport
ERROR Failed:
org.springframework.beans.factory.BeanDefinitionStoreException: IOException
parsing XML document fro
m class path resource [META-INF/services/org/apache/camel/spring/debug.xml];
nested exception is java.io.FileNotFoundException: class path resource
[META-INF/services/org/apache/camel/spring
/debug.xml] cannot be opened because it does not exist
    [java] org.springframework.beans.factory.BeanDefinitionStoreException:
IOException parsing XML document from class path resource
[META-INF/services/org/apache/camel/spring/debug.xml]; n
ested exception is java.io.FileNotFoundException: class path resource
[META-INF/services/org/apache/camel/spring/debug.xml] cannot be opened
because it does not exist
    [java]     at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:349)
    [java]     at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
    [java]     at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
    [java]     at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
    [java]     at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
    [java]     at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:212)
    [java]     at
org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:113)
    [java]     at
org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:80)
    [java]     at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
    [java]     at
org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:423)
    [java]     at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:353)
    [java]     at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
    [java]     at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
    [java]     at
org.apache.camel.spring.Main.getParentApplicationContext(Main.java:159)
    [java]     at
org.apache.camel.spring.Main.createDefaultApplicationContext(Main.java:227)
    [java]     at org.apache.camel.spring.Main.doStart(Main.java:185)
    [java]     at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52)
    [java]     at
org.apache.camel.impl.MainSupport.run(MainSupport.java:120)
    [java]     at
org.apache.camel.impl.MainSupport.run(MainSupport.java:298)
    [java]     at org.apache.camel.spring.Main.main(Main.java:97)
    [java] Caused by: java.io.FileNotFoundException: class path resource
[META-INF/services/org/apache/camel/spring/debug.xml] cannot be opened
because it does not exist
    [java]     at
org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:142)
    [java]     at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)

-----
Buzzterrier

http://buzzterrier.blogspot.com/ View my blog: Ordinary Average Developer...
--
View this message in context: 
http://www.nabble.com/Missing-debug.xml-in-2.0-M2-tp24400032p24400032.html
Sent from the Camel - Users mailing list archive at Nabble.com.






Reply via email to