Results 1 to 2 of 2
  1. #1
    s3ib is offline Member
    Join Date
    Dec 2010
    Posts
    18
    Rep Power
    0

    Default Spring 3.0.5 - HTTP 404 - DispatcherServlet not found (all jar-s in web-inf/lib)

    I was following this tuttorial Spring SimpleFormController

    But whatever I do, there is always an error 404 when ja run my project through eclipse and the following error on the server startup:

    SEVERE: Servlet /SpringSimpleFormController threw load() exception
    java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet

    When I google it, most of the people are stuck on that problem because they use maven, and the jar-s aren't in web-inf/lib but in my case I am not using maven and i manually pasted all the 20 spring jar-s, commons-logging, and atlnr-3.1.1-runtime in web-inf/lib. Still I have the problem. I copy-pasted all the files from vaannila and my project sructure is exactly the same as it is there. I have a spring nature on my project but still the same error.

    I have one other spring project (Spring MVC Tutorial). And this one works perfectly. I have exactly the same lib-s in use. I've really ran out of ideas.

    P.S I've restarted eclipse and tomcad millions of times.

  2. #2
    s3ib is offline Member
    Join Date
    Dec 2010
    Posts
    18
    Rep Power
    0

    Default

    I added all the needed jar-s as a user library. Still the same error. Then i removed jar-s from web-inf/lib and the app started to work.
    I really can't understand what's up with that. Some spring app-s work only when required libraries are on web-inf/lib, others work when they are attached to project as user libraries.

Similar Threads

  1. http://localhost:8080/helloservice/HelloService?Tester HTTP Status 404 -
    By vietnamusa in forum Enterprise JavaBeans (EJB)
    Replies: 0
    Last Post: 03-13-2011, 12:02 AM
  2. How to serv HTTP/1.1 404 Not Found from socket?
    By zardos in forum Networking
    Replies: 1
    Last Post: 03-01-2011, 03:06 PM
  3. Replies: 1
    Last Post: 12-27-2010, 05:21 PM
  4. Replies: 7
    Last Post: 11-11-2009, 08:29 PM
  5. Http change to HTTP\SSL
    By ballyv24 in forum Advanced Java
    Replies: 0
    Last Post: 05-14-2008, 11:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •