6 Replies Latest reply on Aug 27, 2010 9:39 AM by Philipp Rossmanith

    Where is camelContext? XSD

    Juan Felipe Caro Newbie

      Hello all,

       

      activemq.apache.org vs. camel.apache.org

       

      Everytime I generate a camel context, either from an eip or with maven, and in every example, I see that the <camelContext> is defined in the http://activemq.apache.org/camel/schema/spring/camel-spring.xsd XSD. However, eclipse doesn't seems to find it and in fact when I try to run it, it doesn't works. I get the following errors:

       

      1.    cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'camelContext'.

      2.    TargetNamespace.1: Expecting namespace 'http://activemq.apache.org/camel/schema/spring', but the target namespace of the schema document is 'http://camel.apache.org/schema/spring'.

       

      If I switch the xsi:schemaLocation to http://camel.apache.org/schema/spring, eclipse stops worring. But it still doesn't work. I get the next errors:

       

      1.    schema_reference.4: Failed to read schema document 'http://camel.apache.org/schema/spring/camel-spring.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.

      2.    cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'camelContext'.

       

      I am attaching the two files I am trying to run.

       

      Question:

      Am I missing a dependency?

      Why do I find tutorials and documentation with both options?

       

      Thanks to all,

      Juan

       

      Environment:

      eclipse  3.4.1camel 1.5.4.0-fuse

      activemq 5.2.0.2-fuse

      fuse Integration designer 1.1.0

      maven 2.0.8

      java jdk1.6.0_10

       

      Edited by: jucaro on Mar 20, 2009 2:20 PM