Announcement Announcement Module
Collapse
No announcement yet.
Spring+Eclipse Newb Question Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring+Eclipse Newb Question

    Just trying to get the most basic test app running and getting the following:

    java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet
    web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
    <display-name>TestDynamicWeb</display-name>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    <servlet>
    <servlet-name>springapp</servlet-name>
    <servlet-class>org.springframework.web.servlet.DispatcherSe rvlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>springapp</servlet-name>
    <url-pattern>*.htm</url-pattern>
    </servlet-mapping>
    </web-app>
    spring.jar and spring-webmvc.jar have been added to the build path (added them as external jars to the libraries tab). Tomcat 6.0 is the target. Clearly it's not seeing the jars I've added but can't figure out why. I'm sure this is something I'm doing wrong in Eclipse, but I can't see it. What else to do I need to do? Any help appreciated.

  • #2
    Ok, there's a whole parallel dependency chain for the WAR file (J2EE Module Dependencies). Knew it was something simple.

    Comment

    Working...
    X