我的骆驼路线有问题,它无法识别我的“dataFormats”标签。我想我的命名空间可能有问题,但我不确定。非常感谢任何帮助。我的错误如下:
无法执行目标组织。阿帕奇。camel:camel-maven插件:2.10.4:在ExactTargetSample项目上运行(默认cli):null:MojoExecutionException:InvocationTargetException:文件[C:\EclipseWorkspace\EclipseWorkSpaceCurrent\ApacheCamel\target\classes\META-INF\spring\camel context.XML]的XML文档中的第52行无效;嵌套的异常是org。xml。萨克斯。SAXS异常;行号:52;栏目号:20;cvc复合型。2.4.答:发现以元素“dataFormats”开头的内容无效。“{”之一http://camel.apache.org/schema/spring“:avro,”http://camel.apache.org/schema/spring“:beanio,”http://camel.apache.org/schema/spring“:宾迪,”http://camel.apache.org/schema/spring“:卡斯特,”http://camel.apache.org/schema/spring“:加密,”http://camel.apache.org/schema/spring“:csv,”http://camel.apache.org/schema/spring“:定制,”http://camel.apache.org/schema/spring“:扁平封装,”http://camel.apache.org/schema/spring“:gzip,”http://camel.apache.org/schema/spring“:hl7,”http://camel.apache.org/schema/spring“:jaxb,”http://camel.apache.org/schema/spring“:jibx,”http://camel.apache.org/schema/spring“:json,”http://camel.apache.org/schema/spring“:protobuf,”http://camel.apache.org/schema/spring“:rss,”http://camel.apache.org/schema/spring“:secureXML,”http://camel.apache.org/schema/spring“:序列化,”http://camel.apache.org/schema/spring“:soapjaxb,”http://camel.apache.org/schema/spring“:字符串,”http://camel.apache.org/schema/spring“:syslog,”http://camel.apache.org/schema/spring“:整洁市场,”http://camel.apache.org/schema/spring“:xmlBeans,”http://camel.apache.org/schema/spring“:xmljson,”http://camel.apache.org/schema/spring“:xstream,”http://camel.apache.org/schema/spring“:pgp,”http://camel.apache.org/schema/spring“:zip}”应为空-
下面是我的路线:
<?xml version="1.0" encoding="UTF-8"?>
<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">
<!-- load properties -->
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations" value="file:backend.properties" />
</bean>
<bean id="properties" class="org.apache.camel.component.properties.PropertiesComponent">
<property name="location" value="file:backend.properties" />
</bean>
<bean id="jmsConnectionFactory" class="org.apache.html" target="_blank">activemq.ActiveMQConnectionFactory">
<property name="brokerURL" value="tcp://0.0.0.0:61616?useLocalHost=true" />
</bean>
<bean id="pooledConnectionFactory" class="org.apache.activemq.pool.PooledConnectionFactory">
<property name="maxConnections" value="8" />
<property name="maximumActive" value="500" />
<property name="connectionFactory" ref="jmsConnectionFactory" />
</bean>
<bean id="jmsConfig" class="org.apache.camel.component.jms.JmsConfiguration">
<property name="connectionFactory" ref="pooledConnectionFactory" />
<property name="transacted" value="false" />
<property name="concurrentConsumers" value="1" />
</bean>
<bean id="activemq" class="org.apache.activemq.camel.component.ActiveMQComponent">
<property name="configuration" ref="jmsConfig" />
</bean>
<!-- Custom Loaded Beans -->
<bean id="TriggeredSendBean" class="com.backend.trigger.ClientTest"/>
<!-- camel configuration -->
<camel:camelContext xmlns="http://camel.apache.org/schema/spring">
<dataFormats>
<json id="WelcomeEmail" library="Jackson" unmarshalTypeName="com.testObjects.EnrollResponse" />
<dataFormats>
<camel:route id="genericMessageHandler" streamCache="true">
<from uri="activemq:topic:Test.Central" />
<unmarshal ref="WelcomeEmail" />
<to uri = "bean:TriggeredSendBean?method=setup" />
<to uri = "bean:TriggeredSendBean?method=addSubscriberAllList" />
<to uri = "bean:TriggeredSendBean?method=sendWelcomeEmail" />
</camel:route>
</camel:camelContext>
一切看起来都很好。也许你错过了在pom中添加camel jackson依赖项。猜猜看!
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-jackson</artifactId>
<version>${camel-version}</version>
</dependency>
我有一个问题与我的骆驼路线,它不能识别我的“DataFormats”标签。我想我的命名空间可能有问题,但我不确定。任何帮助都将不胜感激。我的错误如下: 未能执行goal org.apache.camel:camel-maven-plugin:2.10.4:run(default-cli)on project excactTargetSample:null:mojoExecutionExceptio
我在spring-data-jpa中使用了这个: 但我有个例外:
这是上面xml文件的xsd文件。
org.springframework.beans.factory.XML.xmlBeanDefinitionStoreException:ServletContext资源[/web-inf/dispatcher-servlet.XML]的XML文档中的第71行无效;嵌套异常是org.xml.sax.SAXParseException;行号:71;列号:94;CVC-complex-type2.4
在下面的代码中,我得到了这样的错误:“cvc-complex-type.2.4.a:发现从元素'global-method-security'开始的内容无效。”{“http://www.springframework.org/schema/beans”:import,“http://www.springframework.org/schema/beans”:alias,“http://www.sp
需要“{”http://www.springframework.org/schema/beans“:meta,”h ttp://www.springframework.org/schema/beans“:constructor-arg,”http://www.springframework.org/schema/beans“:property,”http://www.springframework