title: Camel Route, invalid content was found starting with element "dataFormats"
body: <p>I am having an issue with my camel route and it not recognizing my "dataFormats" tag. I think I may have something wrong with my namespaces but I am not sure exactly. Any help would be greatly appreciated. My error is the following:</p>
  
  <p>Failed to execute goal org.apache.camel:camel-maven-plugin:2.10.4:run (default-cli) on project ExactTargetSample: null: MojoExecutionException: InvocationTargetException: Line 52 in XML document from file [C:\EclipseWorkspaces\EclipseWorkSpaceCurrent\ApacheCamel\target\classes\META-INF\spring\camel-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 52; columnNumber: 20; cvc-complex-type.2.4.a: Invalid content was found starting with element '<strong>dataFormats</strong>'. One of '{"<a href="http://camel.apache.org/schema/spring" rel="nofollow">http://camel.apache.org/schema/spring</a>":avro, "<a href="http://camel.apache.org/schema/spring" rel="nofollow">http://camel.apache.org/schema/spring</a>":beanio, "<a href="http://camel.apache.org/schema/spring" rel="nofollow">http://camel.apache.org/schema/spring</a>":bindy, "<a href="http://camel.apache.org/schema/spring" rel="nofollow">http://camel.apache.org/schema/spring</a>":castor, "<a href="http://camel.apache.org/schema/spring" rel="nofollow">http://camel.apache.org/schema/spring</a>":crypto, "<a href="http://camel.apache.org/schema/spring" rel="nofollow">http://camel.apache.org/schema/spring</a>":csv, "<a href="http://camel.apache.org/schema/spring" rel="nofollow">http://camel.apache.org/schema/spring</a>":custom, "<a href="http://camel.apache.org/schema/spring" rel="nofollow">http://camel.apache.org/schema/spring</a>":flatpack, "<a href="http://camel.apache.org/schema/spring" rel="nofollow">http://camel.apache.org/schema/spring</a>":gzip, "<a href="http://camel.apache.org/schema/spring" rel="nofollow">http://camel.apache.org/schema/spring</a>":hl7, "<a href="http://camel.apache.org/schema/spring" rel="nofollow">http://camel.apache.org/schema/spring</a>":jaxb, "<a href="http://camel.apache.org/schema/spring" rel="nofollow">http://camel.apache.org/schema/spring</a>":jibx, "<a href="http://camel.apache.org/schema/spring" rel="nofollow">http://camel.apache.org/schema/spring</a>":json, "<a href="http://camel.apache.org/schema/spring" rel="nofollow">http://camel.apache.org/schema/spring</a>":protobuf, "<a href="http://camel.apache.org/schema/spring" rel="nofollow">http://camel.apache.org/schema/spring</a>":rss, "<a href="http://camel.apache.org/schema/spring" rel="nofollow">http://camel.apache.org/schema/spring</a>":secureXML, "<a href="http://camel.apache.org/schema/spring" rel="nofollow">http://camel.apache.org/schema/spring</a>":serialization, "<a href="http://camel.apache.org/schema/spring" rel="nofollow">http://camel.apache.org/schema/spring</a>":soapjaxb, "<a href="http://camel.apache.org/schema/spring" rel="nofollow">http://camel.apache.org/schema/spring</a>":string, "<a href="http://camel.apache.org/schema/spring" rel="nofollow">http://camel.apache.org/schema/spring</a>":syslog, "<a href="http://camel.apache.org/schema/spring" rel="nofollow">http://camel.apache.org/schema/spring</a>":tidyMarkup, "<a href="http://camel.apache.org/schema/spring" rel="nofollow">http://camel.apache.org/schema/spring</a>":xmlBeans, "<a href="http://camel.apache.org/schema/spring" rel="nofollow">http://camel.apache.org/schema/spring</a>":xmljson, "<a href="http://camel.apache.org/schema/spring" rel="nofollow">http://camel.apache.org/schema/spring</a>":xstream, "<a href="http://camel.apache.org/schema/spring" rel="nofollow">http://camel.apache.org/schema/spring</a>":pgp, "<a href="http://camel.apache.org/schema/spring" rel="nofollow">http://camel.apache.org/schema/spring</a>":zip}' is expected. -> [Help 1]</p>
  
  <hr>
  
  <p>And a copy of my route can be found below:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xmlns:camel="http://camel.apache.org/schema/spring"
     xsi:schemaLocation="
     http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
     http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"&gt;
  
   &lt;!-- load properties --&gt; 
  
  &lt;bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"&gt;
      &lt;property name="locations" value="file:backend.properties" /&gt; 
  &lt;/bean&gt;
  &lt;bean id="properties" class="org.apache.camel.component.properties.PropertiesComponent"&gt;
      &lt;property name="location" value="file:backend.properties" /&gt; 
  &lt;/bean&gt;
  
  &lt;bean id="jmsConnectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory"&gt;
      &lt;property name="brokerURL" value="tcp://0.0.0.0:61616?useLocalHost=true" /&gt; 
  &lt;/bean&gt;
  
  &lt;bean id="pooledConnectionFactory" class="org.apache.activemq.pool.PooledConnectionFactory"&gt;
      &lt;property name="maxConnections" value="8" /&gt; 
      &lt;property name="maximumActive" value="500" /&gt; 
      &lt;property name="connectionFactory" ref="jmsConnectionFactory" /&gt; 
  &lt;/bean&gt;
  
  &lt;bean id="jmsConfig" class="org.apache.camel.component.jms.JmsConfiguration"&gt;
      &lt;property name="connectionFactory" ref="pooledConnectionFactory" /&gt; 
      &lt;property name="transacted" value="false" /&gt; 
      &lt;property name="concurrentConsumers" value="1" /&gt; 
  &lt;/bean&gt;
  
  &lt;bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent"&gt;
      &lt;property name="configuration" ref="jmsConfig" /&gt; 
  &lt;/bean&gt;
  
  &lt;!-- Custom Loaded Beans --&gt;
  
  &lt;bean id="TriggeredSendBean" class="com.backend.trigger.ClientTest"/&gt;
  
   &lt;!-- camel configuration --&gt; 
  
  &lt;camel:camelContext xmlns="http://camel.apache.org/schema/spring"&gt;
      &lt;dataFormats&gt;
          &lt;json id="WelcomeEmail" library="Jackson" unmarshalTypeName="com.testObjects.EnrollResponse" /&gt;
       &lt;dataFormats&gt;
  
      &lt;camel:route id="genericMessageHandler" streamCache="true"&gt;
      &lt;from uri="activemq:topic:Test.Central" /&gt; 
      &lt;unmarshal ref="WelcomeEmail" /&gt; 
  
      &lt;to uri = "bean:TriggeredSendBean?method=setup" /&gt; 
      &lt;to uri = "bean:TriggeredSendBean?method=addSubscriberAllList" /&gt;
      &lt;to uri = "bean:TriggeredSendBean?method=sendWelcomeEmail" /&gt;
  
      &lt;/camel:route&gt;
  &lt;/camel:camelContext&gt;
  </code></pre>
  
  <p></p>