Apache camel Apache Camel 2.10.0:Tomcat7中的服务部署错误

Apache camel Apache Camel 2.10.0:Tomcat7中的服务部署错误,apache-camel,Apache Camel,我可以使用JavaJDK7将我的web服务(使用ApacheCamel 2.9.2设计)部署并运行到Tomcat7,而不会出现太多问题。但是,当我尝试切换到Camel 2.10.0时,在部署过程中出现错误==>: Aug 11, 2012 5:20:58 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive C:\Tools\apache-tomcat-7.0.2

我可以使用JavaJDK7将我的web服务(使用ApacheCamel 2.9.2设计)部署并运行到Tomcat7,而不会出现太多问题。但是,当我尝试切换到Camel 2.10.0时,在部署过程中出现错误==>:

Aug 11, 2012 5:20:58 PM org.apache.catalina.startup.HostConfig deployWAR  
INFO: Deploying web application archive C:\Tools\apache-tomcat-7.0.28\webapps\FacadeService.war  
Aug 11, 2012 5:20:59 PM org.apache.catalina.core.ContainerBase addChildInternal  
SEVERE: ContainerBase.addChild: start: 
org.apache.catalina.LifecycleException: Failed to start component     
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/FacadeService]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) 
...  
...  
Caused by: java.lang.NoClassDefFoundError: org/springframework/web/context/WebApplicationContext
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2308)
at java.lang.Class.getDeclaredFields(Class.java:1760)
at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:87)

我想知道是否有人见过类似的错误?对这个问题有什么建议吗?谢谢

您的项目中是否包含spring framework JAR?是的。pom.xml中的工件camel-spring(我相信)将spring-jar的所有依赖项(如spring-core-3.0.7.RELEASE)加载到项目库中,并部署到Tomcat webapps中。Camel 2.9.2或2.10.0将使用相同的spring 3.0.7.RELEASE版本加载相同的spring jar集。好吧,我对berkay“撒谎”——显然Camel 2.10.0的工件Camel spring不加载spring web。这是对Camel 2.9.2的更改。我必须添加SpringWeb依赖项来解决错误。很高兴你解决了问题,祝你好运。