0

我可以使用 Java JDK7 将我的 Web 服务(使用 Apache-Camel 2.9.2 设计)部署和运行到 Tomcat 7,而不会出现太多问题。但是,当我尝试切换到 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)

我想知道是否有人见过类似的错误?以及对这个问题的任何建议?谢谢

4

0 回答 0