Application Context-Security - java.lang.NoClassDefFoundError:javax / servlet / Filter

时间:2016-04-21 14:36:21

标签: tomcat servlets tomcat7 servlet-filters applicationcontext

我正在开发动态Web项目并尝试在Spring Tool Suite上使用tomcat 7启动它 - Eclipse。

我的服务器类路径包括以下jar 自举 Tomcat的巨力 弹簧 共享记录-1.1.1 aspectilib aspectjrt aspectjtools aspectjweaver 弹簧LDAP的1.3.0.RELEASE,所有 弹簧安全核-2.0.4

启动应用程序时出现以下错误

org.springframework.beans.factory.BeanDefinitionStoreException:从ServletContext资源解析XML文档的意外异常[/WEB-INF/applicationContext-security.xml];嵌套异常是java.lang.NoClassDefFoundError:javax / servlet / Filter     在org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:420)     在org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)     在org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)     在org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)     在org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)     在org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)     在org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)     在org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92)     at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)     在org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:423)     在org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:353)     在org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)     在org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)     在org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)     在org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)     at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5528)     在org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)     在org.apache.catalina.core.ContainerBase $ StartChild.call(ContainerBase.java:1575)     在org.apache.catalina.core.ContainerBase $ StartChild.call(ContainerBase.java:1565)     at java.util.concurrent.FutureTask $ Sync.innerRun(Unknown Source)     at java.util.concurrent.FutureTask.run(Unknown Source)     at java.util.concurrent.ThreadPoolExecutor $ Worker.runTask(Unknown Source)     at java.util.concurrent.ThreadPoolExecutor $ Worker.run(Unknown Source)     在java.lang.Thread.run(未知来源) 引起:java.lang.NoClassDefFoundError:javax / servlet / Filter

0 个答案:

没有答案