1 Reply Latest reply on Nov 18, 2008 9:03 AM by Jonathan Anstey

    java.io.FileNotFoundException

    mamta mehta Newbie

      Hi

      I am using Fuse Mediation Router and wrote a sample example as mentioned in getting started for users from eclipse ID.

      I have configured all the steps mention in the documentation.

      But when i run the MyRouteBuilder.java i am getting the following error

       

       

      Nov 13, 2008 5:30:50 PM org.apache.camel.util.MainSupport doStart

      INFO: Apache Camel 1.5.0.0-fuse starting

      Nov 13, 2008 5:30:50 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh

      INFO: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@8f4fb3: display name ; startup date ; root of context hierarchy

      Nov 13, 2008 5:30:50 PM org.apache.camel.util.MainSupport run

      SEVERE: Failed: org.springframework.beans.factory.BeanDefinitionStoreException: Could not resolve bean definition resource pattern ; nested exception is java.io.FileNotFoundException: class path resource cannot be resolved to URL because it does not exist

      org.springframework.beans.factory.BeanDefinitionStoreException: Could not resolve bean definition resource pattern ; nested exception is java.io.FileNotFoundException: class path resource cannot be resolved to URL because it does not exist

           at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:190)

           at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)

           at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:212)

           at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:113)

           at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:80)

           at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)

           at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)

           at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)

           at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:93)

           at org.apache.camel.spring.Main.createDefaultApplicationContext(Main.java:189)

           at org.apache.camel.spring.Main.doStart(Main.java:152)

           at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:47)

           at org.apache.camel.util.MainSupport.run(MainSupport.java:121)

           at org.apache.camel.util.MainSupport.run(MainSupport.java:310)

           at org.apache.camel.spring.Main.main(Main.java:72)

           at tutorial.MyRouteBuilder.main(MyRouteBuilder.java:37)

      Caused by: java.io.FileNotFoundException: class path resource cannot be resolved to URL because it does not exist

           at org.springframework.core.io.ClassPathResource.getURL(ClassPathResource.java:163)

           at org.springframework.core.io.support.PathMatchingResourcePatternResolver.isJarResource(PathMatchingResourcePatternResolver.java:406)

           at org.springframework.core.io.support.PathMatchingResourcePatternResolver.findPathMatchingResources(PathMatchingResourcePatternResolver.java:338)

           at org.springframework.core.io.support.PathMatchingResourcePatternResolver.getResources(PathMatchingResourcePatternResolver.java:276)

           at org.springframework.context.support.AbstractApplicationContext.getResources(AbstractApplicationContext.java:1018)

           at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:177)

           ... 16 more

       

       

      Please look into it and response as early as possible.

      Thank you in advance

       

      Regards,

      Mamta.