Hello Frank, It seems to me that the error is not so much about the Filter you want to load but the fact that it can't find the javax/servlet/Filter class which is (I think) supposed to be part of the servlet-api.jar ... I know you said that its bundled but try moving that jar around. Or at least crack open that jar in winzip or list the files using the jar command to make sure it really does have the javax.servlet.Filter class.
On 4/1/07, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
Hey folks... I'm having a real pain of a problem here... vital stats: JRE 1.6.0-b105 (JDK 6) Tomcat 6.0.10 I have a filter that compiles fine but will not initialize... error that appears on Tomcat startup: Apr 2, 2007 1:04:38 AM org.apache.catalina.core.StandardContextfilterStart SEVERE: Exception starting filter MasterControlFilter java.lang.NoClassDefFoundError: javax/servlet/Filter at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass( SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) ...and so on... The filter is contained within a JAR in my webapp's WEB-INF/lib directory. I've verified the filter is in the correct package, and that web.xml specifies the correct class name. I've spent about an hour Googling, and I've found numerous references to seemingly similar problems, but no answers... I've verified that there is no other servlet-api.jar floating around... I did notice a number of places that said servlet-api.jar should be in CATALINA_HOME/common/lib, but it's in CATALINA_HOME/lib in my installation (that's how it came out of the distro)... I assume that's just some old documentation I'm finding, but maybe not? For completeness, environment variables I have: CATALINA_HOME=k:\tomcat6010 JAVA_HOME=c:\java15 Path=c:\java15\bin;k:\tomcat6010\bin;x:\classes\apache-ant-1.7.0\bin ...NO classpath defined... I don't think there's any other relevant env vars. Can anyone point me in the right direction? I'm pretty well stuck at the moment until I get this resolved. Thanks! Frank -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM/Yahoo: fzammetti MSN: [EMAIL PROTECTED] Author of "Practical Ajax Projects With Java Technology" (2006, Apress, ISBN 1-59059-695-1) Java Web Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]