Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Exception: org.apache.camel.NoSuchEndpointException

The usual cause for this Exception is a missing component JAR on the classpath. The exception detail message will tell you what the missing component is. You can solve the issue by adding the required JAR files to the classpath.

An example:
If you try to use the definition below without having camel-jetty.jar on the classpath, you'll run into this exception
org.apache.camel.NoSuchEndpointException: No endpoint could be found for: jetty:http://localhost:8080/bus

Code Block
xml
xml
<camelContext id="camel" xmlns="http://activemq.apache.org/camel/schema/spring">
    <route>
	<from uri="jetty:http://localhost:8080/bus" />
	<to uri="file://C:/tmp/something.xml" /> 
    </route>
</camelContext>