English 中文(简体)
java.lang.NoClassDefFoundError:javax/servlet/Filter
原标题:java.lang.NoClassDefFoundError: javax/servlet/Filter

I am getting this error when i start tomcat

java.lang.NoClassDefFoundError: javax/servlet/Filter
at java.lang.ClassLoader.findBootstrapClass(Native Method)
at java.lang.ClassLoader.findBootstrapClass0(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at      org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1301)
at    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:207)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:302)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:78)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3666)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4258)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)

i have already put the servlet.jar in classpath and tomcat_home/commons/lib folder

任何人都可以提出什么。

问题回答

java.lang.NoClassDefFoundError:javax/servlet/Filter

当你拿到一份来自古代Serlet 2.2集装箱或旧集装箱的<编码>servlet.jar的复印件时,就会出现这一特殊例外,而且在托马托克图书馆的舱位上,档案站位居优先。 rel=“noretinger”>introduced in Servlet 2.3。


i”已经放下了该信封。 出生地和散装地点:家/公交/校正

你们不应这样做。 <Remove all servletcontainer-specific Library from their /WEB-INF/lib, the "qupath” and the Tomcat scode>/common/lib.

The Tomcat servletcontainer already ships with the right APIs in its own /lib folder. You should not have any copy in your webapp s /WEB-INF/lib, nor elsewhere in the classpath, also not the ones from a completely different servletcontainer.

普通开端人试图下载/拷贝专用图书馆的这种常见错误,通常是因为无法通过javac或民主选举学会汇编服务器课程。 在使用javac时,请在-cp上查阅Tomcat s/lib。 在使用电算法时,你需要将Tomcat作为项目特性的有目标运行时间

See also:

在您的日程上加上这一点,用最新的稳定版本取代这一版本。 检索磁带储存库的春季网站。

<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-web</artifactId>
    <version>4.2.0.RELEASE</version>
</dependency>

无法找到引起问题的珍珠版本,我明确地将Jjar的正确版本添加到Tomcat上:

“entergraph

该章程载于%TOMCAT_HOME%/lib

说明:首先确保保全装置。





相关问题
Tomcat´s server.xml dynamic configuration

My web application uses the same database configuration as the application XYZ. I have a resource declaration for a context in server.xml, so I have a duplicated configuration (once for web ...

session transfer issue from Tomcat to ASP.Net

I am using Tomcat to host JSP and using IIS 7.0 to host aspx (C# + .Net 3.5 + VSTS 2008), and I have some session transfer issue from JSP page to ASPX page. JSP page is in one domain and all other ...

JSP exception - class not found (tomcat)

I m setting up an existing application on a new Tomcat 5.5 server connecting to a Postgres database (running on Debian Lenny). When I access it I get a series of stack traces with the following root ...