Question #1234
-
Ask a questionI am building my spring boot project on karavan. I started by adding 'from' route, 'log' and then 'processsor'.
Here is the class 'Esbloginterceptorprocessor'. import org.apache.camel.Configuration ; @configuration I also added @configuration and @BindToRegistry to my processor class for it be binded to registry. However, Here is the error when starting the route. org.apache.camel.FailedToCreateRouteException: Failed to create route route-a27c at: >>> process[ref:Esbloginterceptorprocessor] <<< in route: Route(route-a27c)[From[rest:post:/LoanAccountDetails] -> [pr... because of No bean could be found in the registry for: Esbloginterceptorprocessor of type: org.apache.camel.Processor VariantWeb Application Container Management (if applicable)Docker Operating System (if applicable)Windows Version4.4.0 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
the question is badly formatted and not vert readable - can you format this better. |
Beta Was this translation helpful? Give feedback.
-
You must have a default no-arg constructor, and Environment is some spring boot stuff that Karavan does not support, so you cant use that. |
Beta Was this translation helpful? Give feedback.
-
Just do
|
Beta Was this translation helpful? Give feedback.
-
You can more easily do this from Karavan UI by clicking the plus sign in the field where you type the processor name, then Karavan creates an new empty class for you that works |
Beta Was this translation helpful? Give feedback.
You must have a default no-arg constructor, and Environment is some spring boot stuff that Karavan does not support, so you cant use that.