2 Replies Latest reply on Nov 26, 2009 3:45 AM by lekkie_lomotayo

    FailedToCreateRouteException: Failed to create route route1

    lekkie_lomotayo

      While trying to configure a route using the camel 2.0, I had the ffg in my bean.xml file:

       

      )

       

      I tried that and it seems it cant find the transport nmr resource path. See exception below:

       

      XML bean definitions from OSGi resource[classpath:META-INF/cxf/transport/nmr/cxf-transport-nmr.xml|bnd.id=176|bnd.sym=nau-college-se]

      16:52:31,731 | ERROR | xtenderThread-79 | OsgiBundleXmlApplicationContext  | gatedExecutionApplicationContext  293 | Pre refresh error

      org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location classpath:META-INF/cxf/transport/nmr/cxf-transport-nmr.xml

      Offending resource: URL bundle://176.0:0/META-INF/spring/beans.xml; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from OSGi resource[classpath:META-INF/cxf/transport/nmr/cxf-transport-nmr.xml|bnd.id=176|bnd.sym=nau-college-se]; nested exception is java.io.FileNotFoundException: OSGi resource[classpath:META-INF/cxf/transport/nmr/cxf-transport-nmr.xml|bnd.id=176|bnd.sym=nau-college-se] cannot be resolved to URL because it does not exist

              at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)

              at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)

       

      kr.

        • 1. Re: FailedToCreateRouteException: Failed to create route route1
          martinmurphy

          If you just wish to route from a JMS endpoint to a CXF POJO implementation then why not use the JMS transport in CXF?

          • 2. Re: FailedToCreateRouteException: Failed to create route route1
            lekkie_lomotayo

            I got this.

             

            If you have same problem, ensure you import the ffg in your pom.xml:

             

            <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>

                                    <Import-Package>

            META-INF.cxf.osgi,

                                        META-INF.cxf.transport.nmr,

                                        org.apache.servicemix.camel.nmr,

                                           org.apache.servicemix.cxf.transport.nmr,

                                           org.apache.servicemix.nmr.api,

                                           org.apache.servicemix.nmr.api.event,

                                           org.apache.servicemix.nmr.api.internal,

            ........

             

            rgds