You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Charles Moulliard (JIRA)" <ji...@apache.org> on 2009/05/05 13:43:39 UTC
[jira] Commented: (CAMEL-1577) No endpoint could be found for:
${queueIn}, please check your classpath contains the needed camel component
jar.
[ https://issues.apache.org/activemq/browse/CAMEL-1577?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=51513#action_51513 ]
Charles Moulliard commented on CAMEL-1577:
------------------------------------------
I have found a trick to solve the two problems mentioned previously. Here is the solution :
http://cmoulliard.blogspot.com/2009/05/trick-to-pass-uri-declared-in-property.html
> No endpoint could be found for: ${queueIn}, please check your classpath contains the needed camel component jar.
> ----------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-1577
> URL: https://issues.apache.org/activemq/browse/CAMEL-1577
> Project: Apache Camel
> Issue Type: Bug
> Affects Versions: 2.0-M1
> Reporter: Charles Moulliard
>
> Hi,
> I have discovered two small issues using camel DSL in combination with osgix:cm-properties.
> In my spring config file, I have created the following route
> <camel:route>
> <camel:from uri="${uriFile}" />
> <camel:setHeader headerName="origin">
> <camel:constant>file</camel:constant>
> </camel:setHeader>
> <camel:unmarshal ref="bindyDataformat" />
> <camel:to uri="${queueIn}" />
> </camel:route>
> and osgix:cm-properties like this
> <osgix:cm-properties id="camelProps" persistent-id="org.apache.camel.example.reportincident.routing">
> <prop key="uriFile">file://c:/temp/data/?move=c:/temp/done/${file:name}</prop> (2)
> <prop key="queueIn">queuingservice:queue:in</prop> (1)
> </osgix:cm-properties>
> Remark : ${file:name} is a camel property !!
> but at the OSGI startup the two following errors are generated
> (1) No endpoint could be found for: ${queueIn}
> 17:19:28,838 | INFO | xtenderThread-27 | DefaultCamelContext | e.camel.impl.DefaultCamelContext 729 | Apache Camel 2.0-M1 (CamelContext:camelContext) is starting
> 17:19:29,322 | ERROR | xtenderThread-27 | ContextLoaderListener | BundleApplicationContextListener 50 | Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=reportincident.routing, config=osgibundle:/META-INF/spring/*.xml))
> org.apache.camel.NoSuchEndpointException: No endpoint could be found for: ${queueIn}, please check your classpath contains the needed camel component jar.
> at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:54)
> at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:133)
> at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:103)
> at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:109)
> at org.apache.camel.model.SendDefinition.resolveEndpoint(SendDefinition.java:57)
> at org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java:51)
> (2)
> org.springframework.beans.factory.BeanDefinitionSt oreException: Invalid bean definition with name 'camelProps' defined in null: Could not resolve placeholder 'file:name'
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.