3 Replies Latest reply: Jun 18, 2012 10:41 AM by Claus Ibsen RSS

    ClassNotFoundException: org.apache.camel.ValidationException

    Danilo Delizia Newbie

      Hello everybody,

      i'm using Fuse IDE to create my route and in the camel context I added the following route:

       

           [T

          o[file:{{file.outbox.invalid}}]]]]] <<< in route: Route[[From[file:{{file.inbox}}?preMove=inprogress&move=../.... because of org.apache.camel.ValidationException

                  at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:820)

                  at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:165)

                  at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:685)

                  at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1683)

                  at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1468)

                  at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1360)

                  at org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:169)

                  at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:67)

                  at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:54)

                  at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1328)

                  at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:213)

                  at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:108)

                  ... 10 more

          Caused by: java.lang.ClassNotFoundException: org.apache.camel.ValidationException

                  at org.apache.camel.impl.DefaultClassResolver.resolveMandatoryClass(DefaultClassResolver.java:52)

                  at org.apache.camel.model.CatchDefinition.createExceptionClasses(CatchDefinition.java:254)

                  at org.apache.camel.model.CatchDefinition.createProcessor(CatchDefinition.java:91)

                  at org.apache.camel.model.TryDefinition.createProcessor(TryDefinition.java:90)

                  at org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:444)

                  at org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:183)

                  at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:817)

                  ... 21 more

       

      I do not understend why I'm getting this error? There is anyway to import this class in the camel context? How should I do it?