この問題を解決するために助けが必要です。次のコードは bean.xml にあり、エラーが発生します
<camelContext id="activeContext1" xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="activemq:queue:ThermalMap"/>
<to uri="http://myhost:8161/Example?throwExceptionOnFailure=false"/>
</route>
</camelContext>
私が得るエラー:
org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToCreateRouteException: ルート route1 の作成に失敗しました: >>> To[http://myhost:8161/Example?throwExceptionOnFailure=false] <<< ルート: Route[ [From[activemq:queue:ThermalMap]] -> [To[htt://myhost... エンドポイントの解決に失敗したため: htt://myhost:8161/Example?throwExceptionOnFailure=false due to: Cannot auto create component : http
どうすればこの問題を解決できますか?
編集: Eclipse でアプリケーションを編集します。webcontent/WEB-INF/lib
フォルダー内のすべてのjarファイルを手動で追加しました。Bean.xml
私のアプリケーションを定義するものです。以前はand関数java
を書いていました。consumer()
processor()