facebook

Anybody run into this problem javax/servlet/Filter ?

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #262408 Reply

    sripri
    Member

    I am getting java.lang.NoClassDefFoundError:javax/servlet/Filter whenever I try to run tomcat 5.5 from myeclipse. I came across documentation which says the cause might be due to another servlet.jar in the classpath other than /commons. Has anyone run into this one. If yes, were you able to solve the problem.
    Thanks

    #262719 Reply

    Riyad Kalla
    Member

    sripri,
    Did you by chance add your own user libraries to the build path instead of the J2EE 1.4 Library Set that MyEclipse adds by default? It could be that your project is actually deploying another copy of the J2EE JARs with itself (which is not good). Check your deployed project location under WEB-INF/lib and see if there are servlet or JSP jars in there.

    #262812 Reply

    sripri
    Member

    I found the problem!. I was adding the project’s user libraries in the eclipse-tomcat server configuration. Once, I removed them it started working fine. For Jrun the only way to get it to work was by adding the user libraries to the “path” in the configuration setup! and I continued to do the same for tomcat.
    Thanks for your response.

    #262813 Reply

    Riyad Kalla
    Member

    I’m glad to hear it’s working now, thank you for following up.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Anybody run into this problem javax/servlet/Filter ?

You must be logged in to post in the forum log in