doru1004 commented on issue #1579:
URL: https://github.com/apache/camel-k/issues/1579#issuecomment-651326271
Does MyProcessor require any annotation as `@Component` or something like
that?
Now that I have no more compilation errors I get:
```
[1] 2020-06-29 19:43:16.722 INFO [main] ApplicationRuntime - Listener
org.apache.camel.k.listener.RoutesConfigurer@2d6764b2 executed in phase
ConfigureRoutes
[1] Exception in thread "main" org.apache.camel.RuntimeCamelException:
java.lang.ClassNotFoundException: MyProcessor
[1] at
org.apache.camel.RuntimeCamelException.wrapRuntimeException(RuntimeCamelException.java:68)
[1] at
org.apache.camel.support.service.BaseService.doFail(BaseService.java:411)
[1] at
org.apache.camel.support.service.BaseService.fail(BaseService.java:337)
[1] at
org.apache.camel.support.service.BaseService.init(BaseService.java:88)
[1] at org.apache.camel.main.MainSupport.run(MainSupport.java:79)
[1] at
org.apache.camel.k.main.ApplicationRuntime.run(ApplicationRuntime.java:70)
[1] at org.apache.camel.k.main.Application.main(Application.java:42)
```
which looks like a Camel specific problem. I suspect my reference to
MyProcessor isn't quite correct.
```
kamel run --property camel.beans.myProcessor=#class:MyProcessor ...
```
And my configuration class looks like this:
```
public class RegistryConfigurer {
@BindToRegistry
public MyProcessor myProcessor() {
return new MyProcessor();
}
}
```
Am I missing some annotation on the MyProcessor class? (`@Configuration` or
`@Component` ? )
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]