将通过spring控制camel的程序部署到tomcat启动时遇到两个问题,首先是启动时提示找不到org.springframework.web.context.ContextLoaderListener这个类,发现是spring-web-xx.jar这个jar包未添加。添加后又出第二个问题,提示spring加载类时找不到配置文件的异常,后查明是因为applicationContext.xml、log4j.properties等配置文件放在了classes目录,需要在web.xml中加入如下配置:
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath*:/context*.xml</param-value>
</context-param>
分享到:
相关推荐
演示如何在 Spring Boot 中部署 Camel 并使用各种集成技术与 Docker 集成 项目概况 该项目演示了 Apache Camel 在 Spring Boot 和 Docker 中的集成功能。 Camel 上下文通过 Camel Spring Boot 组件在 Spring Boot ...
Apache Camel 开发使用指南中文版
Apache Camel is a Java framework that lets you implement the standard enterprise integration patterns in a few lines of code. With a concise but sophisticated DSL you snap integration logic into your ...
camel direct http jdbc mybatis 等等组件 骆驼 camel部分源码分析
Camel3 Camel6函数等matlab源代码
中文名: Camel 实战 原名: Camel in Action 作者: Claus Ibsen Jonathan Anstey 资源格式: PDF 版本: 英文文字版/更新源代码 出版社: Manning书号: 9781935182368发行时间: 2010年12月 地区: 美国 语言: 英文 简介: ...
camel 文档
Camel 是大众点评开发的软负载一体解决方案,承担了F5硬负载层后的软负载工作。Camel已成为大众点评网络流量中必不可缺的一层。 关于Camel的部署及使用,请参考Camel in Action: 国内 国外 Camel在大众点评的...
ApacheCamel-JDBC Apache Camel JDBC组件 代码样例Demo
用camel-cxf调用webservice和发布一个webservice接口例子,首先启动QueryServiceMain主函数启动webservice接口,然后启动测试类TestWebservice。例子主要是实现java代码实现camel调用webservice接口
领域特定语言意味着Apache Camel支持你在的集成开发工具中使用平常的,类型安全的,可自动补全的Java代码来编写路由规则,而不需要大量的XML配置文件。同时,也支持在Spring中使用XML配置定义路由和中介规则。 在...
camel in action 中文版 第一章 费了很大力才找到中文版本,网上现在大多是英文版本的,上传此资粮供大家参考学习。
Camel服务集成,服务编排操作文档
Camel In Action一书第四章的中文版。
ApacheCamel-FTP ApacheCamel-FTP Apache Camel FTP组件 Demo 样例
camel, Apache camel 镜像 Apache camel 是基于已知企业集成模式的强大开放源代码集成框架,它具有强大的Bean集成。简介flex允许你创建企业集成模式,以基于基于Java的域特定语言( 或者 Fluent API ) 或者基于 Sc
1: Meet Camel - FREE 2: Routing with Camel - AVAILABLE Part 2 Core Camel 3: Transforming Data with Camel - AVAILABLE 4: Using Beans with Camel - AVAILABLE 5: Error Handling - AVAILABLE 6:...
09-ApacheCamel-Timer Apache Camel Timer组件 定时器 代码Demo
camel-manual-2.0 camel ESB EIP EAI
An advanced guide to Enterprise Integration using Apache Camel About This Book Integrate your applications with Apache Camel and enhance efficiency and scalability Master all the EIPs supported by ...